Skip to content

Commit 000bd51

Browse files
committed
Add dspa label to deployments.
Fix test-cases for label change. Signed-off-by: Humair Khan <[email protected]>
1 parent 792029b commit 000bd51

34 files changed

+102
-0
lines changed

config/internal/apiserver/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ metadata:
66
labels:
77
app: ds-pipeline-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
selector:
1112
matchLabels:
1213
app: ds-pipeline-{{.Name}}
1314
component: data-science-pipelines
15+
dspa: {{.Name}}
1416
template:
1517
metadata:
1618
labels:
1719
app: ds-pipeline-{{.Name}}
1820
component: data-science-pipelines
21+
dspa: {{.Name}}
1922
spec:
2023
containers:
2124
- env:

config/internal/mariadb/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
labels:
88
app: mariadb-{{.Name}}
99
component: data-science-pipelines
10+
dspa: {{.Name}}
1011
spec:
1112
strategy:
1213
# Need this since backing PVC is ReadWriteOnce,
@@ -17,11 +18,13 @@ spec:
1718
matchLabels:
1819
app: mariadb-{{.Name}}
1920
component: data-science-pipelines
21+
dspa: {{.Name}}
2022
template:
2123
metadata:
2224
labels:
2325
app: mariadb-{{.Name}}
2426
component: data-science-pipelines
27+
dspa: {{.Name}}
2528
spec:
2629
containers:
2730
- name: mariadb

config/internal/minio/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ metadata:
66
labels:
77
app: minio-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
selector:
1112
matchLabels:
1213
app: minio-{{.Name}}
1314
component: data-science-pipelines
15+
dspa: {{.Name}}
1416
strategy:
1517
type: Recreate
1618
template:
1719
metadata:
1820
labels:
1921
app: minio-{{.Name}}
2022
component: data-science-pipelines
23+
dspa: {{.Name}}
2124
spec:
2225
containers:
2326
- args:

config/internal/ml-metadata/metadata-envoy.deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@ metadata:
66
labels:
77
app: ds-pipeline-metadata-envoy-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
replicas: 1
1112
selector:
1213
matchLabels:
1314
app: ds-pipeline-metadata-envoy-{{.Name}}
1415
component: data-science-pipelines
16+
dspa: {{.Name}}
1517
template:
1618
metadata:
1719
annotations:
1820
sidecar.istio.io/inject: "false"
1921
labels:
2022
app: ds-pipeline-metadata-envoy-{{.Name}}
2123
component: data-science-pipelines
24+
dspa: {{.Name}}
2225
spec:
2326
containers:
2427
- image: {{.MLMD.Envoy.Image}}

config/internal/ml-metadata/metadata-grpc.deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ metadata:
66
labels:
77
app: ds-pipeline-metadata-grpc-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
replicas: 1
1112
selector:
1213
matchLabels:
1314
app: ds-pipeline-metadata-grpc-{{.Name}}
1415
component: data-science-pipelines
16+
dspa: {{.Name}}
1517
template:
1618
metadata:
1719
labels:
1820
app: ds-pipeline-metadata-grpc-{{.Name}}
1921
component: data-science-pipelines
22+
dspa: {{.Name}}
2023
spec:
2124
containers:
2225
- args:

config/internal/ml-metadata/metadata-writer.deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ metadata:
66
labels:
77
app: ds-pipeline-metadata-writer-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
replicas: 1
1112
selector:
1213
matchLabels:
1314
app: ds-pipeline-metadata-writer-{{.Name}}
1415
component: data-science-pipelines
16+
dspa: {{.Name}}
1517
template:
1618
metadata:
1719
labels:
1820
app: ds-pipeline-metadata-writer-{{.Name}}
1921
component: data-science-pipelines
22+
dspa: {{.Name}}
2023
spec:
2124
containers:
2225
- env:

config/internal/mlpipelines-ui/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ metadata:
66
labels:
77
app: ds-pipeline-ui-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
selector:
1112
matchLabels:
1213
app: ds-pipeline-ui-{{.Name}}
1314
component: data-science-pipelines
15+
dspa: {{.Name}}
1416
template:
1517
metadata:
1618
annotations:
1719
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
1820
labels:
1921
app: ds-pipeline-ui-{{.Name}}
2022
component: data-science-pipelines
23+
dspa: {{.Name}}
2124
spec:
2225
containers:
2326
- env:

config/internal/persistence-agent/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ metadata:
66
labels:
77
app: ds-pipeline-persistenceagent-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
selector:
1112
matchLabels:
1213
app: ds-pipeline-persistenceagent-{{.Name}}
1314
component: data-science-pipelines
15+
dspa: {{.Name}}
1416
template:
1517
metadata:
1618
annotations:
1719
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
1820
labels:
1921
app: ds-pipeline-persistenceagent-{{.Name}}
2022
component: data-science-pipelines
23+
dspa: {{.Name}}
2124
spec:
2225
containers:
2326
- env:

config/internal/scheduled-workflow/deployment.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ metadata:
66
labels:
77
app: ds-pipeline-scheduledworkflow-{{.Name}}
88
component: data-science-pipelines
9+
dspa: {{.Name}}
910
spec:
1011
selector:
1112
matchLabels:
1213
app: ds-pipeline-scheduledworkflow-{{.Name}}
1314
component: data-science-pipelines
15+
dspa: {{.Name}}
1416
template:
1517
metadata:
1618
annotations:
1719
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
1820
labels:
1921
app: ds-pipeline-scheduledworkflow-{{.Name}}
2022
component: data-science-pipelines
23+
dspa: {{.Name}}
2124
spec:
2225
containers:
2326
- env:

controllers/testdata/declarative/case_0/expected/created/apiserver_deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ metadata:
66
labels:
77
app: ds-pipeline-testdsp0
88
component: data-science-pipelines
9+
dspa: testdsp0
910
spec:
1011
selector:
1112
matchLabels:
1213
app: ds-pipeline-testdsp0
1314
component: data-science-pipelines
15+
dspa: testdsp0
1416
template:
1517
metadata:
1618
labels:
1719
app: ds-pipeline-testdsp0
1820
component: data-science-pipelines
21+
dspa: testdsp0
1922
spec:
2023
containers:
2124
- env:

0 commit comments

Comments
 (0)