Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix notes of tidb-backup chart #595

Merged
merged 4 commits into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/tidb-backup/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
watch kubectl get jobs --namespace {{ .Release.Namespace }} -l app.kubernetes.io/component=backup
2. Wait until backup pods becomes completed
watch kubectl get po --namespace {{ .Release.Namespace }} -l app.kubernetes.io/component=backup -o wide
{{- else if eq .Values.mode "restore" }}
{{- else if (or (eq .Values.mode "restore") (eq .Values.mode "scheduled-restore")) }}
1. Watch restore job is created
watch kubectl get jobs --namespace {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }} -o wide
2. Wait until restore pod becomes completed
watch kubectl get po --namespace {{ .Release.Namespace }} -l app.kubernetes.io/component=restore
watch kubectl get po --namespace {{ .Release.Namespace }} -l app.kubernetes.io/component={{ .Values.mode }}
{{- else }}
{{ fail (printf "invalid mode: %s" .Values.mode) }}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/tidb-backup/templates/restore-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ metadata:
app.kubernetes.io/name: {{ template "chart.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: restore
app.kubernetes.io/component: {{ .Values.mode }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
template:
metadata:
labels:
app.kubernetes.io/name: {{ template "chart.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: restore
app.kubernetes.io/component: {{ .Values.mode }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 8 }}
{{- end }}
Expand Down