Skip to content

Commit 74c7839

Browse files
authored
operator percona-postgresql-operator (2.6.1)
1 parent 7f128e8 commit 74c7839

10 files changed

+67361
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.16.5
6+
labels:
7+
app.kubernetes.io/name: pgo
8+
app.kubernetes.io/version: latest
9+
name: crunchybridgeclusters.postgres-operator.crunchydata.com
10+
spec:
11+
group: postgres-operator.crunchydata.com
12+
names:
13+
kind: CrunchyBridgeCluster
14+
listKind: CrunchyBridgeClusterList
15+
plural: crunchybridgeclusters
16+
singular: crunchybridgecluster
17+
scope: Namespaced
18+
versions:
19+
- name: v1beta1
20+
schema:
21+
openAPIV3Schema:
22+
description: CrunchyBridgeCluster is the Schema for the crunchybridgeclusters
23+
API
24+
properties:
25+
apiVersion:
26+
description: 'APIVersion defines the versioned schema of this representation
27+
of an object.
28+
29+
Servers should convert recognized schemas to the latest internal value,
30+
and
31+
32+
may reject unrecognized values.
33+
34+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
35+
type: string
36+
kind:
37+
description: 'Kind is a string value representing the REST resource this
38+
object represents.
39+
40+
Servers may infer this from the endpoint the client submits requests
41+
to.
42+
43+
Cannot be updated.
44+
45+
In CamelCase.
46+
47+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
48+
type: string
49+
metadata:
50+
type: object
51+
spec:
52+
description: 'CrunchyBridgeClusterSpec defines the desired state of CrunchyBridgeCluster
53+
54+
to be managed by Crunchy Data Bridge'
55+
properties:
56+
clusterName:
57+
description: The name of the cluster
58+
maxLength: 50
59+
minLength: 5
60+
pattern: ^[A-Za-z][A-Za-z0-9\-_ ]*[A-Za-z0-9]$
61+
type: string
62+
isHa:
63+
description: 'Whether the cluster is high availability,
64+
65+
meaning that it has a secondary it can fail over to quickly
66+
67+
in case the primary becomes unavailable.'
68+
type: boolean
69+
isProtected:
70+
description: 'Whether the cluster is protected. Protected clusters
71+
can''t be destroyed until
72+
73+
their protected flag is removed'
74+
type: boolean
75+
majorVersion:
76+
description: 'The ID of the cluster''s major Postgres version.
77+
78+
Currently Bridge offers 13-17'
79+
maximum: 17
80+
minimum: 13
81+
type: integer
82+
metadata:
83+
description: Metadata contains metadata for custom resources
84+
properties:
85+
annotations:
86+
additionalProperties:
87+
type: string
88+
type: object
89+
labels:
90+
additionalProperties:
91+
type: string
92+
type: object
93+
type: object
94+
plan:
95+
description: The ID of the cluster's plan. Determines instance, CPU,
96+
and memory.
97+
type: string
98+
provider:
99+
description: 'The cloud provider where the cluster is located.
100+
101+
Currently Bridge offers aws, azure, and gcp only'
102+
enum:
103+
- aws
104+
- azure
105+
- gcp
106+
type: string
107+
x-kubernetes-validations:
108+
- message: immutable
109+
rule: self == oldSelf
110+
region:
111+
description: The provider region where the cluster is located.
112+
type: string
113+
x-kubernetes-validations:
114+
- message: immutable
115+
rule: self == oldSelf
116+
roles:
117+
description: 'Roles for which to create Secrets that contain their
118+
credentials which
119+
120+
are retrieved from the Bridge API. An empty list creates no role
121+
secrets.
122+
123+
Removing a role from this list does NOT drop the role nor revoke
124+
their
125+
126+
access, but it will delete that role''s secret from the kube cluster.'
127+
items:
128+
properties:
129+
name:
130+
description: 'Name of the role within Crunchy Bridge.
131+
132+
More info: https://docs.crunchybridge.com/concepts/users'
133+
type: string
134+
secretName:
135+
description: The name of the Secret that will hold the role
136+
credentials.
137+
maxLength: 253
138+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
139+
type: string
140+
required:
141+
- name
142+
- secretName
143+
type: object
144+
type: array
145+
x-kubernetes-list-map-keys:
146+
- name
147+
x-kubernetes-list-type: map
148+
secret:
149+
description: The name of the secret containing the API key and team
150+
id
151+
type: string
152+
storage:
153+
anyOf:
154+
- type: integer
155+
- type: string
156+
description: 'The amount of storage available to the cluster in gigabytes.
157+
158+
The amount must be an integer, followed by Gi (gibibytes) or G (gigabytes)
159+
to match Kubernetes conventions.
160+
161+
If the amount is given in Gi, we round to the nearest G value.
162+
163+
The minimum value allowed by Bridge is 10 GB.
164+
165+
The maximum value allowed by Bridge is 65535 GB.'
166+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
167+
x-kubernetes-int-or-string: true
168+
required:
169+
- clusterName
170+
- isHa
171+
- majorVersion
172+
- plan
173+
- provider
174+
- region
175+
- secret
176+
- storage
177+
type: object
178+
status:
179+
description: CrunchyBridgeClusterStatus defines the observed state of
180+
CrunchyBridgeCluster
181+
properties:
182+
conditions:
183+
description: conditions represent the observations of postgres cluster's
184+
current state.
185+
items:
186+
description: Condition contains details for one aspect of the current
187+
state of this API Resource.
188+
properties:
189+
lastTransitionTime:
190+
description: 'lastTransitionTime is the last time the condition
191+
transitioned from one status to another.
192+
193+
This should be when the underlying condition changed. If
194+
that is not known, then using the time when the API field
195+
changed is acceptable.'
196+
format: date-time
197+
type: string
198+
message:
199+
description: 'message is a human readable message indicating
200+
details about the transition.
201+
202+
This may be an empty string.'
203+
maxLength: 32768
204+
type: string
205+
observedGeneration:
206+
description: 'observedGeneration represents the .metadata.generation
207+
that the condition was set based upon.
208+
209+
For instance, if .metadata.generation is currently 12, but
210+
the .status.conditions[x].observedGeneration is 9, the condition
211+
is out of date
212+
213+
with respect to the current state of the instance.'
214+
format: int64
215+
minimum: 0
216+
type: integer
217+
reason:
218+
description: 'reason contains a programmatic identifier indicating
219+
the reason for the condition''s last transition.
220+
221+
Producers of specific condition types may define expected
222+
values and meanings for this field,
223+
224+
and whether the values are considered a guaranteed API.
225+
226+
The value should be a CamelCase string.
227+
228+
This field may not be empty.'
229+
maxLength: 1024
230+
minLength: 1
231+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
232+
type: string
233+
status:
234+
description: status of the condition, one of True, False, Unknown.
235+
enum:
236+
- 'True'
237+
- 'False'
238+
- Unknown
239+
type: string
240+
type:
241+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
242+
maxLength: 316
243+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
244+
type: string
245+
required:
246+
- lastTransitionTime
247+
- message
248+
- reason
249+
- status
250+
- type
251+
type: object
252+
type: array
253+
x-kubernetes-list-map-keys:
254+
- type
255+
x-kubernetes-list-type: map
256+
host:
257+
description: The Hostname of the postgres cluster in Bridge, provided
258+
by Bridge API and null until then.
259+
type: string
260+
id:
261+
description: The ID of the postgres cluster in Bridge, provided by
262+
Bridge API and null until then.
263+
type: string
264+
isHa:
265+
description: 'Whether the cluster is high availability, meaning that
266+
it has a secondary it can fail
267+
268+
over to quickly in case the primary becomes unavailable.'
269+
type: boolean
270+
isProtected:
271+
description: 'Whether the cluster is protected. Protected clusters
272+
can''t be destroyed until
273+
274+
their protected flag is removed'
275+
type: boolean
276+
majorVersion:
277+
description: The cluster's major Postgres version.
278+
type: integer
279+
name:
280+
description: The name of the cluster in Bridge.
281+
type: string
282+
observedGeneration:
283+
description: observedGeneration represents the .metadata.generation
284+
on which the status was based.
285+
format: int64
286+
minimum: 0
287+
type: integer
288+
ongoingUpgrade:
289+
description: The cluster upgrade as represented by Bridge
290+
items:
291+
properties:
292+
flavor:
293+
type: string
294+
starting_from:
295+
type: string
296+
state:
297+
type: string
298+
required:
299+
- flavor
300+
- starting_from
301+
- state
302+
type: object
303+
type: array
304+
plan:
305+
description: The ID of the cluster's plan. Determines instance, CPU,
306+
and memory.
307+
type: string
308+
responses:
309+
description: Most recent, raw responses from Bridge API
310+
type: object
311+
x-kubernetes-preserve-unknown-fields: true
312+
state:
313+
description: State of cluster in Bridge.
314+
type: string
315+
storage:
316+
anyOf:
317+
- type: integer
318+
- type: string
319+
description: The amount of storage available to the cluster.
320+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
321+
x-kubernetes-int-or-string: true
322+
type: object
323+
type: object
324+
served: true
325+
storage: true
326+
subresources:
327+
status: {}

0 commit comments

Comments
 (0)