Skip to content

Commit 257aeb5

Browse files
IvanJosipovicgithub-actions[bot]
authored andcommitted
feat: Update CRDs
1 parent 04ebad6 commit 257aeb5

10 files changed

+510
-18
lines changed

crds/backups.postgresql.cnpg.io.yaml

Lines changed: 11 additions & 3 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.20.0
5+
controller-gen.kubebuilder.io/version: v0.20.1
66
helm.sh/resource-policy: keep
77
name: backups.postgresql.cnpg.io
88
spec:
@@ -336,6 +336,14 @@ spec:
336336
type: string
337337
description: A map containing the plugin metadata
338338
type: object
339+
reconciliationStartedAt:
340+
description: When the backup process was started by the operator
341+
format: date-time
342+
type: string
343+
reconciliationTerminatedAt:
344+
description: When the reconciliation was terminated by the operator (either successfully or not)
345+
format: date-time
346+
type: string
339347
s3Credentials:
340348
description: The credentials to use to upload data to S3
341349
properties:
@@ -426,11 +434,11 @@ spec:
426434
type: array
427435
type: object
428436
startedAt:
429-
description: When the backup was started
437+
description: When the backup execution was started by the backup tool
430438
format: date-time
431439
type: string
432440
stoppedAt:
433-
description: When the backup was terminated
441+
description: When the backup execution was terminated by the backup tool
434442
format: date-time
435443
type: string
436444
tablespaceMapFile:

crds/clusterimagecatalogs.postgresql.cnpg.io.yaml

Lines changed: 106 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.20.0
5+
controller-gen.kubebuilder.io/version: v0.20.1
66
helm.sh/resource-policy: keep
77
name: clusterimagecatalogs.postgresql.cnpg.io
88
spec:
@@ -50,6 +50,111 @@ spec:
5050
items:
5151
description: CatalogImage defines the image and major version
5252
properties:
53+
extensions:
54+
description: The configuration of the extensions to be added
55+
items:
56+
description: |-
57+
ExtensionConfiguration is the configuration used to add
58+
PostgreSQL extensions to the Cluster.
59+
properties:
60+
bin_path:
61+
description: |-
62+
A list of directories within the image to be appended to the
63+
PostgreSQL process's `PATH` environment variable.
64+
items:
65+
type: string
66+
type: array
67+
dynamic_library_path:
68+
description: |-
69+
The list of directories inside the image which should be added to dynamic_library_path.
70+
If not defined, defaults to "/lib".
71+
items:
72+
type: string
73+
type: array
74+
env:
75+
description: |-
76+
Env is a list of custom environment variables to be set in the
77+
PostgreSQL process for this extension. It is the responsibility of the
78+
cluster administrator to ensure the variables are correct for the
79+
specific extension. Note that changes to these variables require
80+
a manual cluster restart to take effect.
81+
items:
82+
description: |-
83+
ExtensionEnvVar defines an environment variable for a specific extension
84+
image volume.
85+
properties:
86+
name:
87+
description: |-
88+
Name of the environment variable to be injected into the
89+
PostgreSQL process.
90+
minLength: 1
91+
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
92+
type: string
93+
value:
94+
description: |-
95+
Value of the environment variable. CloudNativePG performs a direct
96+
replacement of this value, with support for placeholder expansion.
97+
The ${`image_root`} placeholder resolves to the absolute mount path
98+
of the extension's volume (e.g., `/extensions/my-extension`). This
99+
is particularly useful for allowing applications or libraries to
100+
locate specific directories within the mounted image.
101+
Unrecognized placeholders are rejected. To include a literal ${...}
102+
in the value, escape it as $${...}.
103+
minLength: 1
104+
type: string
105+
required:
106+
- name
107+
- value
108+
type: object
109+
type: array
110+
x-kubernetes-list-map-keys:
111+
- name
112+
x-kubernetes-list-type: map
113+
extension_control_path:
114+
description: |-
115+
The list of directories inside the image which should be added to extension_control_path.
116+
If not defined, defaults to "/share".
117+
items:
118+
type: string
119+
type: array
120+
image:
121+
description: The image containing the extension.
122+
properties:
123+
pullPolicy:
124+
description: |-
125+
Policy for pulling OCI objects. Possible values are:
126+
Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
127+
Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
128+
IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
129+
Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
130+
type: string
131+
reference:
132+
description: |-
133+
Required: Image or artifact reference to be used.
134+
Behaves in the same way as pod.spec.containers[*].image.
135+
Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
136+
More info: https://kubernetes.io/docs/concepts/containers/images
137+
This field is optional to allow higher level config management to default or override
138+
container images in workload controllers like Deployments and StatefulSets.
139+
type: string
140+
type: object
141+
ld_library_path:
142+
description: The list of directories inside the image which should be added to ld_library_path.
143+
items:
144+
type: string
145+
type: array
146+
name:
147+
description: The name of the extension, required
148+
minLength: 1
149+
pattern: ^[a-z0-9]([-a-z0-9_]*[a-z0-9])?$
150+
type: string
151+
required:
152+
- name
153+
type: object
154+
type: array
155+
x-kubernetes-list-map-keys:
156+
- name
157+
x-kubernetes-list-type: map
53158
image:
54159
description: The image reference
55160
type: string

0 commit comments

Comments
 (0)