@@ -213,3 +213,200 @@ spec:
213
213
storage : true
214
214
subresources :
215
215
status : {}
216
+ - additionalPrinterColumns :
217
+ - jsonPath : .metadata.annotations.crossplane\.io/usage-details
218
+ name : DETAILS
219
+ type : string
220
+ - jsonPath : .status.conditions[?(@.type=='Ready')].status
221
+ name : READY
222
+ type : string
223
+ - jsonPath : .metadata.creationTimestamp
224
+ name : AGE
225
+ type : date
226
+ name : v1beta1
227
+ schema :
228
+ openAPIV3Schema :
229
+ description : |-
230
+ A Usage defines a deletion blocking relationship between two resources.
231
+
232
+ Usages prevent accidental deletion of a single resource or deletion of
233
+ resources with dependent resources.
234
+
235
+ Read the Crossplane documentation for
236
+ [more information about Compositions](https://docs.crossplane.io/latest/concepts/usages).
237
+ properties :
238
+ apiVersion :
239
+ description : |-
240
+ APIVersion defines the versioned schema of this representation of an object.
241
+ Servers should convert recognized schemas to the latest internal value, and
242
+ may reject unrecognized values.
243
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
244
+ type : string
245
+ kind :
246
+ description : |-
247
+ Kind is a string value representing the REST resource this object represents.
248
+ Servers may infer this from the endpoint the client submits requests to.
249
+ Cannot be updated.
250
+ In CamelCase.
251
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
252
+ type : string
253
+ metadata :
254
+ type : object
255
+ spec :
256
+ description : UsageSpec defines the desired state of Usage.
257
+ properties :
258
+ by :
259
+ description : By is the resource that is "using the other resource".
260
+ properties :
261
+ apiVersion :
262
+ description : API version of the referent.
263
+ type : string
264
+ kind :
265
+ description : |-
266
+ Kind of the referent.
267
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
268
+ type : string
269
+ resourceRef :
270
+ description : Reference to the resource.
271
+ properties :
272
+ name :
273
+ description : Name of the referent.
274
+ type : string
275
+ required :
276
+ - name
277
+ type : object
278
+ resourceSelector :
279
+ description : |-
280
+ Selector to the resource.
281
+ This field will be ignored if ResourceRef is set.
282
+ properties :
283
+ matchControllerRef :
284
+ description : |-
285
+ MatchControllerRef ensures an object with the same controller reference
286
+ as the selecting object is selected.
287
+ type : boolean
288
+ matchLabels :
289
+ additionalProperties :
290
+ type : string
291
+ description : MatchLabels ensures an object with matching labels
292
+ is selected.
293
+ type : object
294
+ type : object
295
+ type : object
296
+ x-kubernetes-validations :
297
+ - message : either a resource reference or a resource selector should
298
+ be set.
299
+ rule : has(self.resourceRef) || has(self.resourceSelector)
300
+ of :
301
+ description : Of is the resource that is "being used".
302
+ properties :
303
+ apiVersion :
304
+ description : API version of the referent.
305
+ type : string
306
+ kind :
307
+ description : |-
308
+ Kind of the referent.
309
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
310
+ type : string
311
+ resourceRef :
312
+ description : Reference to the resource.
313
+ properties :
314
+ name :
315
+ description : Name of the referent.
316
+ type : string
317
+ required :
318
+ - name
319
+ type : object
320
+ resourceSelector :
321
+ description : |-
322
+ Selector to the resource.
323
+ This field will be ignored if ResourceRef is set.
324
+ properties :
325
+ matchControllerRef :
326
+ description : |-
327
+ MatchControllerRef ensures an object with the same controller reference
328
+ as the selecting object is selected.
329
+ type : boolean
330
+ matchLabels :
331
+ additionalProperties :
332
+ type : string
333
+ description : MatchLabels ensures an object with matching labels
334
+ is selected.
335
+ type : object
336
+ type : object
337
+ type : object
338
+ x-kubernetes-validations :
339
+ - message : either a resource reference or a resource selector should
340
+ be set.
341
+ rule : has(self.resourceRef) || has(self.resourceSelector)
342
+ reason :
343
+ description : Reason is the reason for blocking deletion of the resource.
344
+ type : string
345
+ replayDeletion :
346
+ description : ReplayDeletion will trigger a deletion on the used resource
347
+ during the deletion of the usage itself, if it was attempted to
348
+ be deleted at least once.
349
+ type : boolean
350
+ required :
351
+ - of
352
+ type : object
353
+ x-kubernetes-validations :
354
+ - message : either "spec.by" or "spec.reason" must be specified.
355
+ rule : has(self.by) || has(self.reason)
356
+ status :
357
+ description : UsageStatus defines the observed state of Usage.
358
+ properties :
359
+ conditions :
360
+ description : Conditions of the resource.
361
+ items :
362
+ description : A Condition that may apply to a resource.
363
+ properties :
364
+ lastTransitionTime :
365
+ description : |-
366
+ LastTransitionTime is the last time this condition transitioned from one
367
+ status to another.
368
+ format : date-time
369
+ type : string
370
+ message :
371
+ description : |-
372
+ A Message containing details about this condition's last transition from
373
+ one status to another, if any.
374
+ type : string
375
+ observedGeneration :
376
+ description : |-
377
+ ObservedGeneration represents the .metadata.generation that the condition was set based upon.
378
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
379
+ with respect to the current state of the instance.
380
+ format : int64
381
+ type : integer
382
+ reason :
383
+ description : A Reason for this condition's last transition from
384
+ one status to another.
385
+ type : string
386
+ status :
387
+ description : Status of this condition; is it currently True,
388
+ False, or Unknown?
389
+ type : string
390
+ type :
391
+ description : |-
392
+ Type of this condition. At most one of each condition type may apply to
393
+ a resource at any point in time.
394
+ type : string
395
+ required :
396
+ - lastTransitionTime
397
+ - reason
398
+ - status
399
+ - type
400
+ type : object
401
+ type : array
402
+ x-kubernetes-list-map-keys :
403
+ - type
404
+ x-kubernetes-list-type : map
405
+ type : object
406
+ required :
407
+ - spec
408
+ type : object
409
+ served : true
410
+ storage : false
411
+ subresources :
412
+ status : {}
0 commit comments