refactor: correct variable name $pod
=> $deployment
This commit is contained in:
@ -24,9 +24,9 @@ spec:
|
|||||||
|
|
||||||
{{- define "common.pdb" -}}
|
{{- define "common.pdb" -}}
|
||||||
{{- $top := first . -}}
|
{{- $top := first . -}}
|
||||||
{{- $pod := index . 2 -}}
|
{{- $deployment := index . 2 -}}
|
||||||
{{- $autoscaling := index . 3 -}}
|
{{- $autoscaling := index . 3 -}}
|
||||||
{{- if or (and $autoscaling.enabled (gt ($autoscaling.minReplicas | int) 1)) (gt ($pod.replicaCount | int) 1) }}
|
{{- if or (and $autoscaling.enabled (gt ($autoscaling.minReplicas | int) 1)) (gt ($deployment.replicaCount | int) 1) }}
|
||||||
{{- include "common.utils.merge" (append . "common.pdb.tpl") -}}
|
{{- include "common.utils.merge" (append . "common.pdb.tpl") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Reference in New Issue
Block a user