summaryrefslogtreecommitdiffstats
path: root/kubernetes/platform/components/oom-cert-service/templates
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-11-30 07:46:48 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-30 07:46:48 +0000
commitcfc5e1f3c393125655a80ac0106db8eec2ede42a (patch)
tree06ebd1e2d762a1561df2318ead43cbdd9be44731 /kubernetes/platform/components/oom-cert-service/templates
parente094524d6bc3f83c562486177649cfea8bc2f93f (diff)
parent751f0f12fadbd9d471aa7f0c02a1bfb08636e624 (diff)
Merge "[PLATFORM] Add new fake deployment to fix offline certificates generation" into guilin
Diffstat (limited to 'kubernetes/platform/components/oom-cert-service/templates')
-rw-r--r--kubernetes/platform/components/oom-cert-service/templates/fake_deployment.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/kubernetes/platform/components/oom-cert-service/templates/fake_deployment.yaml b/kubernetes/platform/components/oom-cert-service/templates/fake_deployment.yaml
new file mode 100644
index 0000000000..ba12874eb6
--- /dev/null
+++ b/kubernetes/platform/components/oom-cert-service/templates/fake_deployment.yaml
@@ -0,0 +1,31 @@
+{{/*
+ # Copyright © 2020, Nokia
+ #
+ # 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.
+*/}}
+
+{{- if .Values.global.offlineDeploymentBuild }}
+apiVersion: apps/v1
+kind: Deployment
+metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector: {{- include "common.selectors" . | nindent 4 }}
+ template:
+ metadata: {{- include "common.templateMetadata" . | nindent 6 }}
+ spec:
+ containers:
+ - name: {{ include "common.name" . }}
+ image: {{ include "common.repository" . }}/{{ .Values.certificateGenerationImage }}
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+{{ end -}}