Skip to content

Commit 772b620

Browse files
feat: Update CRDs (#7)
1 parent 959c159 commit 772b620

10 files changed

+125
-23
lines changed

crds/backups.postgresql.cnpg.io.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: backups.postgresql.cnpg.io
88
spec:
@@ -211,6 +211,11 @@ spec:
211211
- key
212212
- name
213213
type: object
214+
useDefaultAzureCredentials:
215+
description: |-
216+
Use the default Azure authentication flow, which includes DefaultAzureCredential.
217+
This allows authentication using environment variables and managed identities.
218+
type: boolean
214219
type: object
215220
backupId:
216221
description: The ID of the Barman backup
@@ -304,6 +309,13 @@ spec:
304309
podName:
305310
description: The pod name
306311
type: string
312+
sessionID:
313+
description: |-
314+
The instance manager session ID. This is a unique identifier generated at instance manager
315+
startup and changes on every restart (including container reboots). Used to detect if
316+
the instance manager was restarted during long-running operations like backups, which
317+
would terminate any running backup process.
318+
type: string
307319
type: object
308320
majorVersion:
309321
description: |-

crds/clusterimagecatalogs.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: clusterimagecatalogs.postgresql.cnpg.io
88
spec:

crds/clusters.postgresql.cnpg.io.yaml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: clusters.postgresql.cnpg.io
88
spec:
@@ -984,9 +984,10 @@ spec:
984984
operator:
985985
description: |-
986986
Operator represents a key's relationship to the value.
987-
Valid operators are Exists and Equal. Defaults to Equal.
987+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
988988
Exists is equivalent to wildcard for value, so that a pod can
989989
tolerate all taints of a particular category.
990+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
990991
type: string
991992
tolerationSeconds:
992993
description: |-
@@ -1077,6 +1078,11 @@ spec:
10771078
- key
10781079
- name
10791080
type: object
1081+
useDefaultAzureCredentials:
1082+
description: |-
1083+
Use the default Azure authentication flow, which includes DefaultAzureCredential.
1084+
This allows authentication using environment variables and managed identities.
1085+
type: boolean
10801086
type: object
10811087
data:
10821088
description: |-
@@ -1908,7 +1914,9 @@ spec:
19081914
description: The target timeline ("latest" or a positive integer)
19091915
type: string
19101916
targetTime:
1911-
description: The target time as a timestamp in the RFC3339 standard
1917+
description: |-
1918+
The target time as a timestamp in RFC3339 format or PostgreSQL timestamp format.
1919+
Timestamps without an explicit timezone are interpreted as UTC.
19121920
type: string
19131921
targetXID:
19141922
description: The target transaction ID
@@ -2410,7 +2418,7 @@ spec:
24102418
resources:
24112419
description: |-
24122420
resources represents the minimum resources the volume should have.
2413-
If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
2421+
Users are allowed to specify resource requirements
24142422
that are lower than previous value but must still be higher than capacity recorded in the
24152423
status field of the claim.
24162424
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
@@ -2607,6 +2615,11 @@ spec:
26072615
- key
26082616
- name
26092617
type: object
2618+
useDefaultAzureCredentials:
2619+
description: |-
2620+
Use the default Azure authentication flow, which includes DefaultAzureCredential.
2621+
This allows authentication using environment variables and managed identities.
2622+
type: boolean
26102623
type: object
26112624
data:
26122625
description: |-
@@ -4267,7 +4280,7 @@ spec:
42674280
name:
42684281
description: The name of the extension, required
42694282
minLength: 1
4270-
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
4283+
pattern: ^[a-z0-9]([-a-z0-9_]*[a-z0-9])?$
42714284
type: string
42724285
required:
42734286
- image
@@ -5020,6 +5033,24 @@ spec:
50205033
signerName:
50215034
description: Kubelet's generated CSRs will be addressed to this signer.
50225035
type: string
5036+
userAnnotations:
5037+
additionalProperties:
5038+
type: string
5039+
description: |-
5040+
userAnnotations allow pod authors to pass additional information to
5041+
the signer implementation. Kubernetes does not restrict or validate this
5042+
metadata in any way.
5043+
5044+
These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of
5045+
the PodCertificateRequest objects that Kubelet creates.
5046+
5047+
Entries are subject to the same validation as object metadata annotations,
5048+
with the addition that all keys must be domain-prefixed. No restrictions
5049+
are placed on values, except an overall size limitation on the entire field.
5050+
5051+
Signers should document the keys and values they support. Signers should
5052+
deny requests that contain keys they do not recognize.
5053+
type: object
50235054
required:
50245055
- keyType
50255056
- signerName
@@ -5645,7 +5676,7 @@ spec:
56455676
resources:
56465677
description: |-
56475678
resources represents the minimum resources the volume should have.
5648-
If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
5679+
Users are allowed to specify resource requirements
56495680
that are lower than previous value but must still be higher than capacity recorded in the
56505681
status field of the claim.
56515682
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
@@ -5892,7 +5923,7 @@ spec:
58925923
resources:
58935924
description: |-
58945925
resources represents the minimum resources the volume should have.
5895-
If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
5926+
Users are allowed to specify resource requirements
58965927
that are lower than previous value but must still be higher than capacity recorded in the
58975928
status field of the claim.
58985929
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
@@ -6291,7 +6322,7 @@ spec:
62916322
resources:
62926323
description: |-
62936324
resources represents the minimum resources the volume should have.
6294-
If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
6325+
Users are allowed to specify resource requirements
62956326
that are lower than previous value but must still be higher than capacity recorded in the
62966327
status field of the claim.
62976328
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

crds/databases.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: databases.postgresql.cnpg.io
88
spec:

crds/failoverquorums.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: failoverquorums.postgresql.cnpg.io
88
spec:

crds/imagecatalogs.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: imagecatalogs.postgresql.cnpg.io
88
spec:

crds/poolers.postgresql.cnpg.io.yaml

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: poolers.postgresql.cnpg.io
88
spec:
@@ -2519,7 +2519,9 @@ spec:
25192519
type: integer
25202520
type: object
25212521
resizePolicy:
2522-
description: Resources resize policy for the container.
2522+
description: |-
2523+
Resources resize policy for the container.
2524+
This field cannot be set on ephemeral containers.
25232525
items:
25242526
description: ContainerResizePolicy represents resource resize policy for the container.
25252527
properties:
@@ -5592,7 +5594,9 @@ spec:
55925594
type: integer
55935595
type: object
55945596
resizePolicy:
5595-
description: Resources resize policy for the container.
5597+
description: |-
5598+
Resources resize policy for the container.
5599+
This field cannot be set on ephemeral containers.
55965600
items:
55975601
description: ContainerResizePolicy represents resource resize policy for the container.
55985602
properties:
@@ -6353,8 +6357,8 @@ spec:
63536357
will be made available to those containers which consume them
63546358
by name.
63556359

6356-
This is an alpha field and requires enabling the
6357-
DynamicResourceAllocation feature gate.
6360+
This is a stable field but requires that the
6361+
DynamicResourceAllocation feature gate is enabled.
63586362

63596363
This field is immutable.
63606364
items:
@@ -6806,9 +6810,10 @@ spec:
68066810
operator:
68076811
description: |-
68086812
Operator represents a key's relationship to the value.
6809-
Valid operators are Exists and Equal. Defaults to Equal.
6813+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
68106814
Exists is equivalent to wildcard for value, so that a pod can
68116815
tolerate all taints of a particular category.
6816+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
68126817
type: string
68136818
tolerationSeconds:
68146819
description: |-
@@ -7563,7 +7568,7 @@ spec:
75637568
resources:
75647569
description: |-
75657570
resources represents the minimum resources the volume should have.
7566-
If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
7571+
Users are allowed to specify resource requirements
75677572
that are lower than previous value but must still be higher than capacity recorded in the
75687573
status field of the claim.
75697574
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
@@ -8398,6 +8403,24 @@ spec:
83988403
signerName:
83998404
description: Kubelet's generated CSRs will be addressed to this signer.
84008405
type: string
8406+
userAnnotations:
8407+
additionalProperties:
8408+
type: string
8409+
description: |-
8410+
userAnnotations allow pod authors to pass additional information to
8411+
the signer implementation. Kubernetes does not restrict or validate this
8412+
metadata in any way.
8413+
8414+
These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of
8415+
the PodCertificateRequest objects that Kubelet creates.
8416+
8417+
Entries are subject to the same validation as object metadata annotations,
8418+
with the addition that all keys must be domain-prefixed. No restrictions
8419+
are placed on values, except an overall size limitation on the entire field.
8420+
8421+
Signers should document the keys and values they support. Signers should
8422+
deny requests that contain keys they do not recognize.
8423+
type: object
84018424
required:
84028425
- keyType
84038426
- signerName
@@ -8807,6 +8830,42 @@ spec:
88078830
x-kubernetes-list-map-keys:
88088831
- name
88098832
x-kubernetes-list-type: map
8833+
workloadRef:
8834+
description: |-
8835+
WorkloadRef provides a reference to the Workload object that this Pod belongs to.
8836+
This field is used by the scheduler to identify the PodGroup and apply the
8837+
correct group scheduling policies. The Workload object referenced
8838+
by this field may not exist at the time the Pod is created.
8839+
This field is immutable, but a Workload object with the same name
8840+
may be recreated with different policies. Doing this during pod scheduling
8841+
may result in the placement not conforming to the expected policies.
8842+
properties:
8843+
name:
8844+
description: |-
8845+
Name defines the name of the Workload object this Pod belongs to.
8846+
Workload must be in the same namespace as the Pod.
8847+
If it doesn't match any existing Workload, the Pod will remain unschedulable
8848+
until a Workload object is created and observed by the kube-scheduler.
8849+
It must be a DNS subdomain.
8850+
type: string
8851+
podGroup:
8852+
description: |-
8853+
PodGroup is the name of the PodGroup within the Workload that this Pod
8854+
belongs to. If it doesn't match any existing PodGroup within the Workload,
8855+
the Pod will remain unschedulable until the Workload object is recreated
8856+
and observed by the kube-scheduler. It must be a DNS label.
8857+
type: string
8858+
podGroupReplicaKey:
8859+
description: |-
8860+
PodGroupReplicaKey specifies the replica key of the PodGroup to which this
8861+
Pod belongs. It is used to distinguish pods belonging to different replicas
8862+
of the same pod group. The pod group policy is applied separately to each replica.
8863+
When set, it must be a DNS label.
8864+
type: string
8865+
required:
8866+
- name
8867+
- podGroup
8868+
type: object
88108869
required:
88118870
- containers
88128871
type: object

crds/publications.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: publications.postgresql.cnpg.io
88
spec:

crds/scheduledbackups.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: scheduledbackups.postgresql.cnpg.io
88
spec:

crds/subscriptions.postgresql.cnpg.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.19.0
5+
controller-gen.kubebuilder.io/version: v0.20.0
66
helm.sh/resource-policy: keep
77
name: subscriptions.postgresql.cnpg.io
88
spec:

0 commit comments

Comments
 (0)