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 }}
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 }}
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 }}
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 }}
28 value: {{ $subchartDot.Values.certInitializer.credsPath }}/truststoreONAPall.jks
29 {{- if $dot.Values.global.security.aaf.enabled }}
31 value: {{ $subchartDot.Values.certInitializer.credsPath }}/{{ $subchartDot.Values.certInitializer.fqi_namespace }}.p12