blob: cda61b2cfaa2d0775ac4c57fad0c8912cc45c2b8 [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
Sylvain Desbureauxfde94072021-03-19 15:06:41 +010028 value: {{ $subchartDot.Values.certInitializer.credsPath }}/truststoreONAPall.jks
seshukm0df1f8e2020-08-17 21:45:49 +053029{{- if $dot.Values.global.security.aaf.enabled }}
30- name: KEYSTORE
Sylvain Desbureauxfde94072021-03-19 15:06:41 +010031 value: {{ $subchartDot.Values.certInitializer.credsPath }}/{{ $subchartDot.Values.certInitializer.fqi_namespace }}.p12
seshukm0df1f8e2020-08-17 21:45:49 +053032{{- end }}
33{{- end }}
34{{- end -}}