Skip to content

Commit 910c7ee

Browse files
committed
remove standby leader configurable variable
1 parent a48b5b6 commit 910c7ee

File tree

10 files changed

+1
-21
lines changed

10 files changed

+1
-21
lines changed

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,6 @@ spec:
330330
pod_leader_label_value:
331331
type: string
332332
default: "master"
333-
pod_standby_leader_label_value:
334-
type: string
335-
default: "master"
336333
pod_service_account_definition:
337334
type: string
338335
default: ""

charts/postgres-operator/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ configKubernetes:
195195
# label assigned to the Postgres pods (and services/endpoints)
196196
pod_role_label: spilo-role
197197
pod_leader_label_value: master
198-
pod_standby_leader_label_value: master
199198
# service account definition as JSON/YAML string to be used by postgres cluster pods
200199
# pod_service_account_definition: ""
201200

delivery.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ pipeline:
1414
- desc: Run unit tests
1515
cmd: |
1616
make deps mocks test
17-
- desc: 'Run e2e tests'
18-
cmd: |
19-
make e2e
2017
- desc: Build Docker image
2118
cmd: |
2219
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"}

docs/reference/operator_parameters.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,6 @@ configuration they are grouped under the `kubernetes` key.
441441
value of the pod label if Postgres role is primary when running on Kubernetes.
442442
The default is 'master'.
443443

444-
* **pod_standby_leader_label_value**
445-
value of the pod label if Postgres role is standby_leader when running on Kubernetes.
446-
The default is 'master'.
447-
448444
* **cluster_labels**
449445
list of `name:value` pairs for additional labels assigned to the cluster
450446
objects. The default is `application:spilo`.

manifests/configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ data:
135135
# pod_priority_class_name: "postgres-pod-priority"
136136
pod_role_label: spilo-role
137137
pod_leader_label_value: master
138-
pod_standby_leader_label_value: master
139138
pod_service_account_definition: ""
140139
pod_service_account_name: "postgres-pod"
141140
pod_service_account_role_binding_definition: ""

manifests/operatorconfiguration.crd.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ spec:
328328
pod_leader_label_value:
329329
type: string
330330
default: "master"
331-
pod_standby_leader_label_value:
332-
type: string
333-
default: "master"
334331
pod_service_account_definition:
335332
type: string
336333
default: ""

manifests/postgresql-operator-default-configuration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ configuration:
100100
# pod_priority_class_name: "postgres-pod-priority"
101101
pod_role_label: spilo-role
102102
pod_leader_label_value: master
103-
pod_standby_leader_label_value: master
104103
# pod_service_account_definition: ""
105104
pod_service_account_name: postgres-pod
106105
# pod_service_account_role_binding_definition: ""

pkg/apis/acid.zalan.do/v1/crds.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,9 +1500,6 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
15001500
"pod_leader_label_value": {
15011501
Type: "string",
15021502
},
1503-
"pod_standby_leader_label_value": {
1504-
Type: "string",
1505-
},
15061503
"pod_service_account_definition": {
15071504
Type: "string",
15081505
},

pkg/apis/acid.zalan.do/v1/operator_configuration_type.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ type KubernetesMetaConfiguration struct {
8282
InfrastructureRolesDefs []*config.InfrastructureRole `json:"infrastructure_roles_secrets,omitempty"`
8383
PodRoleLabel string `json:"pod_role_label,omitempty"`
8484
PodLeaderLabelValue string `json:"pod_leader_label_value,omitempty"`
85-
PodStandbyLeaderLabelValue string `json:"pod_standby_leader_label_value,omitempty"`
8685
ClusterLabels map[string]string `json:"cluster_labels,omitempty"`
8786
InheritedLabels []string `json:"inherited_labels,omitempty"`
8887
InheritedAnnotations []string `json:"inherited_annotations,omitempty"`

pkg/cluster/k8sres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ func (c *Cluster) generateSpiloPodEnvVars(
956956
},
957957
{
958958
Name: "KUBERNETES_STANDBY_LEADER_LABEL_VALUE",
959-
Value: c.OpConfig.PodStandbyLeaderLabelValue,
959+
Value: c.OpConfig.PodLeaderLabelValue,
960960
},
961961
{
962962
Name: "PGPASSWORD_SUPERUSER",

0 commit comments

Comments
 (0)