Merge "[GLOBAL] Bump Java JRE image"
[oom.git] / kubernetes / common / readinessCheck / templates / _readinessCheck.tpl
index 71201a1..90c278e 100644 (file)
   {{- 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 }}