Skip to content

Commit

Permalink
rename kyma resources namespace label
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Jan 9, 2025
1 parent 808cbd5 commit 1741832
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ patches:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
- path: manager_webhook_patch.yaml
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --kyma-worker-pool-name=cpu-worker-0
target:
kind: Deployment

replacements:
- source:
Expand Down
2 changes: 1 addition & 1 deletion config/webhook/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ patches:
path: /webhooks/0/namespaceSelector
value:
matchLabels:
managed-by: kyma
kyma-project.io/managed-by: kyma
target:
kind: MutatingWebhookConfiguration
2 changes: 1 addition & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var _ = Describe("Manager", Ordered, func() {
Expect(err).NotTo(HaveOccurred(), "Failed to create namespace")

By("labeling kyma-system namespace")
cmd = exec.Command("kubectl", "label", "namespace", namespace, "managed-by=kyma")
cmd = exec.Command("kubectl", "label", "namespace", namespace, "kyma-project.io/managed-by=kyma")
_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred(), "Failed to deploy the controller-manager")

Expand Down

0 comments on commit 1741832

Please sign in to comment.