fix(common): try to fix "did not find expected "-" indicator (#2275)

* fix(common): try to fix "did not find expected "-" indicator

* fix mariadbinit command and bump version
This commit is contained in:
Stavros Kois
2022-03-25 21:48:00 +01:00
committed by GitHub
parent d4986184ea
commit 156ef759f8
3 changed files with 21 additions and 18 deletions
+3 -3
View File
@@ -3,11 +3,11 @@ appVersion: "10.7.3"
dependencies: dependencies:
- name: common - name: common
repository: https://truecharts.org repository: https://truecharts.org
version: 9.1.8 version: 9.1.13
deprecated: false deprecated: false
description: Fast, reliable, scalable, and easy to use open-source relational database system. description: Fast, reliable, scalable, and easy to use open-source relational database system.
home: https://github.com/truecharts/apps/tree/master/stable/mariadb home: https://github.com/truecharts/apps/tree/master/stable/mariadb
icon: https://bitnami.com/assets/stacks/mariadb/img/mariadb-stack-220x234.png icon: https://truecharts.org/_static/img/appicons/mariadb.png
keywords: keywords:
- mariadb - mariadb
- mysql - mysql
@@ -24,7 +24,7 @@ sources:
- https://github.com/prometheus/mysqld_exporter - https://github.com/prometheus/mysqld_exporter
- https://mariadb.org - https://mariadb.org
type: application type: application
version: 2.0.10 version: 2.0.11
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- database - database
@@ -2,21 +2,20 @@
This template ensures pods with postgresql dependency have a delayed start This template ensures pods with postgresql dependency have a delayed start
*/}} */}}
{{- define "common.dependencies.mariadb.init" -}} {{- define "common.dependencies.mariadb.init" -}}
{{- $pghost := printf "%v-%v" .Release.Name "mariadb" }}
{{- if .Values.mariadb.enabled }} {{- if .Values.mariadb.enabled }}
- name: mariadb-init - name: mariadb-init
image: "{{ .Values.mariadbImage.repository}}:{{ .Values.mariadbImage.tag }}" image: "{{ .Values.mariadbImage.repository}}:{{ .Values.mariadbImage.tag }}"
env: env:
- name: MARIADB_HOST - name: MARIADB_HOST
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mariadbcreds name: mariadbcreds
key: plainhost key: plainhost
- name: MARIADB_ROOT_PASSWORD - name: MARIADB_ROOT_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mariadbcreds name: mariadbcreds
key: mariadb-root-password key: mariadb-root-password
securityContext: securityContext:
capabilities: capabilities:
drop: drop:
@@ -25,10 +24,14 @@ This template ensures pods with postgresql dependency have a delayed start
{{- with .Values.resources }} {{- with .Values.resources }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
command: command: ["bash", "-ec"]
- "bash" args:
- "-ec" - >
- "until mysqladmin -uroot -h"${MARIADB_HOST}" -p"${MARIADB_ROOT_PASSWORD}" ping && mysqladmin -uroot -h"${MARIADB_HOST}" -p"${MARIADB_ROOT_PASSWORD}" status; do sleep 2; done" until
mysqladmin -uroot -h"${MARIADB_HOST}" -p"${MARIADB_ROOT_PASSWORD}" ping \
&& mysqladmin -uroot -h"${MARIADB_HOST}" -p"${MARIADB_ROOT_PASSWORD}" status;
do sleep 2;
done
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
{{- end }} {{- end }}
{{- end -}} {{- end -}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB