Skip to content

Commit 464b58f

Browse files
committed
MK8S-184 - Rename POD_NAMESPACE to DEPLOYMENT_NAMESPACE
1 parent 2b7bbc8 commit 464b58f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

salt/metalk8s/addons/prometheus-operator/deployed/files/restart-on-ca-change.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def main():
6969
if current_hash == previous_hash:
7070
return
7171

72-
namespace = os.environ["POD_NAMESPACE"]
72+
namespace = os.environ["DEPLOYMENT_NAMESPACE"]
7373
deployment = os.environ["DEPLOYMENT_NAME"]
7474

7575
try:

salt/metalk8s/addons/prometheus-operator/deployed/oidc-proxy-alertmanager.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Create oauth2-proxy-alertmanager Deployment:
6262
value: "true"
6363
- name: SCRIPT
6464
value: /scripts/restart-on-ca-change.sh
65-
- name: POD_NAMESPACE
65+
- name: DEPLOYMENT_NAMESPACE
6666
value: metalk8s-monitoring
6767
- name: DEPLOYMENT_NAME
6868
value: oauth2-proxy-alertmanager

salt/metalk8s/addons/prometheus-operator/deployed/oidc-proxy-prometheus.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Create oauth2-proxy-prometheus Deployment:
6161
value: "true"
6262
- name: SCRIPT
6363
value: /scripts/restart-on-ca-change.sh
64-
- name: POD_NAMESPACE
64+
- name: DEPLOYMENT_NAMESPACE
6565
value: metalk8s-monitoring
6666
- name: DEPLOYMENT_NAME
6767
value: oauth2-proxy-prometheus

salt/tests/unit/test_restart_on_ca_change.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ENV_VARS = {
2828
"CA_DIR": "/tmp/secrets",
2929
"CA_FILE_NAME": "ca.crt",
30-
"POD_NAMESPACE": "metalk8s-monitoring",
30+
"DEPLOYMENT_NAMESPACE": "metalk8s-monitoring",
3131
"DEPLOYMENT_NAME": "oauth2-proxy-prometheus",
3232
}
3333

0 commit comments

Comments
 (0)