1 # Copyright © 2017-2018 AT&T
2 # Modifications Copyright © 2018 Amdocs, Bell Canada
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.
16 {{ if .Values.global.jobs.updateQueryData.enabled }}
21 name: {{ include "common.fullname" . }}-update-query-data
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ .Release.Name }}
27 heritage: {{ .Release.Service }}
32 app: {{ include "common.name" . }}-job
33 release: {{ .Release.Name }}
34 name: {{ include "common.name" . }}
42 {{ if eq .Values.global.aafEnabled true }}
51 fieldPath: metadata.namespace
52 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}-job
57 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 mkdir -p /opt/aai/logroot/AAI-GQ/misc
65 until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done;
66 bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
69 value: {{ .Values.global.config.userId | quote }}
70 - name: LOCAL_GROUP_ID
71 value: {{ .Values.global.config.groupId | quote }}
73 - mountPath: /etc/localtime
76 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
77 name: {{ include "common.fullname" . }}-db-real-conf
78 subPath: janusgraph-realtime.properties
79 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
80 name: {{ include "common.fullname" . }}-db-cached-conf
81 subPath: janusgraph-cached.properties
82 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
83 name: {{ include "common.fullname" . }}-aaiconfig-conf
84 subPath: aaiconfig.properties
85 - mountPath: /opt/aai/logroot/AAI-GQ/
86 name: {{ include "common.fullname" . }}-logs
87 - mountPath: /opt/app/aai-traversal/resources/logback.xml
88 name: {{ include "common.fullname" . }}-log-conf
90 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
91 name: {{ include "common.fullname" . }}-localhost-access-log-conf
92 subPath: localhost-access-logback.xml
93 - mountPath: /opt/app/aai-traversal/resources/application.properties
94 name: {{ include "common.fullname" . }}-springapp-conf
95 subPath: application.properties
97 {{ range $job := .Values.global.config.auth.files }}
98 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
99 name: {{ include "common.fullname" $global }}-auth-truststore-sec
102 # disable liveness probe when breakpoints set in debugger
103 # so K8s doesn't restart unresponsive container
108 - name: filebeat-conf
111 - name: {{ include "common.fullname" . }}-logs
113 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}-update-query
114 - name: {{ include "common.fullname" . }}-filebeat
116 - name: {{ include "common.fullname" . }}-log-conf
118 name: {{ include "common.fullname" . }}-log
119 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
121 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
122 - name: {{ include "common.fullname" . }}-db-real-conf
124 name: {{ include "common.fullname" . }}-db-real-configmap
125 - name: {{ include "common.fullname" . }}-db-cached-conf
127 name: {{ include "common.fullname" . }}-db-cached-configmap
128 - name: {{ include "common.fullname" . }}-aaiconfig-conf
130 name: {{ include "common.fullname" . }}-aaiconfig-configmap
131 - name: {{ include "common.fullname" . }}-springapp-conf
133 name: {{ include "common.fullname" . }}-springapp-configmap
134 - name: {{ include "common.fullname" . }}-realm-conf
136 name: {{ include "common.fullname" . }}-realm-configmap
137 - name: {{ include "common.fullname" . }}-auth-truststore-sec
139 secretName: aai-common-truststore
141 {{ range $job := .Values.global.config.auth.files }}
145 restartPolicy: OnFailure
147 - name: "{{ include "common.namespace" . }}-docker-registry-key"