77894d763b
* imagePullPolicy requirements for init-containers in 1.5 * dependency tree specified mariadb-init, when there is only a mariadb-seed job to depend on * the requirements.yaml should not include any chart in this repository other then common as that severely complicates removing charts as all dependent elements are removed with it * the post.sh.yaml has HOME set to /tmp which will not read /home/ansible configuration. It was unclear if this was by design, but /home/ansible seems like an important part of the kolla toolbox * the post.sh.yaml file had quoting typos, but even when they are fixed the job/glance-post will not run to completion, complaining of a missing kolla_keystone_service module
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: glance-db-sync
|
|
spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
pod.beta.kubernetes.io/init-containers: '[
|
|
{
|
|
"name": "init",
|
|
"image": "quay.io/stackanetes/kubernetes-entrypoint:v0.1.0",
|
|
"imagePullPolicy": "{{ .Values.images.pull_policy }}",
|
|
"env": [
|
|
{
|
|
"name": "NAMESPACE",
|
|
"value": "{{ .Release.Namespace }}"
|
|
},
|
|
{
|
|
"name": "DEPENDENCY_SERVICE",
|
|
"value": "{{ include "joinListWithColon" .Values.dependencies.db_sync.service }}"
|
|
},
|
|
{
|
|
"name": "DEPENDENCY_JOBS",
|
|
"value": "{{ include "joinListWithColon" .Values.dependencies.db_sync.jobs }}"
|
|
},
|
|
{
|
|
"name": "COMMAND",
|
|
"value": "echo done"
|
|
}
|
|
]
|
|
}
|
|
]'
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- name: glance-db-sync
|
|
image: {{ .Values.images.db_sync }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
command:
|
|
- bash
|
|
- /tmp/db-sync.sh
|
|
volumeMounts:
|
|
- name: glanceapiconf
|
|
mountPath: /etc/glance/glance-api.conf
|
|
subPath: glance-api.conf
|
|
- name: dbsyncsh
|
|
mountPath: /tmp/db-sync.sh
|
|
subPath: db-sync.sh
|
|
volumes:
|
|
- name: glanceapiconf
|
|
configMap:
|
|
name: glance-glanceapiconf
|
|
- name: dbsyncsh
|
|
configMap:
|
|
name: glance-dbsyncsh
|