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 }}
28 {{ if .Values.global.jobs.migration.enabled }}
30 "helm.sh/hook": post-upgrade,post-rollback,post-install
31 "helm.sh/hook-weight": "2"
32 "helm.sh/hook-delete-policy": before-hook-creation
38 app: {{ include "common.name" . }}-job
39 release: {{ .Release.Name }}
40 name: {{ include "common.name" . }}
48 {{ if eq .Values.global.aafEnabled true }}
57 fieldPath: metadata.namespace
58 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-readiness
62 - name: {{ include "common.name" . }}-job
63 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 mkdir -p /opt/aai/logroot/AAI-GQ/misc
71 until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done;
72 bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
75 value: {{ .Values.global.config.userId | quote }}
76 - name: LOCAL_GROUP_ID
77 value: {{ .Values.global.config.groupId | quote }}
79 - mountPath: /etc/localtime
82 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
83 name: {{ include "common.fullname" . }}-config
84 subPath: janusgraph-realtime.properties
85 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
86 name: {{ include "common.fullname" . }}-config
87 subPath: janusgraph-cached.properties
88 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
89 name: {{ include "common.fullname" . }}-config
90 subPath: aaiconfig.properties
91 - mountPath: /opt/aai/logroot/AAI-GQ/
92 name: {{ include "common.fullname" . }}-logs
93 - mountPath: /opt/app/aai-traversal/resources/logback.xml
94 name: {{ include "common.fullname" . }}-config
96 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
97 name: {{ include "common.fullname" . }}-config
98 subPath: localhost-access-logback.xml
99 - mountPath: /opt/app/aai-traversal/resources/application.properties
100 name: {{ include "common.fullname" . }}-config
101 subPath: application.properties
103 {{ range $job := .Values.global.config.auth.files }}
104 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
105 name: {{ include "common.fullname" $global }}-auth-truststore-sec
108 # disable liveness probe when breakpoints set in debugger
109 # so K8s doesn't restart unresponsive container
114 - name: filebeat-conf
117 - name: {{ include "common.fullname" . }}-logs
119 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}-update-query
120 - name: {{ include "common.fullname" . }}-filebeat
122 - name: {{ include "common.fullname" . }}-config
124 name: {{ include "common.fullname" . }}-configmap
125 - name: {{ include "common.fullname" . }}-auth-truststore-sec
127 secretName: aai-common-truststore
129 {{ range $job := .Values.global.config.auth.files }}
133 restartPolicy: OnFailure
135 - name: "{{ include "common.namespace" . }}-docker-registry-key"