1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################'
19 name: {{ include "ricxapp.fullname" . }}
21 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
30 release: {{ .Release.Name }}
33 {{- if .Values.annotations }}
35 {{- range $key, $value := .Values.annotations }}
36 {{- if kindIs "string" $value }}
37 {{ $key }}: {{ $value | toPrettyJson }}
40 {{- $value | toPrettyJson | nindent 10 }}
45 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
46 kubernetes_name: {{ include "ricxapp.namespace" . }}_{{ include "ricxapp.name" . }}
47 release: {{ .Release.Name }}
49 hostname: {{ include "ricxapp.name" . }}
51 {{- range .Values.containers }}
52 - name: {{ .image.registry | replace "." "-" | replace ":" "-" | replace "/" "-" | trunc 63 | trimSuffix "-" }}
57 name: {{ include "ricxapp.configmapname" . }}-appconfig
59 {{- $containers := .Values.containers }}
60 {{- $ports := .Values.messaging.ports }}
61 {{- range $container := $containers }}
62 {{- $portlist := list }}
63 {{- range $port := $ports }}
64 {{- if eq $port.container $container.name }}
65 {{- $portlist = append $portlist $port }}
68 - name: {{ $container.name }}
69 image: "{{ $container.image.registry }}/{{ $container.image.name }}:{{ $container.image.tag }}"
70 {{- if $container.command }}
72 {{- range $command := $container.command -}}
73 {{- $command | quote -}}
74 {{- if ne $command (last $container.command) }}
80 {{- if $container.args }}
82 {{- range $arg := $container.args -}}
84 {{- if ne $arg (last $container.args) }}
90 imagePullPolicy: {{ $.Values.image_pull_policy }}
93 {{- range $port := $portlist }}
94 - name: {{ $port.name }}
95 containerPort: {{ $port.port }}
101 - name: config-volume
102 mountPath: {{ .Values.appconfig.path }}
105 name: {{ include "ricxapp.configmapname" . }}-appenv
107 name: dbaas-appconfig
108 restartPolicy: Always