templates/post-install-job.yaml を更新

This commit is contained in:
2025-11-22 23:08:54 +00:00
parent c1a1dc04d5
commit 2a112d85d0

View File

@@ -5,10 +5,11 @@ metadata:
labels:
{{- include "wordpress-nginx.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": post-install
"helm.sh/hook-weight": "1"
"helm.sh/hook-delete-policy": before-hook-creation
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "10"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
spec:
ttlSecondsAfterFinished: 300
template:
metadata:
name: {{ include "wordpress-nginx.fullname" . }}-show-password
@@ -35,5 +36,4 @@ spec:
echo "kubectl get secret {{ include "wordpress-nginx.fullname" . }}-secret -o jsonpath='{.data.admin-password}' | base64 -d"
{{- end }}
echo ""
echo "Site URL: {{ .Values.wordpress.siteUrl }}"
echo "================================================"