diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-06-05 15:40:52 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-06-08 08:26:08 +0200 |
commit | 5336a4ad074c54e392c8b0ec128ce4e450111c9c (patch) | |
tree | 40568209e36bf61e00b4357fd179e465e7ec935a /kubernetes/aaf/charts/aaf-sms/templates | |
parent | 3c2395cd1dede2bed7bd385d637f989eb6bfb15b (diff) |
[AAF SMS] Override outdated certificates
Certificates in AAF SMS are outdated
Replacing by new ones
Issue-ID: AAF-1159
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I47c459e6f9ca002bf7ed946a7de80426b04e959a
Diffstat (limited to 'kubernetes/aaf/charts/aaf-sms/templates')
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml | 6 | ||||
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/job.yaml | 6 | ||||
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/secret.yaml | 28 |
3 files changed, 40 insertions, 0 deletions
diff --git a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml index ca35fdc55a..b8886e2332 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml @@ -80,6 +80,9 @@ spec: subPath: smsconfig.json - mountPath: /sms/auth name: {{ include "common.fullname" . }}-auth + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -100,5 +103,8 @@ spec: - name: {{ include "common.fullname" . }}-auth persistentVolumeClaim: claimName: {{ include "common.fullname" . }} + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml index a5446ab20e..a3b1fa9818 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml @@ -70,6 +70,9 @@ spec: readOnly: true - mountPath: /preload/config name: {{ include "common.name" . }}-preload + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -87,6 +90,9 @@ spec: - name : {{ include "common.name" . }}-preload configMap: name: {{ include "common.fullname" . }}-preload + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs restartPolicy: OnFailure imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml new file mode 100644 index 0000000000..1ee1fa6c12 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml @@ -0,0 +1,28 @@ +{{/* +# Copyright 2020 Orange +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/}} + +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.fullname" . }}-certs + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +data: +{{ tpl (.Files.Glob "resources/certs/*").AsSecrets . | indent 2 }} |