File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -955,9 +955,9 @@ func (c *Cluster) generateSpiloPodEnvVars(
955955 Value : c .OpConfig .PodLeaderLabelValue ,
956956 },
957957 {
958- Name : "KUBERNETES_STANDBY_LEADER_LABEL_VALUE" ,
958+ Name : "KUBERNETES_STANDBY_LEADER_LABEL_VALUE" ,
959959 Value : c .OpConfig .PodStandbyLeaderLabelValue ,
960- }
960+ },
961961 {
962962 Name : "PGPASSWORD_SUPERUSER" ,
963963 ValueFrom : & v1.EnvVarSource {
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur
110110 }
111111
112112 result .PodRoleLabel = util .Coalesce (fromCRD .Kubernetes .PodRoleLabel , "spilo-role" )
113+ result .PodLeaderLabelValue = util .Coalesce (fromCRD .Kubernetes .PodLeaderLabelValue , "master" )
114+ result .PodStandbyLeaderLabelValue = util .Coalesce (fromCRD .Kubernetes .PodStandbyLeaderLabelValue , "master" )
113115 result .ClusterLabels = util .CoalesceStrMap (fromCRD .Kubernetes .ClusterLabels , map [string ]string {"application" : "spilo" })
114116 result .InheritedLabels = fromCRD .Kubernetes .InheritedLabels
115117 result .InheritedAnnotations = fromCRD .Kubernetes .InheritedAnnotations
You can’t perform that action at this time.
0 commit comments