Skip to content

Commit

Permalink
Upgrade manifests kustomize v5
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza committed Sep 25, 2024
1 parent 73e6c5d commit e4b1863
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apiserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ GOBINDATA ?= $(REPO_ROOT_BIN)/go-bindata


## Tool Versions
KUSTOMIZE_VERSION ?= v3.8.7
KUSTOMIZE_VERSION ?= v5.4.3
GOFUMPT_VERSION ?= v0.3.1
GOIMPORTS_VERSION ?= v0.14.0
GOLANGCI_LINT_VERSION ?= v1.54.1
Expand Down
7 changes: 4 additions & 3 deletions apiserver/deploy/base/insecure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ namespace: ray-system
resources:
- apiserver.yaml

commonLabels:
app.kubernetes.io/name: kuberay
app.kubernetes.io/component: kuberay-apiserver
labels:
- pairs:
app.kubernetes.io/name: kuberay
app.kubernetes.io/part-of: kuberay-apiserver
images:
- name: kuberay/apiserver
newName: kuberay/apiserver
Expand Down
7 changes: 4 additions & 3 deletions apiserver/deploy/base/secure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ namespace: ray-system
resources:
- apiserver.yaml

commonLabels:
app.kubernetes.io/name: kuberay
app.kubernetes.io/component: kuberay-apiserver
labels:
- pairs:
app.kubernetes.io/name: kuberay
app.kubernetes.io/part-of: kuberay-apiserver
images:
- name: kuberay/apiserver
newName: kuberay/apiserver
Expand Down
2 changes: 1 addition & 1 deletion apiserver/deploy/local/insecure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization
resources:
- ../../base/insecure
namespace: ray-system
patchesJson6902:
patches:
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
Expand Down
2 changes: 1 addition & 1 deletion apiserver/deploy/local/secure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization
resources:
- ../../base/secure
namespace: ray-system
patchesJson6902:
patches:
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
Expand Down
8 changes: 4 additions & 4 deletions ray-operator/config/default-with-webhooks/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: ray-system
#namePrefix: ray-operator-

# Labels to add to all resources and selectors.
#commonLabels:
#labels:
# someName: someValue

#- ../prometheus
Expand All @@ -19,9 +19,9 @@ images:
newName: quay.io/kuberay/operator
newTag: nightly

patchesStrategicMerge:
- manager_webhook_patch.yaml
- webhookcainjection_patch.yaml
patches:
- path: manager_webhook_patch.yaml
- path: webhookcainjection_patch.yaml

replacements:
- source:
Expand Down
4 changes: 2 additions & 2 deletions ray-operator/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace: ray-system
#namePrefix: ray-operator-

# Labels to add to all resources and selectors.
#commonLabels:
#labels:
# someName: someValue

bases:
resources:
- ../crd
- ../rbac
- ../manager
Expand Down
7 changes: 4 additions & 3 deletions ray-operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonLabels:
app.kubernetes.io/component: kuberay-operator
app.kubernetes.io/name: kuberay
labels:
- pairs:
app.kubernetes.io/name: kuberay-operator
app.kubernetes.io/part-of: kuberay
7 changes: 4 additions & 3 deletions ray-operator/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
- leader_election_role_binding.yaml
- service_account.yaml

commonLabels:
app.kubernetes.io/name: kuberay
app.kubernetes.io/component: kuberay-operator
labels:
- pairs:
app.kubernetes.io/name: kuberay
app.kubernetes.io/part-of: kuberay-operator

0 comments on commit e4b1863

Please sign in to comment.