Skip to content

Commit a2328b9

Browse files
committed
more configurable variables
1 parent 8b79e33 commit a2328b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/cluster/k8sres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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{

pkg/controller/operator_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)