-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclusterimagecatalogs.postgresql.cnpg.io.yaml
More file actions
184 lines (184 loc) · 9.5 KB
/
clusterimagecatalogs.postgresql.cnpg.io.yaml
File metadata and controls
184 lines (184 loc) · 9.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.1
helm.sh/resource-policy: keep
name: clusterimagecatalogs.postgresql.cnpg.io
spec:
group: postgresql.cnpg.io
names:
kind: ClusterImageCatalog
listKind: ClusterImageCatalogList
plural: clusterimagecatalogs
singular: clusterimagecatalog
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
schema:
openAPIV3Schema:
description: ClusterImageCatalog is the Schema for the clusterimagecatalogs API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: |-
Specification of the desired behavior of the ClusterImageCatalog.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
images:
description: List of CatalogImages available in the catalog
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
major:
description: The PostgreSQL major version of the image. Must be unique within the catalog.
minimum: 10
type: integer
required:
- image
- major
type: object
maxItems: 8
minItems: 1
type: array
x-kubernetes-validations:
- message: Images must have unique major versions
rule: self.all(e, self.filter(f, f.major==e.major).size() == 1)
required:
- images
type: object
required:
- metadata
- spec
type: object
served: true
storage: true
subresources: {}