summaryrefslogtreecommitdiffstats
path: root/kubernetes/cds/charts/cds-ui/templates/secret.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-03-11 08:31:57 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2021-03-25 07:18:38 +0000
commit4d9702f7d3a9f7015d28874a37841c20e5a49efe (patch)
tree26c33d72d7bd16a4afb361d2413ae4de24561729 /kubernetes/cds/charts/cds-ui/templates/secret.yaml
parent152c430f7f7914d72a7820aba3264ab780b056c2 (diff)
[CDS] Update hardcoded certificates
Update CDS UI certificates in order to have validity for one year Issue-ID: CCSDK-3207 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Id7a0dbdfb6a59ac7e76e00fd106855f05482b041
Diffstat (limited to 'kubernetes/cds/charts/cds-ui/templates/secret.yaml')
-rw-r--r--kubernetes/cds/charts/cds-ui/templates/secret.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/kubernetes/cds/charts/cds-ui/templates/secret.yaml b/kubernetes/cds/charts/cds-ui/templates/secret.yaml
new file mode 100644
index 0000000000..6dcf31f6ca
--- /dev/null
+++ b/kubernetes/cds/charts/cds-ui/templates/secret.yaml
@@ -0,0 +1,31 @@
+{{/*
+# Copyright © 2021 Orange
+# Modifications Copyright © 2018 Amdocs, Bell Canada
+#
+# 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: {{ include "common.release" . }}
+ heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/certs/*").AsSecrets . | indent 2 }}
+---
+{{ include "common.secretFast" . }}