Skip to content

Commit 38bceed

Browse files
committed
Update CRD in our postgreslet-support chart as well (even though we a) do not currently use it and b) moved the charts to metal-stack/helm-charts)
1 parent fa01cc7 commit 38bceed

File tree

1 file changed

+24
-49
lines changed

1 file changed

+24
-49
lines changed

charts/postgreslet-support/crds/postgres.yaml

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,24 @@ spec:
1717
scope: Namespaced
1818
versions:
1919
- additionalPrinterColumns:
20+
- jsonPath: .spec.tenant
21+
name: Tenant
22+
type: string
2023
- jsonPath: .spec.version
2124
name: Version
2225
type: string
23-
- jsonPath: .status.description
24-
name: Status
26+
- jsonPath: .spec.numberOfInstances
27+
name: Replicas
2528
type: string
26-
- jsonPath: .status.lbSocket.ip
27-
name: Load-Balancer-IP
29+
- jsonPath: .status.socket.ip
30+
name: IP
2831
type: string
29-
- jsonPath: .status.lbSocket.port
30-
name: Load-Balancer-Port
32+
- jsonPath: .status.socket.port
33+
name: Port
3134
type: integer
35+
- jsonPath: .status.description
36+
name: Status
37+
type: string
3238
name: v1
3339
schema:
3440
openAPIV3Schema:
@@ -59,48 +65,19 @@ spec:
5965
type: string
6066
type: array
6167
type: object
62-
backup:
63-
description: 'todo: add default Backup parametes of the database backup'
64-
properties:
65-
retention:
66-
description: Retention defines how many days a backup will persist
67-
format: int32
68-
type: integer
69-
s3BucketURL:
70-
description: S3BucketURL defines the URL of the S3 bucket for
71-
backup
72-
type: string
73-
schedule:
74-
description: Schedule defines how often a backup should be made,
75-
in cron format
76-
type: string
77-
secretname:
78-
description: SecretName reference to the secret where the backup
79-
credentials are stored
80-
type: string
81-
type: object
68+
backupSecretRef:
69+
description: BackupSecretRef reference to the secret where the backup
70+
credentials are stored
71+
type: string
8272
description:
8373
description: Description
8474
type: string
8575
maintenance:
8676
description: 'todo: add default Maintenance defines automatic maintenance
8777
of the database'
88-
properties:
89-
timeWindow:
90-
description: TimeWindow defines when the maintenance should happen
91-
properties:
92-
end:
93-
format: date-time
94-
type: string
95-
start:
96-
format: date-time
97-
type: string
98-
type: object
99-
weekday:
100-
description: Weekday defines when the operator is allowed to do
101-
maintenance
102-
type: integer
103-
type: object
78+
items:
79+
type: string
80+
type: array
10481
numberOfInstances:
10582
default: 1
10683
description: NumberOfInstances number of replicas
@@ -113,16 +90,15 @@ spec:
11390
projectID:
11491
description: ProjectID metal project ID
11592
type: string
116-
secretname:
117-
description: SecretName reference to the secret where the user credentials
118-
are stored
119-
type: string
12093
size:
12194
description: Size of the database
12295
properties:
12396
cpu:
12497
description: CPU is in the format as pod.spec.resource.request.cpu
12598
type: string
99+
memory:
100+
description: Memory is in the format as pod.spec.resource.request.memory
101+
type: string
126102
sharedBuffer:
127103
description: SharedBuffer of the database
128104
type: string
@@ -137,15 +113,14 @@ spec:
137113
description: Tenant metal tenant
138114
type: string
139115
version:
140-
default: "12"
141116
description: Version is the version of Postgre-as-a-Service
142-
enum:
143-
- "12"
144117
type: string
145118
type: object
146119
status:
147120
description: PostgresStatus defines the observed state of Postgres
148121
properties:
122+
childName:
123+
type: string
149124
description:
150125
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
151126
of cluster Important: Run "make" to regenerate code after modifying

0 commit comments

Comments
 (0)