-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7748 from sapcc/masakari_mariadb
Bring back MariaDB and remove proxySQL
- Loading branch information
Showing
19 changed files
with
101 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
# since this name changes with every image change, removal and creation of | ||
# this Job happens on nearly every deployment. Check the helm-chart changes | ||
# to see if this needs more review. | ||
name: {{ .Release.Name }}-db-migrate-{{ .Values.imageVersion | required "Please set .imageVersion or similar" }} | ||
labels: | ||
system: openstack | ||
type: configuration | ||
component: {{ .Chart.Name }} | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
alert-tier: os | ||
alert-service: {{ .Chart.Name }} | ||
{{ tuple . .Release.Name "db-migrate" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} | ||
annotations: | ||
{{- include "utils.linkerd.pod_and_service_annotation" . | indent 8 }} | ||
spec: | ||
restartPolicy: OnFailure | ||
initContainers: | ||
{{- tuple . (dict "service" (include "db_name" .)) | include "utils.snippets.kubernetes_entrypoint_init_container" | indent 6 }} | ||
containers: | ||
- name: db-migrate | ||
image: {{ required ".Values.global.registry is missing" .Values.global.registry}}/loci-masakari:{{.Values.imageVersion | required "Please set .imageVersion or similar" }} | ||
imagePullPolicy: IfNotPresent | ||
{{ toYaml .Values.securityContext | indent 8 }} | ||
command: | ||
- dumb-init | ||
- bash | ||
- -c | ||
- | | ||
set -euo pipefail | ||
if which masakari-manage; then | ||
masakari-manage db sync | ||
else | ||
sleep 5 | ||
fi | ||
{{- include "utils.script.job_finished_hook" . | nindent 10 }} | ||
env: | ||
{{- if .Values.sentry.enabled }} | ||
- name: SENTRY_DSN | ||
valueFrom: | ||
secretKeyRef: | ||
name: sentry | ||
key: {{ .Chart.Name }}.DSN.python | ||
{{- end }} | ||
- name: PYTHONWARNINGS | ||
value: {{ .Values.python_warnings | quote }} | ||
volumeMounts: | ||
- mountPath: /etc/masakari | ||
name: masakari-etc | ||
- mountPath: /etc/masakari/masakari.conf.d | ||
name: masakari-etc-confd | ||
{{- include "utils.trust_bundle.volume_mount" . | indent 8 }} | ||
volumes: | ||
- name: masakari-etc | ||
configMap: | ||
name: masakari-etc | ||
- name: masakari-etc-confd | ||
secret: | ||
secretName: masakari-etc | ||
{{- include "utils.trust_bundle.volumes" . | indent 6 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.