Skip to content

Commit 045bd0b

Browse files
authored
Merge pull request #903 from jbw976/v2-apis
update CRDs for v2.0-preview
2 parents 3b37063 + 0c56ab2 commit 045bd0b

13 files changed

+1304
-6769
lines changed

content/v2.0-preview/api/crds/apiextensions.crossplane.io_compositeresourcedefinitions.yaml

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

content/v2.0-preview/api/crds/apiextensions.crossplane.io_compositionrevisions.yaml

Lines changed: 4 additions & 2017 deletions
Large diffs are not rendered by default.

content/v2.0-preview/api/crds/apiextensions.crossplane.io_compositions.yaml

Lines changed: 9 additions & 893 deletions
Large diffs are not rendered by default.

content/v2.0-preview/api/crds/apiextensions.crossplane.io_environmentconfigs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
type: object
5959
type: object
6060
served: true
61-
storage: false
61+
storage: true
6262
subresources: {}
6363
- additionalPrinterColumns:
6464
- jsonPath: .metadata.creationTimestamp
@@ -100,5 +100,5 @@ spec:
100100
type: object
101101
type: object
102102
served: true
103-
storage: true
103+
storage: false
104104
subresources: {}

content/v2.0-preview/api/crds/apiextensions.crossplane.io_usages.yaml

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

0 commit comments

Comments
 (0)