blob: 91666c1422b059bc2c8a3d91b3f97c090c0af7b1 [file] [log] [blame]
Jakub Latusekdf233a82020-10-21 13:36:29 +02001{{/*
BorislavGe904ab22018-04-03 16:55:55 +03002#============LICENSE_START========================================================
3# ================================================================================
4# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
Durgpal7ad40692018-08-03 07:28:36 +00005# Modifications Copyright © 2018 Amdocs, Bell Canada
BorislavGe904ab22018-04-03 16:55:55 +03006# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=========================================================
Jakub Latusekdf233a82020-10-21 13:36:29 +020019*/}}
BorislavGe904ab22018-04-03 16:55:55 +030020
21{{ if .Values.dcae_ns}}
BorislavGe904ab22018-04-03 16:55:55 +030022apiVersion: v1
23kind: Secret
24metadata:
25 name: {{ include "common.namespace" . }}-docker-registry-key
26 namespace: {{ .Values.dcae_ns }}
27 labels:
28 app: {{ include "common.name" . }}
29 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010030 release: {{ include "common.release" . }}
BorislavGe904ab22018-04-03 16:55:55 +030031 heritage: {{ .Release.Service }}
32data:
Sylvain Desbureauxcad63e52020-11-21 22:17:40 +010033 .dockercfg: {{ include "repositoryGenerator.secret" . }}
BorislavGe904ab22018-04-03 16:55:55 +030034type: kubernetes.io/dockercfg
BorislavGe904ab22018-04-03 16:55:55 +030035---
BorislavG254272e2018-05-09 14:34:14 +000036{{ end }}
BorislavGe904ab22018-04-03 16:55:55 +030037# Copy of the API token secret, needed to work around /var/run/secrets mount problem
38apiVersion: v1
39kind: Secret
40metadata:
41 name: dcae-token
42 namespace: {{ include "common.namespace" . }}
43 annotations:
44 kubernetes.io/service-account.name: default
45type: kubernetes.io/service-account-token
Schmalzried, Terry (ts862m)12db7892020-08-21 20:42:33 -040046---
47{{ include "common.secretFast" . }}