File tree Expand file tree Collapse file tree 11 files changed +19
-19
lines changed
build/crd/percona/generated
pkg/apis/pgv2.percona.com/v2 Expand file tree Collapse file tree 11 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -13422,8 +13422,6 @@ spec:
13422
13422
pmm:
13423
13423
description: The specification of PMM sidecars.
13424
13424
properties:
13425
- clusterName:
13426
- type: string
13427
13425
containerSecurityContext:
13428
13426
description: |-
13429
13427
SecurityContext holds security configuration that will be applied to a container.
@@ -13619,6 +13617,8 @@ spec:
13619
13617
type: string
13620
13618
type: object
13621
13619
type: object
13620
+ customClusterName:
13621
+ type: string
13622
13622
enabled:
13623
13623
type: boolean
13624
13624
image:
Original file line number Diff line number Diff line change @@ -13827,8 +13827,6 @@ spec:
13827
13827
pmm:
13828
13828
description: The specification of PMM sidecars.
13829
13829
properties:
13830
- clusterName:
13831
- type: string
13832
13830
containerSecurityContext:
13833
13831
description: |-
13834
13832
SecurityContext holds security configuration that will be applied to a container.
@@ -14024,6 +14022,8 @@ spec:
14024
14022
type: string
14025
14023
type: object
14026
14024
type: object
14025
+ customClusterName:
14026
+ type: string
14027
14027
enabled:
14028
14028
type: boolean
14029
14029
image:
Original file line number Diff line number Diff line change @@ -14120,8 +14120,6 @@ spec:
14120
14120
pmm:
14121
14121
description: The specification of PMM sidecars.
14122
14122
properties:
14123
- clusterName:
14124
- type: string
14125
14123
containerSecurityContext:
14126
14124
description: |-
14127
14125
SecurityContext holds security configuration that will be applied to a container.
@@ -14317,6 +14315,8 @@ spec:
14317
14315
type: string
14318
14316
type: object
14319
14317
type: object
14318
+ customClusterName:
14319
+ type: string
14320
14320
enabled:
14321
14321
type: boolean
14322
14322
image:
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ spec:
471
471
# imagePullPolicy: IfNotPresent
472
472
secret : cluster1-pmm-secret
473
473
serverHost : monitoring-service
474
- # clusterName : "<string>"
474
+ # customClusterName : "<string>"
475
475
# querySource: pgstatmonitor
476
476
# patroni:
477
477
# # Some values of the Liveness/Readiness probes of the patroni container are calculated using syncPeriodSeconds by the following formulas:
Original file line number Diff line number Diff line change @@ -14120,8 +14120,6 @@ spec:
14120
14120
pmm:
14121
14121
description: The specification of PMM sidecars.
14122
14122
properties:
14123
- clusterName:
14124
- type: string
14125
14123
containerSecurityContext:
14126
14124
description: |-
14127
14125
SecurityContext holds security configuration that will be applied to a container.
@@ -14317,6 +14315,8 @@ spec:
14317
14315
type: string
14318
14316
type: object
14319
14317
type: object
14318
+ customClusterName:
14319
+ type: string
14320
14320
enabled:
14321
14321
type: boolean
14322
14322
image:
Original file line number Diff line number Diff line change @@ -14120,8 +14120,6 @@ spec:
14120
14120
pmm:
14121
14121
description: The specification of PMM sidecars.
14122
14122
properties:
14123
- clusterName:
14124
- type: string
14125
14123
containerSecurityContext:
14126
14124
description: |-
14127
14125
SecurityContext holds security configuration that will be applied to a container.
@@ -14317,6 +14315,8 @@ spec:
14317
14315
type: string
14318
14316
type: object
14319
14317
type: object
14318
+ customClusterName:
14319
+ type: string
14320
14320
enabled:
14321
14321
type: boolean
14322
14322
image:
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ get_cr() {
182
182
.spec.proxy.pgBouncer.image = "' $IMAGE_PGBOUNCER ' " |
183
183
.spec.pmm.image = "' $IMAGE_PMM_CLIENT ' " |
184
184
.spec.pmm.secret = "' ${cr_name} ' -pmm-secret" |
185
- .spec.pmm.clusterName = "' ${cr_name} ' -pmm-custom-name"
185
+ .spec.pmm.customClusterName = "' ${cr_name} ' -pmm-custom-name"
186
186
' $DEPLOY_DIR /cr.yaml > $TEMP_DIR /cr.yaml
187
187
188
188
if [[ $OPENSHIFT ]]; then
Original file line number Diff line number Diff line change 39
39
enabled : true
40
40
secret : monitoring-pmm3-pmm-secret
41
41
serverHost : monitoring-service
42
- clusterName : monitoring-pmm3-pmm-custom-name
42
+ customClusterName : monitoring-pmm3-pmm-custom-name
43
43
port : 5432
44
44
proxy :
45
45
pgBouncer :
Original file line number Diff line number Diff line change 39
39
enabled : true
40
40
secret : monitoring-pmm-secret
41
41
serverHost : monitoring-service
42
- clusterName : monitoring-pmm-custom-name
42
+ customClusterName : monitoring-pmm-custom-name
43
43
port : 5432
44
44
proxy :
45
45
pgBouncer :
Original file line number Diff line number Diff line change @@ -235,8 +235,8 @@ func sidecarContainerV2(pgc *v2.PerconaPGCluster) corev1.Container {
235
235
236
236
if pgc .CompareVersion ("2.7.0" ) >= 0 {
237
237
clusterName := pgc .Name
238
- if pgc .Spec .PMM .ClusterName != "" {
239
- clusterName = pgc .Spec .PMM .ClusterName
238
+ if pgc .Spec .PMM .CustomClusterName != "" {
239
+ clusterName = pgc .Spec .PMM .CustomClusterName
240
240
}
241
241
container .Env = append (container .Env , corev1.EnvVar {
242
242
Name : "CLUSTER_NAME" ,
@@ -430,8 +430,8 @@ func sidecarContainerV3(pgc *v2.PerconaPGCluster) corev1.Container {
430
430
431
431
if pgc .CompareVersion ("2.7.0" ) >= 0 {
432
432
clusterName := pgc .Name
433
- if pgc .Spec .PMM .ClusterName != "" {
434
- clusterName = pgc .Spec .PMM .ClusterName
433
+ if pgc .Spec .PMM .CustomClusterName != "" {
434
+ clusterName = pgc .Spec .PMM .CustomClusterName
435
435
}
436
436
container .Env = append (container .Env , corev1.EnvVar {
437
437
Name : "CLUSTER_NAME" ,
You can’t perform that action at this time.
0 commit comments