Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

training-operator manifests kustomize v5 upgrade #13

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading