...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 cnrm.cloud.google.com/version: 0.0.0-dev
6 creationTimestamp: null
7 labels:
8 cnrm.cloud.google.com/managed-by-kcc: "true"
9 cnrm.cloud.google.com/stability-level: stable
10 cnrm.cloud.google.com/system: "true"
11 cnrm.cloud.google.com/tf2crd: "true"
12 name: computesnapshots.compute.cnrm.cloud.google.com
13spec:
14 group: compute.cnrm.cloud.google.com
15 names:
16 categories:
17 - gcp
18 kind: ComputeSnapshot
19 plural: computesnapshots
20 shortNames:
21 - gcpcomputesnapshot
22 - gcpcomputesnapshots
23 singular: computesnapshot
24 preserveUnknownFields: false
25 scope: Namespaced
26 versions:
27 - additionalPrinterColumns:
28 - jsonPath: .metadata.creationTimestamp
29 name: Age
30 type: date
31 - description: When 'True', the most recent reconcile of the resource succeeded
32 jsonPath: .status.conditions[?(@.type=='Ready')].status
33 name: Ready
34 type: string
35 - description: The reason for the value in 'Ready'
36 jsonPath: .status.conditions[?(@.type=='Ready')].reason
37 name: Status
38 type: string
39 - description: The last transition time for the value in 'Status'
40 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
41 name: Status Age
42 type: date
43 name: v1beta1
44 schema:
45 openAPIV3Schema:
46 properties:
47 apiVersion:
48 description: 'apiVersion defines the versioned schema of this representation
49 of an object. Servers should convert recognized schemas to the latest
50 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
51 type: string
52 kind:
53 description: 'kind is a string value representing the REST resource this
54 object represents. Servers may infer this from the endpoint the client
55 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
56 type: string
57 metadata:
58 type: object
59 spec:
60 properties:
61 chainName:
62 description: |-
63 Immutable. Creates the new snapshot in the snapshot chain labeled with the
64 specified name. The chain name must be 1-63 characters long and
65 comply with RFC1035. This is an uncommon option only for advanced
66 service owners who needs to create separate snapshot chains, for
67 example, for chargeback tracking. When you describe your snapshot
68 resource, this field is visible only if it has a non-empty value.
69 type: string
70 description:
71 description: Immutable. An optional description of this resource.
72 type: string
73 resourceID:
74 description: Immutable. Optional. The name of the resource. Used for
75 creation and acquisition. When unset, the value of `metadata.name`
76 is used as the default.
77 type: string
78 snapshotEncryptionKey:
79 description: |-
80 Immutable. Encrypts the snapshot using a customer-supplied encryption key.
81
82 After you encrypt a snapshot using a customer-supplied key, you must
83 provide the same key if you use the snapshot later. For example, you
84 must provide the encryption key when you create a disk from the
85 encrypted snapshot in a future request.
86
87 Customer-supplied encryption keys do not protect access to metadata of
88 the snapshot.
89
90 If you do not provide an encryption key when creating the snapshot,
91 then the snapshot will be encrypted using an automatically generated
92 key and you do not need to provide a key to use the snapshot later.
93 properties:
94 kmsKeyRef:
95 description: The encryption key that is stored in Google Cloud
96 KMS.
97 oneOf:
98 - not:
99 required:
100 - external
101 required:
102 - name
103 - not:
104 anyOf:
105 - required:
106 - name
107 - required:
108 - namespace
109 required:
110 - external
111 properties:
112 external:
113 description: 'Allowed value: The `selfLink` field of a `KMSCryptoKey`
114 resource.'
115 type: string
116 name:
117 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
118 type: string
119 namespace:
120 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
121 type: string
122 type: object
123 kmsKeyServiceAccountRef:
124 description: |-
125 The service account used for the encryption request for the given KMS key.
126 If absent, the Compute Engine Service Agent service account is used.
127 oneOf:
128 - not:
129 required:
130 - external
131 required:
132 - name
133 - not:
134 anyOf:
135 - required:
136 - name
137 - required:
138 - namespace
139 required:
140 - external
141 properties:
142 external:
143 description: 'Allowed value: The `email` field of an `IAMServiceAccount`
144 resource.'
145 type: string
146 name:
147 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
148 type: string
149 namespace:
150 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
151 type: string
152 type: object
153 rawKey:
154 description: |-
155 Immutable. Specifies a 256-bit customer-supplied encryption key, encoded in
156 RFC 4648 base64 to either encrypt or decrypt this resource.
157 oneOf:
158 - not:
159 required:
160 - valueFrom
161 required:
162 - value
163 - not:
164 required:
165 - value
166 required:
167 - valueFrom
168 properties:
169 value:
170 description: Value of the field. Cannot be used if 'valueFrom'
171 is specified.
172 type: string
173 valueFrom:
174 description: Source for the field's value. Cannot be used
175 if 'value' is specified.
176 properties:
177 secretKeyRef:
178 description: Reference to a value with the given key in
179 the given Secret in the resource's namespace.
180 properties:
181 key:
182 description: Key that identifies the value to be extracted.
183 type: string
184 name:
185 description: Name of the Secret to extract a value
186 from.
187 type: string
188 required:
189 - name
190 - key
191 type: object
192 type: object
193 type: object
194 sha256:
195 description: |-
196 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
197 encryption key that protects this resource.
198 type: string
199 type: object
200 sourceDiskEncryptionKey:
201 description: |-
202 Immutable. The customer-supplied encryption key of the source snapshot. Required
203 if the source snapshot is protected by a customer-supplied encryption
204 key.
205 properties:
206 kmsKeyServiceAccountRef:
207 description: |-
208 The service account used for the encryption request for the given KMS key.
209 If absent, the Compute Engine Service Agent service account is used.
210 oneOf:
211 - not:
212 required:
213 - external
214 required:
215 - name
216 - not:
217 anyOf:
218 - required:
219 - name
220 - required:
221 - namespace
222 required:
223 - external
224 properties:
225 external:
226 description: 'Allowed value: The `email` field of an `IAMServiceAccount`
227 resource.'
228 type: string
229 name:
230 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
231 type: string
232 namespace:
233 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
234 type: string
235 type: object
236 rawKey:
237 description: |-
238 Immutable. Specifies a 256-bit customer-supplied encryption key, encoded in
239 RFC 4648 base64 to either encrypt or decrypt this resource.
240 oneOf:
241 - not:
242 required:
243 - valueFrom
244 required:
245 - value
246 - not:
247 required:
248 - value
249 required:
250 - valueFrom
251 properties:
252 value:
253 description: Value of the field. Cannot be used if 'valueFrom'
254 is specified.
255 type: string
256 valueFrom:
257 description: Source for the field's value. Cannot be used
258 if 'value' is specified.
259 properties:
260 secretKeyRef:
261 description: Reference to a value with the given key in
262 the given Secret in the resource's namespace.
263 properties:
264 key:
265 description: Key that identifies the value to be extracted.
266 type: string
267 name:
268 description: Name of the Secret to extract a value
269 from.
270 type: string
271 required:
272 - name
273 - key
274 type: object
275 type: object
276 type: object
277 type: object
278 sourceDiskRef:
279 description: A reference to the disk used to create this snapshot.
280 oneOf:
281 - not:
282 required:
283 - external
284 required:
285 - name
286 - not:
287 anyOf:
288 - required:
289 - name
290 - required:
291 - namespace
292 required:
293 - external
294 properties:
295 external:
296 description: 'Allowed value: The `name` field of a `ComputeDisk`
297 resource.'
298 type: string
299 name:
300 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
301 type: string
302 namespace:
303 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
304 type: string
305 type: object
306 storageLocations:
307 description: Immutable. Cloud Storage bucket storage location of the
308 snapshot (regional or multi-regional).
309 items:
310 type: string
311 type: array
312 zone:
313 description: Immutable. A reference to the zone where the disk is
314 hosted.
315 type: string
316 required:
317 - sourceDiskRef
318 type: object
319 status:
320 properties:
321 conditions:
322 description: Conditions represent the latest available observation
323 of the resource's current state.
324 items:
325 properties:
326 lastTransitionTime:
327 description: Last time the condition transitioned from one status
328 to another.
329 type: string
330 message:
331 description: Human-readable message indicating details about
332 last transition.
333 type: string
334 reason:
335 description: Unique, one-word, CamelCase reason for the condition's
336 last transition.
337 type: string
338 status:
339 description: Status is the status of the condition. Can be True,
340 False, Unknown.
341 type: string
342 type:
343 description: Type is the type of the condition.
344 type: string
345 type: object
346 type: array
347 creationTimestamp:
348 description: Creation timestamp in RFC3339 text format.
349 type: string
350 diskSizeGb:
351 description: Size of the snapshot, specified in GB.
352 type: integer
353 labelFingerprint:
354 description: |-
355 The fingerprint used for optimistic locking of this resource. Used
356 internally during updates.
357 type: string
358 licenses:
359 description: |-
360 A list of public visible licenses that apply to this snapshot. This
361 can be because the original image had licenses attached (such as a
362 Windows image). snapshotEncryptionKey nested object Encrypts the
363 snapshot using a customer-supplied encryption key.
364 items:
365 type: string
366 type: array
367 observedGeneration:
368 description: ObservedGeneration is the generation of the resource
369 that was most recently observed by the Config Connector controller.
370 If this is equal to metadata.generation, then that means that the
371 current reported status reflects the most recent desired state of
372 the resource.
373 type: integer
374 selfLink:
375 type: string
376 snapshotId:
377 description: The unique identifier for the resource.
378 type: integer
379 storageBytes:
380 description: |-
381 A size of the storage used by the snapshot. As snapshots share
382 storage, this number is expected to change with snapshot
383 creation/deletion.
384 type: integer
385 type: object
386 required:
387 - spec
388 type: object
389 served: true
390 storage: true
391 subresources:
392 status: {}
393status:
394 acceptedNames:
395 kind: ""
396 plural: ""
397 conditions: []
398 storedVersions: []
View as plain text