kanidm: bump to v1.6.2, helm chart v0.2.0
This commit is contained in:
@ -60,16 +60,20 @@ spec:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
command:
|
||||
- bash
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
zypper install -y gawk kubernetes-client
|
||||
/sbin/kanidmd server -c /data/server.toml &
|
||||
serverPID=$!
|
||||
until curl -k --output /dev/null --silent --head --fail https://localhost:{{ .Values.service.port }}; do
|
||||
printf '.'
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo "##### Start domain upgrade-check"
|
||||
/sbin/kanidmd domain upgrade-check
|
||||
echo "##### Done domain upgrade-check"
|
||||
|
||||
ADMIN_PASS=$(kanidmd recover-account admin 2>/dev/null | gawk 'match($0, /new_password:(.*)/, a) { gsub(/ |"/, "", a[1]); print a[1]}')
|
||||
IDM_ADMIN_PASS=$(kanidmd recover-account idm_admin 2>/dev/null | gawk 'match($0, /new_password:(.*)/, a) { gsub(/ |"/, "", a[1]); print a[1]}')
|
||||
kill $serverPID
|
||||
@ -95,6 +99,11 @@ spec:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
{{- if .Values.kanidmLdap.enabled }}
|
||||
- name: ldap
|
||||
containerPort: {{ .Values.service.ldap }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
||||
readinessProbe:
|
||||
|
Reference in New Issue
Block a user