Skip to content

Commit 5fb9ca8

Browse files
Rename pipelineStorage to pipelineStore in API server spec to align with KFP configuration
Signed-off-by: VaniHaripriya <[email protected]>
1 parent 9b518e0 commit 5fb9ca8

File tree

13 files changed

+26
-26
lines changed

13 files changed

+26
-26
lines changed

api/v1/dspipeline_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ type APIServer struct {
157157
// +kubebuilder:default:=database
158158
// +kubebuilder:validation:Optional
159159
// +kubebuilder:validation:Enum=database;kubernetes
160-
PipelineStorage string `json:"pipelineStorage,omitempty"`
160+
PipelineStore string `json:"pipelineStore,omitempty"`
161161

162162
// Enable/disable caching in the DSP API server. Default: true
163163
// +kubebuilder:default:=true

api/v1alpha1/dspipeline_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ type APIServer struct {
209209
// +kubebuilder:default:=database
210210
// +kubebuilder:validation:Optional
211211
// +kubebuilder:validation:Enum=database;kubernetes
212-
PipelineStorage string `json:"pipelineStorage,omitempty"`
212+
PipelineStore string `json:"pipelineStore,omitempty"`
213213

214214
// Enable/disable caching in the DSP API server. Default: true
215215
// +kubebuilder:default:=true

config/crd/bases/datasciencepipelinesapplications.opendatahub.io_datasciencepipelinesapplications.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ spec:
186186
type: string
187187
type: object
188188
type: object
189-
pipelineStorage:
189+
pipelineStore:
190190
default: database
191191
description: The storage for pipeline definitions (pipelines and
192192
pipeline versions). It can be either 'database' or 'kubernetes'
@@ -1175,7 +1175,7 @@ spec:
11751175
in the ''move-all-results-to-tekton-home'' step. Deprecated:
11761176
DSP V1 only, will be removed in the future.'
11771177
type: string
1178-
pipelineStorage:
1178+
pipelineStore:
11791179
default: database
11801180
description: The storage for pipeline definitions (pipelines and
11811181
pipeline versions). It can be either 'database' or 'kubernetes'

config/internal/apiserver/default/deployment.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ spec:
200200
- --tlsCertPath=/etc/tls/private/tls.crt
201201
- --tlsCertKeyPath=/etc/tls/private/tls.key
202202
{{ end }}
203-
{{ if eq .APIServer.PipelineStorage "kubernetes" }}
203+
{{ if eq .APIServer.PipelineStore "kubernetes" }}
204204
- --pipelinesStoreKubernetes=true
205205
- --disableWebhook=true
206206
{{ end }}

config/samples/dspa-kubernetes/dspa_kubernetes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
apiServer:
1414
deploy: true
1515
enableSamplePipeline: true
16-
pipelineStorage: kubernetes
16+
pipelineStore: kubernetes
1717
objectStorage:
1818
minio:
1919
image: quay.io/opendatahub/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance

controllers/dspipeline_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (r *DSPAReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
304304
return ctrl.Result{}, err
305305
}
306306

307-
if dspa.Spec.APIServer.PipelineStorage == "kubernetes" {
307+
if dspa.Spec.APIServer.PipelineStore == "kubernetes" {
308308
err = r.ReconcileWebhook(ctx, params)
309309
if err != nil {
310310
dspaStatus.SetWebhookNotReady(err, config.FailingToDeploy)
@@ -443,7 +443,7 @@ func (r *DSPAReconciler) checkAvailableKubernetesDSPAs(ctx context.Context, excl
443443
if dspa.Name == excludeName && dspa.Namespace == excludeNamespace {
444444
continue
445445
}
446-
if dspa.Spec.APIServer != nil && dspa.Spec.APIServer.PipelineStorage == "kubernetes" {
446+
if dspa.Spec.APIServer != nil && dspa.Spec.APIServer.PipelineStore == "kubernetes" {
447447
return true, nil
448448
}
449449
}

controllers/testutil/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ func CreateTestDSPA() *dspav1.DataSciencePipelinesApplication {
289289
dspa.Spec = dspav1.DSPASpec{
290290
PodToPodTLS: boolPtr(false),
291291
APIServer: &dspav1.APIServer{
292-
Deploy: true,
293-
PipelineStorage: "kubernetes",
292+
Deploy: true,
293+
PipelineStore: "kubernetes",
294294
},
295295
MLMD: &dspav1.MLMD{
296296
Deploy: true,

controllers/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (r *DSPAReconciler) CleanUpWebhookIfUnused(ctx context.Context, dspa *dspav
6262
}
6363

6464
if !hasK8sDSPAs {
65-
log.Info("No other DSPAs with PipelineStorage 'kubernetes' found. Cleaning up webhook resources.")
65+
log.Info("No other DSPAs with PipelineStore 'kubernetes' found. Cleaning up webhook resources.")
6666
if err := r.cleanupWebhookResources(ctx, params.DSPONamespace); err != nil {
6767
log.Error(err, "Failed to clean up webhook resources")
6868
return err

controllers/webhook_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestWebhookLifecycle(t *testing.T) {
6767
require.NoError(t, err)
6868
})
6969

70-
t.Run("WebhookNotDeployedWithoutKubernetesPipelineStorage", func(t *testing.T) {
70+
t.Run("WebhookNotDeployedWithoutKubernetesPipelineStore", func(t *testing.T) {
7171
dspa := testutil.CreateEmptyDSPA()
7272
dspa.Name = "dspa-non-k8s"
7373
dspa.Namespace = "testnamespace"
@@ -147,7 +147,7 @@ func TestWebhookLifecycle(t *testing.T) {
147147
})
148148

149149
t.Run("WebhookPersistsWhenNonKubernetesDSPADeleted", func(t *testing.T) {
150-
// First: create a DSPA with kubernetes PipelineStorage to ensure webhook exists
150+
// First: create a DSPA with kubernetes PipelineStore to ensure webhook exists
151151
k8sDSPA := testutil.CreateTestDSPA()
152152

153153
os.Setenv("DSPO_NAMESPACE", "testDSPONamespace")
@@ -175,7 +175,7 @@ func TestWebhookLifecycle(t *testing.T) {
175175
assert.True(t, created)
176176
require.NoError(t, err)
177177

178-
//Create a DSPA with non-kubernetes PipelineStorage
178+
//Create a DSPA with non-kubernetes PipelineStore
179179
nonK8sDSPA := testutil.CreateEmptyDSPA()
180180
nonK8sDSPA.Name = "dspa-non-k8s"
181181
nonK8sDSPA.Namespace = "testnamespace"

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ func main() {
148148
LeaderElectionID: "f9eb95d5.opendatahub.io",
149149
Cache: cache.Options{
150150
ByObject: map[client.Object]cache.ByObject{
151-
// Limit the watches to the pipelineversions.pipelines.kubeflow.org webhooks in the DSPO namespace.
151+
// Limit the watches to only the pipelineversions.pipelines.kubeflow.org webhooks.
152152
&admv1.ValidatingWebhookConfiguration{}: {
153-
Field: fields.SelectorFromSet(fields.Set{"metadata.name": webhookConfigName, "metadata.namespace": dspoNamespace}),
153+
Field: fields.SelectorFromSet(fields.Set{"metadata.name": webhookConfigName}),
154154
},
155155
&admv1.MutatingWebhookConfiguration{}: {
156-
Field: fields.SelectorFromSet(fields.Set{"metadata.name": webhookConfigName, "metadata.namespace": dspoNamespace}),
156+
Field: fields.SelectorFromSet(fields.Set{"metadata.name": webhookConfigName}),
157157
},
158158
},
159159
},

0 commit comments

Comments
 (0)