seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 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 }} |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 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 }} |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 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 |
Sylvain Desbureaux | fde9407 | 2021-03-19 15:06:41 +0100 | [diff] [blame] | 28 | value: {{ $subchartDot.Values.certInitializer.credsPath }}/truststoreONAPall.jks |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 29 | {{- if $dot.Values.global.security.aaf.enabled }} |
| 30 | - name: KEYSTORE |
Sylvain Desbureaux | fde9407 | 2021-03-19 15:06:41 +0100 | [diff] [blame] | 31 | value: {{ $subchartDot.Values.certInitializer.credsPath }}/{{ $subchartDot.Values.certInitializer.fqi_namespace }}.p12 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 32 | {{- end }} |
| 33 | {{- end }} |
| 34 | {{- end -}} |