Skip to content

Commit

Permalink
Remove DevTools CRD item
Browse files Browse the repository at this point in the history
- Not useful as Minio/MariaDB params will now generate their secrets
  automatically if they are missing, so removing before the option
  hits production and needs to be accounted for in the API
  • Loading branch information
gmfrasca committed Sep 5, 2023
1 parent c710fa1 commit b8afe43
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 106 deletions.
12 changes: 0 additions & 12 deletions api/v1alpha1/dspipeline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ type DSPASpec struct {
// +kubebuilder:validation:Optional
// +kubebuilder:default:={deploy: false}
*MLMD `json:"mlmd"`
// DevTools enables non-production tools and utilities for Data Science Pipelines Operator developers
// +kubebuilder:validation:Optional
*DevTools `json:"devtools"`
}

type APIServer struct {
Expand Down Expand Up @@ -205,15 +202,6 @@ type Writer struct {
Image string `json:"image"`
}

type DevTools struct {
// +kubebuilder:default:=false
// +kubebuilder:validation:Optional
EnableDatabaseSecret bool `json:"enableDatabaseSecret"`
// +kubebuilder:default:=false
// +kubebuilder:validation:Optional
EnableStorageSecret bool `json:"enableStorageSecret"`
}

// ResourceRequirements structures compute resource requirements.
// Replaces ResourceRequirements from corev1 which also includes optional storage field.
// We handle storage field separately, and should not include it as a subfield for Resources.
Expand Down
20 changes: 0 additions & 20 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,6 @@ spec:
type: string
type: object
type: object
devtools:
description: DevTools enables non-production tools and utilities for
Data Science Pipelines Operator developers
properties:
enableDatabaseSecret:
default: false
type: boolean
enableStorageSecret:
default: false
type: boolean
type: object
mlmd:
default:
deploy: false
Expand Down
53 changes: 0 additions & 53 deletions controllers/developer_tools.go

This file was deleted.

5 changes: 0 additions & 5 deletions controllers/dspipeline_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,6 @@ func (r *DSPAReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
}
}

err = r.ReconcileDevtools(dspa, params)
if err != nil {
return ctrl.Result{}, err
}

log.Info("Updating CR status")
// Refresh DSPA before updating
err = r.Get(ctx, req.NamespacedName, dspa)
Expand Down
2 changes: 0 additions & 2 deletions controllers/dspipeline_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type DSPAParams struct {
MariaDB *dspa.MariaDB
Minio *dspa.Minio
MLMD *dspa.MLMD
DevTools *dspa.DevTools
DBConnection
ObjectStorageConnection
}
Expand Down Expand Up @@ -402,7 +401,6 @@ func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePip
p.MlPipelineUI = dsp.Spec.MlPipelineUI.DeepCopy()
p.MariaDB = dsp.Spec.Database.MariaDB.DeepCopy()
p.Minio = dsp.Spec.ObjectStorage.Minio.DeepCopy()
p.DevTools = dsp.Spec.DevTools.DeepCopy()
p.OAuthProxy = config.GetStringConfigWithDefault(config.OAuthProxyImagePath, config.DefaultImageValue)
p.MLMD = dsp.Spec.MLMD.DeepCopy()

Expand Down
3 changes: 0 additions & 3 deletions controllers/testdata/declarative/case_3/deploy/02_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ spec:
mlpipelineUI:
deploy: false
image: frontend:test3
devtools:
enableDatabaseSecret: true
enableStorageSecret: true

0 comments on commit b8afe43

Please sign in to comment.