Skip to content

Commit bcd3db1

Browse files
oksanabazaastefanutti
authored andcommitted
training-operator manifests kustomize v5 upgrade
1 parent 130c890 commit bcd3db1

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ controller-gen: ## Download controller-gen locally if necessary.
112112

113113
KUSTOMIZE = $(shell pwd)/bin/kustomize
114114
kustomize: ## Download kustomize locally if necessary.
115-
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kustomize/kustomize/[email protected]
115+
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kustomize/kustomize/[email protected]

manifests/rhoai/kustomization.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,25 @@ configMapGenerator:
1818
configurations:
1919
- params.yaml
2020

21-
vars:
22-
- name: image
23-
objref:
21+
replacements:
22+
- source:
2423
kind: ConfigMap
2524
name: rhoai-config
26-
apiVersion: v1
27-
fieldref:
28-
fieldpath: data.odh-training-operator-controller-image
25+
version: v1
26+
fieldPath: data.odh-training-operator-controller-image
27+
targets:
28+
- select:
29+
kind: Deployment
30+
name: training-operator
31+
fieldPaths:
32+
- spec.template.spec.containers.0.image
2933

3034
# Labels to add to all resources and selectors.
31-
commonLabels:
32-
app.kubernetes.io/name: training-operator
33-
app.kubernetes.io/component: controller
35+
labels:
36+
- includeSelectors: true
37+
pairs:
38+
app.kubernetes.io/component: controller
39+
app.kubernetes.io/name: training-operator
3440

3541
resources:
3642
- ../base

0 commit comments

Comments
 (0)