diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-04-01 09:59:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-01 09:59:56 +0000 |
commit | eac393265c9e926a3e18b1d4ede82c5c442eb65a (patch) | |
tree | b435097825a806944ca29adcaa272aebaa59d099 /kubernetes/so/templates/_certificates.tpl | |
parent | bf1af5c0a0caad1830bd2f56dded7d8d7fe35b3e (diff) | |
parent | aadf545643827a440b082f4dcf6afdfd1c2012e2 (diff) |
Merge "[SO] Onboard ONAP CA during init phase"
Diffstat (limited to 'kubernetes/so/templates/_certificates.tpl')
-rw-r--r-- | kubernetes/so/templates/_certificates.tpl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kubernetes/so/templates/_certificates.tpl b/kubernetes/so/templates/_certificates.tpl new file mode 100644 index 0000000000..8bd25d27a1 --- /dev/null +++ b/kubernetes/so/templates/_certificates.tpl @@ -0,0 +1,32 @@ +{{- define "so.certificate.container_importer" -}} +- name: {{ include "common.name" . }}-certs-importer + image: "{{ include "common.repository" . }}/{{ .Values.global.soBaseImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + command: + - "/bin/sh" + args: + - "-c" + - "update-ca-certificates --fresh && \ + cp -r {{ .Values.global.certificates.path }}/* /certificates" + volumeMounts: + - name: {{ include "common.name" . }}-certificates + mountPath: /certificates + - name: {{ include "common.name" . }}-onap-certificates + mountPath: {{ .Values.global.certificates.share_path }} +{{- end -}} + +{{- define "so.certificate.volume-mounts" -}} +- name: {{ include "common.name" . }}-certificates + mountPath: {{ .Values.global.certificates.path }} +- name: {{ include "common.name" . }}-onap-certificates + mountPath: {{ .Values.global.certificates.share_path }} +{{- end -}} + +{{- define "so.certificate.volumes" -}} +- name: {{ include "common.name" . }}-certificates + emptyDir: + medium: Memory +- name: {{ include "common.name" . }}-onap-certificates + secret: + secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "so-onap-certs") }} +{{- end -}} |