Skip to content

Commit

Permalink
training-operator manifests kustomize v5 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza authored and astefanutti committed Sep 27, 2024
1 parent 130c890 commit bcd3db1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ controller-gen: ## Download controller-gen locally if necessary.

KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kustomize/kustomize/v4@v4.5.7
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kustomize/kustomize/v5@v5.4.3
24 changes: 15 additions & 9 deletions manifests/rhoai/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,25 @@ configMapGenerator:
configurations:
- params.yaml

vars:
- name: image
objref:
replacements:
- source:
kind: ConfigMap
name: rhoai-config
apiVersion: v1
fieldref:
fieldpath: data.odh-training-operator-controller-image
version: v1
fieldPath: data.odh-training-operator-controller-image
targets:
- select:
kind: Deployment
name: training-operator
fieldPaths:
- spec.template.spec.containers.0.image

# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/name: training-operator
app.kubernetes.io/component: controller
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: controller
app.kubernetes.io/name: training-operator

resources:
- ../base
Expand Down

0 comments on commit bcd3db1

Please sign in to comment.