2 # Copyright (c) 2017-2018 AT&T
3 # Modifications Copyright (c) 2018 Amdocs, Bell Canada
4 # Modifications Copyright (c) 2020 Nokia, Orange
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
19 {{ if .Values.global.jobs.updateQueryData.enabled }}
24 name: {{ include "common.fullname" . }}-update-query-data
25 namespace: {{ include "common.namespace" . }}
27 app: {{ include "common.name" . }}
28 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
29 release: {{ include "common.release" . }}
30 heritage: {{ .Release.Service }}
31 {{ if .Values.global.jobs.migration.enabled }}
33 "helm.sh/hook": post-upgrade,post-rollback,post-install
34 "helm.sh/hook-weight": "2"
35 "helm.sh/hook-delete-policy": before-hook-creation
41 app: {{ include "common.name" . }}-job
42 release: {{ include "common.release" . }}
43 name: {{ include "common.name" . }}
51 {{ if eq .Values.global.aafEnabled true }}
60 fieldPath: metadata.namespace
61 image: {{ include "repositoryGenerator.image.readiness" . }}
62 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 name: {{ include "common.name" . }}-readiness
65 - name: {{ include "common.name" . }}-job
66 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
73 if [ ! -d /opt/aai/logroot/AAI-GQ/misc ]; then mkdir -p /opt/aai/logroot/AAI-GQ/misc; fi
74 until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done;
75 bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
78 value: {{ .Values.global.config.userId | quote }}
79 - name: LOCAL_GROUP_ID
80 value: {{ .Values.global.config.groupId | quote }}
82 {{ include "common.resources" . }}
84 - mountPath: /etc/localtime
87 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
88 name: {{ include "common.fullname" . }}-config
89 subPath: janusgraph-realtime.properties
90 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
91 name: {{ include "common.fullname" . }}-config
92 subPath: janusgraph-cached.properties
93 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
94 name: {{ include "common.fullname" . }}-config
95 subPath: aaiconfig.properties
96 - mountPath: /opt/aai/logroot/AAI-GQ/
97 name: {{ include "common.fullname" . }}-logs
98 - mountPath: /opt/aai/logroot/AAI-GQ/misc
99 name: {{ include "common.fullname" . }}-logs-misc
100 - mountPath: /opt/app/aai-traversal/resources/logback.xml
101 name: {{ include "common.fullname" . }}-config
103 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
104 name: {{ include "common.fullname" . }}-config
105 subPath: localhost-access-logback.xml
106 - mountPath: /opt/app/aai-traversal/resources/application.properties
107 name: {{ include "common.fullname" . }}-config
108 subPath: application.properties
110 {{ range $job := .Values.global.config.auth.files }}
111 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
112 name: {{ include "common.fullname" $global }}-auth-truststore-sec
115 # disable liveness probe when breakpoints set in debugger
116 # so K8s doesn't restart unresponsive container
121 - name: filebeat-conf
124 - name: {{ include "common.fullname" . }}-logs
126 - name: {{ include "common.fullname" . }}-logs-misc
128 - name: {{ include "common.fullname" . }}-filebeat
130 - name: {{ include "common.fullname" . }}-config
132 name: {{ include "common.fullname" . }}-configmap
133 - name: {{ include "common.fullname" . }}-auth-truststore-sec
135 secretName: aai-common-truststore
137 {{ range $job := .Values.global.config.auth.files }}
141 restartPolicy: OnFailure
143 - name: "{{ include "common.namespace" . }}-docker-registry-key"