Skip to content

Commit

Permalink
fix deployment always update (#1304)
Browse files Browse the repository at this point in the history
Signed-off-by: DangPeng Liu <[email protected]>
  • Loading branch information
ldpliu authored Dec 25, 2024
1 parent 7a74c9a commit 9f499ff
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ spec:
serviceAccountName: nginx
tolerations:
- key: node.kubernetes.io/unreachable
value: ""
operator: Exists
effect: NoExecute
tolerationSeconds: 6000
Expand Down
1 change: 0 additions & 1 deletion operator/pkg/renderer/testdata/output/all.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ spec:
serviceAccountName: nginx
tolerations:
- key: node.kubernetes.io/unreachable
value: ""
operator: Exists
effect: NoExecute
tolerationSeconds: 6000
Expand Down
1 change: 0 additions & 1 deletion operator/pkg/renderer/testdata/output/default.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ spec:
serviceAccountName: nginx
tolerations:
- key: node.kubernetes.io/unreachable
value: ""
operator: Exists
effect: NoExecute
tolerationSeconds: 6000
Expand Down
1 change: 0 additions & 1 deletion operator/pkg/renderer/testdata/output/external.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ spec:
serviceAccountName: nginx
tolerations:
- key: node.kubernetes.io/unreachable
value: ""
operator: Exists
effect: NoExecute
tolerationSeconds: 6000
Expand Down
1 change: 0 additions & 1 deletion operator/pkg/renderer/testdata/output/ha.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ spec:
serviceAccountName: nginx
tolerations:
- key: node.kubernetes.io/unreachable
value: ""
operator: Exists
effect: NoExecute
tolerationSeconds: 6000
Expand Down

0 comments on commit 9f499ff

Please sign in to comment.