Skip to content

Commit cff42d9

Browse files
authored
Merge pull request #551 from Shunpoco/add-env-vars-to-config-deployment
Add env vars to Deployment and config/default
2 parents b3d0b68 + 42ec9ed commit cff42d9

3 files changed

Lines changed: 16 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

config/manager/manager.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ spec:
7070
- /manager
7171
args:
7272
- --leader-elect
73+
env:
74+
- name: CONTROLLER_NAMESPACE
75+
value: system
76+
- name: SHIM_DOWNLOADER_IMAGE
77+
value: ghcr.io/spinframework/shim-downloader:latest
78+
- name: SHIM_NODE_INSTALLER_IMAGE
79+
value: ghcr.io/spinframework/node-installer:latest
80+
- name: SHIM_NODE_INSTALLER_JOB_TTL
81+
value: "0"
7382
image: controller:latest
7483
name: manager
7584
securityContext:

0 commit comments

Comments
 (0)