remove standby leader configurable variable

This commit is contained in:
inovindasari
2024-11-27 15:40:30 +01:00
parent a48b5b6fb6
commit 910c7ee516
10 changed files with 1 additions and 21 deletions
-3
View File
@@ -1500,9 +1500,6 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
"pod_leader_label_value": {
Type: "string",
},
"pod_standby_leader_label_value": {
Type: "string",
},
"pod_service_account_definition": {
Type: "string",
},
@@ -82,7 +82,6 @@ type KubernetesMetaConfiguration struct {
InfrastructureRolesDefs []*config.InfrastructureRole `json:"infrastructure_roles_secrets,omitempty"`
PodRoleLabel string `json:"pod_role_label,omitempty"`
PodLeaderLabelValue string `json:"pod_leader_label_value,omitempty"`
PodStandbyLeaderLabelValue string `json:"pod_standby_leader_label_value,omitempty"`
ClusterLabels map[string]string `json:"cluster_labels,omitempty"`
InheritedLabels []string `json:"inherited_labels,omitempty"`
InheritedAnnotations []string `json:"inherited_annotations,omitempty"`
+1 -1
View File
@@ -956,7 +956,7 @@ func (c *Cluster) generateSpiloPodEnvVars(
},
{
Name: "KUBERNETES_STANDBY_LEADER_LABEL_VALUE",
Value: c.OpConfig.PodStandbyLeaderLabelValue,
Value: c.OpConfig.PodLeaderLabelValue,
},
{
Name: "PGPASSWORD_SUPERUSER",