Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions crds/backups.postgresql.cnpg.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.0
controller-gen.kubebuilder.io/version: v0.20.1
helm.sh/resource-policy: keep
name: backups.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -336,6 +336,14 @@ spec:
type: string
description: A map containing the plugin metadata
type: object
reconciliationStartedAt:
description: When the backup process was started by the operator
format: date-time
type: string
reconciliationTerminatedAt:
description: When the reconciliation was terminated by the operator (either successfully or not)
format: date-time
type: string
s3Credentials:
description: The credentials to use to upload data to S3
properties:
Expand Down Expand Up @@ -426,11 +434,11 @@ spec:
type: array
type: object
startedAt:
description: When the backup was started
description: When the backup execution was started by the backup tool
format: date-time
type: string
stoppedAt:
description: When the backup was terminated
description: When the backup execution was terminated by the backup tool
format: date-time
type: string
tablespaceMapFile:
Expand Down
107 changes: 106 additions & 1 deletion crds/clusterimagecatalogs.postgresql.cnpg.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.0
controller-gen.kubebuilder.io/version: v0.20.1
helm.sh/resource-policy: keep
name: clusterimagecatalogs.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -50,6 +50,111 @@ spec:
items:
description: CatalogImage defines the image and major version
properties:
extensions:
description: The configuration of the extensions to be added
items:
description: |-
ExtensionConfiguration is the configuration used to add
PostgreSQL extensions to the Cluster.
properties:
bin_path:
description: |-
A list of directories within the image to be appended to the
PostgreSQL process's `PATH` environment variable.
items:
type: string
type: array
dynamic_library_path:
description: |-
The list of directories inside the image which should be added to dynamic_library_path.
If not defined, defaults to "/lib".
items:
type: string
type: array
env:
description: |-
Env is a list of custom environment variables to be set in the
PostgreSQL process for this extension. It is the responsibility of the
cluster administrator to ensure the variables are correct for the
specific extension. Note that changes to these variables require
a manual cluster restart to take effect.
items:
description: |-
ExtensionEnvVar defines an environment variable for a specific extension
image volume.
properties:
name:
description: |-
Name of the environment variable to be injected into the
PostgreSQL process.
minLength: 1
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
type: string
value:
description: |-
Value of the environment variable. CloudNativePG performs a direct
replacement of this value, with support for placeholder expansion.
The ${`image_root`} placeholder resolves to the absolute mount path
of the extension's volume (e.g., `/extensions/my-extension`). This
is particularly useful for allowing applications or libraries to
locate specific directories within the mounted image.
Unrecognized placeholders are rejected. To include a literal ${...}
in the value, escape it as $${...}.
minLength: 1
type: string
required:
- name
- value
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
extension_control_path:
description: |-
The list of directories inside the image which should be added to extension_control_path.
If not defined, defaults to "/share".
items:
type: string
type: array
image:
description: The image containing the extension.
properties:
pullPolicy:
description: |-
Policy for pulling OCI objects. Possible values are:
Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
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.
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.
Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
type: string
reference:
description: |-
Required: Image or artifact reference to be used.
Behaves in the same way as pod.spec.containers[*].image.
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.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
type: string
type: object
ld_library_path:
description: The list of directories inside the image which should be added to ld_library_path.
items:
type: string
type: array
name:
description: The name of the extension, required
minLength: 1
pattern: ^[a-z0-9]([-a-z0-9_]*[a-z0-9])?$
type: string
required:
- name
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
image:
description: The image reference
type: string
Expand Down
Loading
Loading