blob: f5b97d5c25b1d533076f2499d43531c93f246b05 [file] [log] [blame]
seshukm0df1f8e2020-08-17 21:45:49 +05301{{- 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 }}
seshukm0df1f8e2020-08-17 21:45:49 +05306{{- 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 }}
seshukm0df1f8e2020-08-17 21:45:49 +053013{{- 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 }}/{{ $subchartDot.Values.aaf.trustore }}
29{{- if $dot.Values.global.security.aaf.enabled }}
30- name: KEYSTORE
Sylvain Desbureauxa1bbe5c2020-10-28 16:55:18 +010031 value: {{ $subchartDot.Values.certInitializer.credsPath }}/org.onap.so.p12
seshukm0df1f8e2020-08-17 21:45:49 +053032{{- end }}
33{{- end }}
34{{- end -}}