Skip to content

Commit

Permalink
Upgrade kustomization files to Kustomize v5
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza committed Nov 13, 2024
1 parent 94dee0e commit 8f4a51c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ 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/[email protected]
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kustomize/kustomize/[email protected]

## Download external CRDs for the integration testings.
EXTERNAL_CRDS_DIR ?= $(PROJECT_DIR)/manifests/external-crds
Expand Down
20 changes: 11 additions & 9 deletions manifests/base/webhook/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- manifests.yaml
commonLabels:
control-plane: kubeflow-training-operator
- manifests.yaml
patches:
- path: patch.yaml
target:
group: admissionregistration.k8s.io
version: v1
kind: ValidatingWebhookConfiguration
- path: patch.yaml
target:
group: admissionregistration.k8s.io
kind: ValidatingWebhookConfiguration
version: v1

configurations:
- kustomizeconfig.yaml
- kustomizeconfig.yaml
labels:
- includeSelectors: true
pairs:
control-plane: kubeflow-training-operator

0 comments on commit 8f4a51c

Please sign in to comment.