mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 02:51:21 +02:00
Fix wrong condition for bootstrap labels (#2875)
This commit is contained in:
@@ -1010,7 +1010,7 @@ func (c *Cluster) generateSpiloPodEnvVars(
|
||||
|
||||
if c.patroniUsesKubernetes() {
|
||||
envVars = append(envVars, v1.EnvVar{Name: "DCS_ENABLE_KUBERNETES_API", Value: "true"})
|
||||
if c.OpConfig.EnablePodDisruptionBudget != nil && !(*c.OpConfig.EnablePodDisruptionBudget) {
|
||||
if c.OpConfig.EnablePodDisruptionBudget != nil && *c.OpConfig.EnablePodDisruptionBudget {
|
||||
envVars = append(envVars, v1.EnvVar{Name: "KUBERNETES_BOOTSTRAP_LABELS", Value: "{\"critical-operation\":\"true\"}"})
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user