Skip to content

Commit f5ad02c

Browse files
authored
Merge pull request #952 from percona/K8SPG-511_add_default_values
K8SPG-511 add default values
2 parents 576c6ca + 6d9ebba commit f5ad02c

File tree

12 files changed

+60
-0
lines changed

12 files changed

+60
-0
lines changed

.github/workflows/scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
ignore-unfixed: true
4040
vuln-type: 'os,library'
4141
severity: 'CRITICAL,HIGH'
42+
version: 'v0.57.1'
4243

4344
- name: Build an image from Dockerfile (linux/amd64)
4445
run: |
@@ -57,3 +58,4 @@ jobs:
5758
ignore-unfixed: true
5859
vuln-type: 'os,library'
5960
severity: 'CRITICAL,HIGH'
61+
version: 'v0.57.1'

build/crd/crunchy/generated/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3274,6 +3274,7 @@ spec:
32743274
- bucket
32753275
type: object
32763276
name:
3277+
default: repo1
32773278
description: The name of the repository
32783279
pattern: ^repo[1-4]
32793280
type: string
@@ -4515,6 +4516,7 @@ spec:
45154516
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
45164517
type: string
45174518
repoName:
4519+
default: repo1
45184520
description: |-
45194521
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
45204522
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6598,6 +6600,7 @@ spec:
65986600
- bucket
65996601
type: object
66006602
name:
6603+
default: repo1
66016604
description: The name of the repository
66026605
pattern: ^repo[1-4]
66036606
type: string
@@ -7938,6 +7941,7 @@ spec:
79387941
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
79397942
type: string
79407943
repoName:
7944+
default: repo1
79417945
description: |-
79427946
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
79437947
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13946,6 +13950,7 @@ spec:
1394613950
in a PostgresCluster.
1394713951
properties:
1394813952
enabled:
13953+
default: false
1394913954
description: Whether or not the operator should allow switchovers
1395013955
in a PostgresCluster
1395113956
type: boolean

build/crd/percona/generated/pgv2.percona.com_perconapgbackups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ spec:
132132
- bucket
133133
type: object
134134
name:
135+
default: repo1
135136
description: The name of the repository
136137
pattern: ^repo[1-4]
137138
type: string

build/crd/percona/generated/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3425,6 +3425,7 @@ spec:
34253425
- bucket
34263426
type: object
34273427
name:
3428+
default: repo1
34283429
description: The name of the repository
34293430
pattern: ^repo[1-4]
34303431
type: string
@@ -4666,6 +4667,7 @@ spec:
46664667
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
46674668
type: string
46684669
repoName:
4670+
default: repo1
46694671
description: |-
46704672
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
46714673
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6248,6 +6250,7 @@ spec:
62486250
- bucket
62496251
type: object
62506252
name:
6253+
default: repo1
62516254
description: The name of the repository
62526255
pattern: ^repo[1-4]
62536256
type: string
@@ -7588,6 +7591,7 @@ spec:
75887591
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
75897592
type: string
75907593
repoName:
7594+
default: repo1
75917595
description: |-
75927596
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
75937597
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13282,6 +13286,7 @@ spec:
1328213286
in a PostgresCluster.
1328313287
properties:
1328413288
enabled:
13289+
default: false
1328513290
description: Whether or not the operator should allow switchovers
1328613291
in a PostgresCluster
1328713292
type: boolean

config/crd/bases/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ spec:
131131
- bucket
132132
type: object
133133
name:
134+
default: repo1
134135
description: The name of the repository
135136
pattern: ^repo[1-4]
136137
type: string
@@ -3830,6 +3831,7 @@ spec:
38303831
- bucket
38313832
type: object
38323833
name:
3834+
default: repo1
38333835
description: The name of the repository
38343836
pattern: ^repo[1-4]
38353837
type: string
@@ -5071,6 +5073,7 @@ spec:
50715073
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
50725074
type: string
50735075
repoName:
5076+
default: repo1
50745077
description: |-
50755078
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
50765079
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6653,6 +6656,7 @@ spec:
66536656
- bucket
66546657
type: object
66556658
name:
6659+
default: repo1
66566660
description: The name of the repository
66576661
pattern: ^repo[1-4]
66586662
type: string
@@ -7993,6 +7997,7 @@ spec:
79937997
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
79947998
type: string
79957999
repoName:
8000+
default: repo1
79968001
description: |-
79978002
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
79988003
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13687,6 +13692,7 @@ spec:
1368713692
in a PostgresCluster.
1368813693
properties:
1368913694
enabled:
13695+
default: false
1369013696
description: Whether or not the operator should allow switchovers
1369113697
in a PostgresCluster
1369213698
type: boolean

config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3256,6 +3256,7 @@ spec:
32563256
- bucket
32573257
type: object
32583258
name:
3259+
default: repo1
32593260
description: The name of the repository
32603261
pattern: ^repo[1-4]
32613262
type: string
@@ -4505,6 +4506,7 @@ spec:
45054506
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
45064507
type: string
45074508
repoName:
4509+
default: repo1
45084510
description: |-
45094511
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
45104512
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6558,6 +6560,7 @@ spec:
65586560
- bucket
65596561
type: object
65606562
name:
6563+
default: repo1
65616564
description: The name of the repository
65626565
pattern: ^repo[1-4]
65636566
type: string
@@ -7898,6 +7901,7 @@ spec:
78987901
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
78997902
type: string
79007903
repoName:
7904+
default: repo1
79017905
description: |-
79027906
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
79037907
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13888,6 +13892,7 @@ spec:
1388813892
in a PostgresCluster.
1388913893
properties:
1389013894
enabled:
13895+
default: false
1389113896
description: Whether or not the operator should allow switchovers
1389213897
in a PostgresCluster
1389313898
type: boolean

deploy/bundle.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ spec:
424424
- bucket
425425
type: object
426426
name:
427+
default: repo1
427428
description: The name of the repository
428429
pattern: ^repo[1-4]
429430
type: string
@@ -4123,6 +4124,7 @@ spec:
41234124
- bucket
41244125
type: object
41254126
name:
4127+
default: repo1
41264128
description: The name of the repository
41274129
pattern: ^repo[1-4]
41284130
type: string
@@ -5364,6 +5366,7 @@ spec:
53645366
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
53655367
type: string
53665368
repoName:
5369+
default: repo1
53675370
description: |-
53685371
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
53695372
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6946,6 +6949,7 @@ spec:
69466949
- bucket
69476950
type: object
69486951
name:
6952+
default: repo1
69496953
description: The name of the repository
69506954
pattern: ^repo[1-4]
69516955
type: string
@@ -8286,6 +8290,7 @@ spec:
82868290
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
82878291
type: string
82888292
repoName:
8293+
default: repo1
82898294
description: |-
82908295
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
82918296
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13980,6 +13985,7 @@ spec:
1398013985
in a PostgresCluster.
1398113986
properties:
1398213987
enabled:
13988+
default: false
1398313989
description: Whether or not the operator should allow switchovers
1398413990
in a PostgresCluster
1398513991
type: boolean
@@ -28800,6 +28806,7 @@ spec:
2880028806
- bucket
2880128807
type: object
2880228808
name:
28809+
default: repo1
2880328810
description: The name of the repository
2880428811
pattern: ^repo[1-4]
2880528812
type: string
@@ -30049,6 +30056,7 @@ spec:
3004930056
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
3005030057
type: string
3005130058
repoName:
30059+
default: repo1
3005230060
description: |-
3005330061
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
3005430062
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -32102,6 +32110,7 @@ spec:
3210232110
- bucket
3210332111
type: object
3210432112
name:
32113+
default: repo1
3210532114
description: The name of the repository
3210632115
pattern: ^repo[1-4]
3210732116
type: string
@@ -33442,6 +33451,7 @@ spec:
3344233451
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
3344333452
type: string
3344433453
repoName:
33454+
default: repo1
3344533455
description: |-
3344633456
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
3344733457
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -39432,6 +39442,7 @@ spec:
3943239442
in a PostgresCluster.
3943339443
properties:
3943439444
enabled:
39445+
default: false
3943539446
description: Whether or not the operator should allow switchovers
3943639447
in a PostgresCluster
3943739448
type: boolean

deploy/crd.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ spec:
424424
- bucket
425425
type: object
426426
name:
427+
default: repo1
427428
description: The name of the repository
428429
pattern: ^repo[1-4]
429430
type: string
@@ -4123,6 +4124,7 @@ spec:
41234124
- bucket
41244125
type: object
41254126
name:
4127+
default: repo1
41264128
description: The name of the repository
41274129
pattern: ^repo[1-4]
41284130
type: string
@@ -5364,6 +5366,7 @@ spec:
53645366
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
53655367
type: string
53665368
repoName:
5369+
default: repo1
53675370
description: |-
53685371
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
53695372
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -6946,6 +6949,7 @@ spec:
69466949
- bucket
69476950
type: object
69486951
name:
6952+
default: repo1
69496953
description: The name of the repository
69506954
pattern: ^repo[1-4]
69516955
type: string
@@ -8286,6 +8290,7 @@ spec:
82868290
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
82878291
type: string
82888292
repoName:
8293+
default: repo1
82898294
description: |-
82908295
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
82918296
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -13980,6 +13985,7 @@ spec:
1398013985
in a PostgresCluster.
1398113986
properties:
1398213987
enabled:
13988+
default: false
1398313989
description: Whether or not the operator should allow switchovers
1398413990
in a PostgresCluster
1398513991
type: boolean
@@ -28800,6 +28806,7 @@ spec:
2880028806
- bucket
2880128807
type: object
2880228808
name:
28809+
default: repo1
2880328810
description: The name of the repository
2880428811
pattern: ^repo[1-4]
2880528812
type: string
@@ -30049,6 +30056,7 @@ spec:
3004930056
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
3005030057
type: string
3005130058
repoName:
30059+
default: repo1
3005230060
description: |-
3005330061
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
3005430062
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -32102,6 +32110,7 @@ spec:
3210232110
- bucket
3210332111
type: object
3210432112
name:
32113+
default: repo1
3210532114
description: The name of the repository
3210632115
pattern: ^repo[1-4]
3210732116
type: string
@@ -33442,6 +33451,7 @@ spec:
3344233451
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
3344333452
type: string
3344433453
repoName:
33454+
default: repo1
3344533455
description: |-
3344633456
The name of the pgBackRest repo within the source PostgresCluster that contains the backups
3344733457
that should be utilized to perform a pgBackRest restore when initializing the data source
@@ -39432,6 +39442,7 @@ spec:
3943239442
in a PostgresCluster.
3943339443
properties:
3943439444
enabled:
39445+
default: false
3943539446
description: Whether or not the operator should allow switchovers
3943639447
in a PostgresCluster
3943739448
type: boolean

0 commit comments

Comments
 (0)