Merge "[COMMON] Make namespace configurable"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 15 Dec 2021 11:59:42 +0000 (11:59 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 15 Dec 2021 11:59:42 +0000 (11:59 +0000)
kubernetes/common/certInitializer/templates/_certInitializer.yaml
kubernetes/common/readinessCheck/templates/_readinessCheck.tpl

index 32bba45..d5fc5a0 100644 (file)
   env:
     - name: APP_FQI
       value: "{{ $initRoot.fqi }}"
+  {{- if $initRoot.aaf_namespace }}
     - name: aaf_locate_url
-      value: "https://aaf-locate.{{ $dot.Release.Namespace}}:8095"
-    - name: aaf_locator_container
-      value: "oom"
+      value: "https://aaf-locate.{{ $initRoot.aaf_namespace }}:8095"
+    - name: aaf_locator_container_ns
+      value: "{{ $initRoot.aaf_namespace }}"
+  {{- else }}
+    - name: aaf_locate_url
+      value: "https://aaf-locate.{{ $dot.Release.Namespace }}:8095"
     - name: aaf_locator_container_ns
       value: "{{ $dot.Release.Namespace }}"
+  {{- end }}
+    - name: aaf_locator_container
+      value: "oom"
     - name: aaf_locator_fqdn
       value: "{{ $initRoot.fqdn }}"
     - name: aaf_locator_app_ns
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 }}