aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/readinessCheck
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-12-15 11:59:42 +0000
committerGerrit Code Review <gerrit@onap.org>2021-12-15 11:59:42 +0000
commit20bb93fcb22d8aeef526b0f99ac8d57b7d9c95be (patch)
tree641929d9bef767cbb1c5fdeaa064631a4d427e84 /kubernetes/common/readinessCheck
parent0ea903d6d6c9b7e52eb3fd57ba5e3d1f8273b439 (diff)
parent8055f5a08b671f161f1287767d972a96517bb945 (diff)
Merge "[COMMON] Make namespace configurable"
Diffstat (limited to 'kubernetes/common/readinessCheck')
-rw-r--r--kubernetes/common/readinessCheck/templates/_readinessCheck.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/common/readinessCheck/templates/_readinessCheck.tpl b/kubernetes/common/readinessCheck/templates/_readinessCheck.tpl
index 71201a1cc6..90c278e4c5 100644
--- a/kubernetes/common/readinessCheck/templates/_readinessCheck.tpl
+++ b/kubernetes/common/readinessCheck/templates/_readinessCheck.tpl
@@ -83,10 +83,14 @@
{{- end }}
env:
- name: NAMESPACE
+ {{- if $subchartDot.Values.namespace }}
+ value: {{ $subchartDot.Values.namespace }}
+ {{- else }}
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
+ {{- end }}
resources:
limits:
cpu: {{ $subchartDot.Values.limits.cpu }}