Skip to content

Commit

Permalink
Update default DSC name
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire committed Nov 8, 2023
1 parent 2ae4caf commit 64da37c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
"app.kubernetes.io/name": "datasciencecluster",
"app.kubernetes.io/part-of": "opendatahub-operator"
},
"name": "default"
"name": "default-dsc"
},
"spec": {
"components": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
name: default
name: default-dsc
labels:
app.kubernetes.io/name: datasciencecluster
app.kubernetes.io/instance: default
Expand Down
9 changes: 1 addition & 8 deletions pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,13 @@ func HasDeleteConfigMap(c client.Client) bool {
// Note: When the platform is not Managed, and a DSC instance already exists, the function doesn't re-create/update the resource.
func CreateDefaultDSC(cli client.Client, platform deploy.Platform) error {
// Set the default DSC name depending on the platform
var DSCName string
if platform == deploy.ManagedRhods || platform == deploy.SelfManagedRhods {
DSCName = "rhods"
} else {
DSCName = "default"
}

releaseDataScienceCluster := &dsc.DataScienceCluster{
TypeMeta: metav1.TypeMeta{
Kind: "DataScienceCluster",
APIVersion: "datasciencecluster.opendatahub.io/v1",
},
ObjectMeta: metav1.ObjectMeta{
Name: DSCName,
Name: "default-dsc",
},
Spec: dsc.DataScienceClusterSpec{
Components: dsc.Components{
Expand Down

0 comments on commit 64da37c

Please sign in to comment.