Skip to content

Commit 7039524

Browse files
operator mongodb-atlas-kubernetes (2.13.2)
1 parent 134dced commit 7039524

25 files changed

+8373
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM scratch
2+
3+
# Core bundle labels.
4+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
5+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
6+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
7+
LABEL operators.operatorframework.io.bundle.package.v1=mongodb-atlas-kubernetes
8+
LABEL operators.operatorframework.io.bundle.channels.v1=stable
9+
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-unknown
11+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
12+
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4
13+
14+
# Labels for testing.
15+
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
16+
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
17+
18+
# Copy files to locations specified by labels.
19+
COPY manifests /manifests/
20+
COPY metadata /metadata/
21+
COPY tests/scorecard /tests/scorecard/
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.19.0
6+
creationTimestamp: null
7+
labels:
8+
app.kubernetes.io/component: controller
9+
app.kubernetes.io/instance: mongodb-atlas-kubernetes-operator
10+
app.kubernetes.io/name: mongodb-atlas-kubernetes-operator
11+
name: atlasbackupcompliancepolicies.atlas.mongodb.com
12+
spec:
13+
group: atlas.mongodb.com
14+
names:
15+
categories:
16+
- atlas
17+
kind: AtlasBackupCompliancePolicy
18+
listKind: AtlasBackupCompliancePolicyList
19+
plural: atlasbackupcompliancepolicies
20+
shortNames:
21+
- abcp
22+
singular: atlasbackupcompliancepolicy
23+
scope: Namespaced
24+
versions:
25+
- additionalPrinterColumns:
26+
- jsonPath: .status.conditions[?(@.type=="Ready")].status
27+
name: Ready
28+
type: string
29+
name: v1
30+
schema:
31+
openAPIV3Schema:
32+
description: The AtlasBackupCompliancePolicy is a configuration that enforces
33+
specific backup and retention requirements
34+
properties:
35+
apiVersion:
36+
description: |-
37+
APIVersion defines the versioned schema of this representation of an object.
38+
Servers should convert recognized schemas to the latest internal value, and
39+
may reject unrecognized values.
40+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
41+
type: string
42+
kind:
43+
description: |-
44+
Kind is a string value representing the REST resource this object represents.
45+
Servers may infer this from the endpoint the client submits requests to.
46+
Cannot be updated.
47+
In CamelCase.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
49+
type: string
50+
metadata:
51+
type: object
52+
spec:
53+
description: AtlasBackupCompliancePolicySpec is the specification of the
54+
desired backup compliance policy configuration.
55+
properties:
56+
authorizedEmail:
57+
description: Email address of the user authorized to update Backup
58+
Compliance Policy settings.
59+
type: string
60+
authorizedUserFirstName:
61+
description: First name of the user authorized to update the Backup
62+
Compliance Policy settings.
63+
type: string
64+
authorizedUserLastName:
65+
description: Last name of the user authorized to update the Backup
66+
Compliance Policy settings.
67+
type: string
68+
copyProtectionEnabled:
69+
description: Flag that indicates whether to prevent cluster users
70+
from deleting backups copied to other regions, even if those additional
71+
snapshot regions are removed.
72+
type: boolean
73+
encryptionAtRestEnabled:
74+
description: Flag that indicates whether to require Encryption at
75+
Rest using Customer Key Management for all clusters with a Backup
76+
Compliance Policy.
77+
type: boolean
78+
onDemandPolicy:
79+
description: Specifications for on-demand policy.
80+
properties:
81+
retentionUnit:
82+
description: 'Scope of the backup policy item: days, weeks, or
83+
months.'
84+
enum:
85+
- days
86+
- weeks
87+
- months
88+
type: string
89+
retentionValue:
90+
description: Value to associate with RetentionUnit.
91+
type: integer
92+
required:
93+
- retentionUnit
94+
- retentionValue
95+
type: object
96+
overwriteBackupPolicies:
97+
description: Flag that indicates whether to overwrite non-complying
98+
backup policies with the new data protection settings.
99+
type: boolean
100+
pointInTimeEnabled:
101+
description: Flag that indicates whether the cluster uses Continuous
102+
Cloud Backups with a Backup Compliance Policy.
103+
type: boolean
104+
restoreWindowDays:
105+
description: |-
106+
Number of previous days from which you can restore with Continuous Cloud Backup with a Backup Compliance Policy.
107+
This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
108+
type: integer
109+
scheduledPolicyItems:
110+
description: List that contains the specifications for one scheduled
111+
policy.
112+
items:
113+
properties:
114+
frequencyInterval:
115+
description: |-
116+
Frequency of the new backup policy item specified by FrequencyType. A value of 1 specifies the first instance of the corresponding FrequencyType.
117+
You can set FrequencyInterval only to 12 for NVMe clusters.
118+
enum:
119+
- 1
120+
- 2
121+
- 3
122+
- 4
123+
- 5
124+
- 6
125+
- 7
126+
- 8
127+
- 9
128+
- 10
129+
- 11
130+
- 12
131+
- 13
132+
- 14
133+
- 15
134+
- 16
135+
- 17
136+
- 18
137+
- 19
138+
- 20
139+
- 21
140+
- 22
141+
- 23
142+
- 24
143+
- 25
144+
- 26
145+
- 27
146+
- 28
147+
- 40
148+
type: integer
149+
frequencyType:
150+
description: Frequency associated with the backup policy item.
151+
You can specify only one each of hourly or daily backup policy
152+
items.
153+
enum:
154+
- hourly
155+
- daily
156+
- weekly
157+
- monthly
158+
- yearly
159+
type: string
160+
retentionUnit:
161+
description: Unit of time in which MongoDB Atlas measures snapshot
162+
retention.
163+
enum:
164+
- days
165+
- weeks
166+
- months
167+
- years
168+
type: string
169+
retentionValue:
170+
description: |-
171+
Duration in days, weeks, months, or years that MongoDB Cloud retains the snapshot.
172+
For less frequent policy items, MongoDB Cloud requires that you specify a value greater than or equal to the value specified for more frequent policy items.
173+
type: integer
174+
required:
175+
- frequencyInterval
176+
- frequencyType
177+
- retentionUnit
178+
- retentionValue
179+
type: object
180+
type: array
181+
required:
182+
- authorizedEmail
183+
- authorizedUserFirstName
184+
- authorizedUserLastName
185+
type: object
186+
status:
187+
description: BackupCompliancePolicyStatus defines the observed state of
188+
AtlasBackupCompliancePolicy.
189+
properties:
190+
conditions:
191+
description: Conditions is the list of statuses showing the current
192+
state of the Atlas Custom Resource
193+
items:
194+
description: Condition describes the state of an Atlas Custom Resource
195+
at a certain point.
196+
properties:
197+
lastTransitionTime:
198+
description: |-
199+
Last time the condition transitioned from one status to another.
200+
Represented in ISO 8601 format.
201+
format: date-time
202+
type: string
203+
message:
204+
description: A message providing details about the transition.
205+
type: string
206+
reason:
207+
description: The reason for the condition's last transition.
208+
type: string
209+
status:
210+
description: Status of the condition; one of True, False, Unknown.
211+
type: string
212+
type:
213+
description: Type of Atlas Custom Resource condition.
214+
type: string
215+
required:
216+
- status
217+
- type
218+
type: object
219+
type: array
220+
observedGeneration:
221+
description: |-
222+
ObservedGeneration indicates the generation of the resource specification of which the Atlas Operator is aware.
223+
The Atlas Operator updates this field to the value of 'metadata.generation' as soon as it starts reconciliation of the resource.
224+
format: int64
225+
type: integer
226+
required:
227+
- conditions
228+
type: object
229+
type: object
230+
served: true
231+
storage: true
232+
subresources:
233+
status: {}
234+
status:
235+
acceptedNames:
236+
kind: ""
237+
plural: ""
238+
conditions: null
239+
storedVersions: null

0 commit comments

Comments
 (0)