Skip to content

Commit 42ec9ed

Browse files
committed
Modify env var to align namespace change
kustomize build config/default modifies the manager's namespace. CONTROLLER_NAMESPACE should be modified as well for the change. Signed-off-by: Shunpoco <tkngsnsk313320@gmail.com>
1 parent 4e3e8f4 commit 42ec9ed

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

config/default/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ resources:
2727
#- ../prometheus
2828

2929
patches:
30+
- path: manager_config_patch.yaml
31+
3032
# Protect the /metrics endpoint by putting it behind auth.
3133
# If you want your controller-manager to expose the /metrics
3234
# endpoint w/o any authn/z, please comment the following line.

config/default/manager_config_patch.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ spec:
88
spec:
99
containers:
1010
- name: manager
11+
env:
12+
# It should be modified as the manager's namespace is
13+
# modified by the kustomization.
14+
- name: CONTROLLER_NAMESPACE
15+
value: runtime-class-manager-system

0 commit comments

Comments
 (0)