We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a586d commit 68c4b49Copy full SHA for 68c4b49
pkg/cluster/k8sres.go
@@ -1010,7 +1010,7 @@ func (c *Cluster) generateSpiloPodEnvVars(
1010
1011
if c.patroniUsesKubernetes() {
1012
envVars = append(envVars, v1.EnvVar{Name: "DCS_ENABLE_KUBERNETES_API", Value: "true"})
1013
- if c.OpConfig.EnablePodDisruptionBudget != nil && !(*c.OpConfig.EnablePodDisruptionBudget) {
+ if c.OpConfig.EnablePodDisruptionBudget != nil && *c.OpConfig.EnablePodDisruptionBudget {
1014
envVars = append(envVars, v1.EnvVar{Name: "KUBERNETES_BOOTSTRAP_LABELS", Value: "{\"critical-operation\":\"true\"}"})
1015
}
1016
} else {
0 commit comments