Merge "[COMMON] Make our common charts compatible with helm 3.7+"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 15 Dec 2021 12:03:35 +0000 (12:03 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 15 Dec 2021 12:03:35 +0000 (12:03 +0000)
1  2 
kubernetes/common/certInitializer/templates/_certInitializer.yaml

    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
  {{- define "common.certInitializer._volumes" -}}
  {{-   $dot := default . .dot -}}
  {{-   $initRoot := default $dot.Values.certInitializer .initRoot -}}
- {{- $subchartDot := mergeOverwrite (deepCopy (omit $dot "Values")) (dict "Chart" (set (fromJson (toJson $dot.Chart)) "Name" $initRoot.nameOverride) "Values" (mergeOverwrite (deepCopy $initRoot) (dict "global" $dot.Values.global))) }}
+ {{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot))}}
  - name: {{ include "common.certInitializer._aafConfigVolumeName" $dot }}
    emptyDir:
      medium: Memory