Skip to content

Commit

Permalink
fix deployment always update
Browse files Browse the repository at this point in the history
Signed-off-by: DangPeng Liu <[email protected]>
  • Loading branch information
ldpliu committed Dec 25, 2024
1 parent 7a74c9a commit d2b7a89
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{ if .TolerationSeconds }} tolerationSeconds: {{ .TolerationSeconds }} {{- end }}
{{- end}}
Expand Down
2 changes: 2 additions & 0 deletions operator/pkg/controllers/grafana/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
2 changes: 2 additions & 0 deletions operator/pkg/controllers/inventory/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
2 changes: 2 additions & 0 deletions operator/pkg/controllers/manager/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down
2 changes: 2 additions & 0 deletions operator/pkg/renderer/testdata/app/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ spec:
{{- range .Tolerations}}
- key: "{{.Key}}"
operator: "{{.Operator}}"
{{- if .Value}}
value: "{{.Value}}"
{{- end}}
effect: "{{.Effect}}"
{{- if .TolerationSeconds}}
tolerationSeconds: {{.TolerationSeconds}}
Expand Down

0 comments on commit d2b7a89

Please sign in to comment.