Merge "[UUI] Service Mesh Compliance for UUI"
[oom.git] / kubernetes / so / components / soHelpers / templates / _certificates.tpl
1 {{- define "so.certificate.container_importer" -}}
2 {{-   $dot := default . .dot -}}
3 {{-   $initRoot := default $dot.Values.soHelpers .initRoot -}}
4 {{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
5 {{ include "common.certInitializer.initContainer" $subchartDot }}
6 {{- end -}}
7
8 {{- define "so.certificate.volumes" -}}
9 {{-   $dot := default . .dot -}}
10 {{-   $initRoot := default $dot.Values.soHelpers .initRoot -}}
11 {{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
12 {{ include "common.certInitializer.volumes" $subchartDot }}
13 {{- end -}}
14
15 {{- define "so.certificate.volumeMount" -}}
16 {{-   $dot := default . .dot -}}
17 {{-   $initRoot := default $dot.Values.soHelpers .initRoot -}}
18 {{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
19 {{ include "common.certInitializer.volumeMount" $subchartDot }}
20 {{- end -}}
21
22 {{- define "so.certificates.env" -}}
23 {{-   $dot := default . .dot -}}
24 {{-   $initRoot := default $dot.Values.soHelpers .initRoot -}}
25 {{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
26 {{-   if $dot.Values.global.aafEnabled }}
27 - name: TRUSTSTORE
28   value: {{ $subchartDot.Values.certInitializer.credsPath }}/truststoreONAPall.jks
29 {{-     if $dot.Values.global.security.aaf.enabled }}
30 - name: KEYSTORE
31   value: {{ $subchartDot.Values.certInitializer.credsPath }}/{{ $subchartDot.Values.certInitializer.fqi_namespace }}.p12
32 {{-     end }}
33 {{-   end }}
34 {{- end -}}