|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.16.5 |
| 7 | + name: usages.apiextensions.crossplane.io |
| 8 | +spec: |
| 9 | + group: apiextensions.crossplane.io |
| 10 | + names: |
| 11 | + categories: |
| 12 | + - crossplane |
| 13 | + kind: Usage |
| 14 | + listKind: UsageList |
| 15 | + plural: usages |
| 16 | + singular: usage |
| 17 | + scope: Cluster |
| 18 | + versions: |
| 19 | + - additionalPrinterColumns: |
| 20 | + - jsonPath: .metadata.annotations.crossplane\.io/usage-details |
| 21 | + name: DETAILS |
| 22 | + type: string |
| 23 | + - jsonPath: .status.conditions[?(@.type=='Ready')].status |
| 24 | + name: READY |
| 25 | + type: string |
| 26 | + - jsonPath: .metadata.creationTimestamp |
| 27 | + name: AGE |
| 28 | + type: date |
| 29 | + name: v1alpha1 |
| 30 | + schema: |
| 31 | + openAPIV3Schema: |
| 32 | + description: |- |
| 33 | + A Usage defines a deletion blocking relationship between two resources. |
| 34 | +
|
| 35 | + Usages prevent accidental deletion of a single resource or deletion of |
| 36 | + resources with dependent resources. |
| 37 | +
|
| 38 | + Read the Crossplane documentation for |
| 39 | + [more information about Compositions](https://docs.crossplane.io/latest/concepts/usages). |
| 40 | + properties: |
| 41 | + apiVersion: |
| 42 | + description: |- |
| 43 | + APIVersion defines the versioned schema of this representation of an object. |
| 44 | + Servers should convert recognized schemas to the latest internal value, and |
| 45 | + may reject unrecognized values. |
| 46 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 47 | + type: string |
| 48 | + kind: |
| 49 | + description: |- |
| 50 | + Kind is a string value representing the REST resource this object represents. |
| 51 | + Servers may infer this from the endpoint the client submits requests to. |
| 52 | + Cannot be updated. |
| 53 | + In CamelCase. |
| 54 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 55 | + type: string |
| 56 | + metadata: |
| 57 | + type: object |
| 58 | + spec: |
| 59 | + description: UsageSpec defines the desired state of Usage. |
| 60 | + properties: |
| 61 | + by: |
| 62 | + description: By is the resource that is "using the other resource". |
| 63 | + properties: |
| 64 | + apiVersion: |
| 65 | + description: API version of the referent. |
| 66 | + type: string |
| 67 | + kind: |
| 68 | + description: |- |
| 69 | + Kind of the referent. |
| 70 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 71 | + type: string |
| 72 | + resourceRef: |
| 73 | + description: Reference to the resource. |
| 74 | + properties: |
| 75 | + name: |
| 76 | + description: Name of the referent. |
| 77 | + type: string |
| 78 | + required: |
| 79 | + - name |
| 80 | + type: object |
| 81 | + resourceSelector: |
| 82 | + description: |- |
| 83 | + Selector to the resource. |
| 84 | + This field will be ignored if ResourceRef is set. |
| 85 | + properties: |
| 86 | + matchControllerRef: |
| 87 | + description: |- |
| 88 | + MatchControllerRef ensures an object with the same controller reference |
| 89 | + as the selecting object is selected. |
| 90 | + type: boolean |
| 91 | + matchLabels: |
| 92 | + additionalProperties: |
| 93 | + type: string |
| 94 | + description: MatchLabels ensures an object with matching labels |
| 95 | + is selected. |
| 96 | + type: object |
| 97 | + type: object |
| 98 | + type: object |
| 99 | + x-kubernetes-validations: |
| 100 | + - message: either a resource reference or a resource selector should |
| 101 | + be set. |
| 102 | + rule: has(self.resourceRef) || has(self.resourceSelector) |
| 103 | + of: |
| 104 | + description: Of is the resource that is "being used". |
| 105 | + properties: |
| 106 | + apiVersion: |
| 107 | + description: API version of the referent. |
| 108 | + type: string |
| 109 | + kind: |
| 110 | + description: |- |
| 111 | + Kind of the referent. |
| 112 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 113 | + type: string |
| 114 | + resourceRef: |
| 115 | + description: Reference to the resource. |
| 116 | + properties: |
| 117 | + name: |
| 118 | + description: Name of the referent. |
| 119 | + type: string |
| 120 | + required: |
| 121 | + - name |
| 122 | + type: object |
| 123 | + resourceSelector: |
| 124 | + description: |- |
| 125 | + Selector to the resource. |
| 126 | + This field will be ignored if ResourceRef is set. |
| 127 | + properties: |
| 128 | + matchControllerRef: |
| 129 | + description: |- |
| 130 | + MatchControllerRef ensures an object with the same controller reference |
| 131 | + as the selecting object is selected. |
| 132 | + type: boolean |
| 133 | + matchLabels: |
| 134 | + additionalProperties: |
| 135 | + type: string |
| 136 | + description: MatchLabels ensures an object with matching labels |
| 137 | + is selected. |
| 138 | + type: object |
| 139 | + type: object |
| 140 | + type: object |
| 141 | + x-kubernetes-validations: |
| 142 | + - message: either a resource reference or a resource selector should |
| 143 | + be set. |
| 144 | + rule: has(self.resourceRef) || has(self.resourceSelector) |
| 145 | + reason: |
| 146 | + description: Reason is the reason for blocking deletion of the resource. |
| 147 | + type: string |
| 148 | + replayDeletion: |
| 149 | + description: ReplayDeletion will trigger a deletion on the used resource |
| 150 | + during the deletion of the usage itself, if it was attempted to |
| 151 | + be deleted at least once. |
| 152 | + type: boolean |
| 153 | + required: |
| 154 | + - of |
| 155 | + type: object |
| 156 | + x-kubernetes-validations: |
| 157 | + - message: either "spec.by" or "spec.reason" must be specified. |
| 158 | + rule: has(self.by) || has(self.reason) |
| 159 | + status: |
| 160 | + description: UsageStatus defines the observed state of Usage. |
| 161 | + properties: |
| 162 | + conditions: |
| 163 | + description: Conditions of the resource. |
| 164 | + items: |
| 165 | + description: A Condition that may apply to a resource. |
| 166 | + properties: |
| 167 | + lastTransitionTime: |
| 168 | + description: |- |
| 169 | + LastTransitionTime is the last time this condition transitioned from one |
| 170 | + status to another. |
| 171 | + format: date-time |
| 172 | + type: string |
| 173 | + message: |
| 174 | + description: |- |
| 175 | + A Message containing details about this condition's last transition from |
| 176 | + one status to another, if any. |
| 177 | + type: string |
| 178 | + observedGeneration: |
| 179 | + description: |- |
| 180 | + ObservedGeneration represents the .metadata.generation that the condition was set based upon. |
| 181 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 182 | + with respect to the current state of the instance. |
| 183 | + format: int64 |
| 184 | + type: integer |
| 185 | + reason: |
| 186 | + description: A Reason for this condition's last transition from |
| 187 | + one status to another. |
| 188 | + type: string |
| 189 | + status: |
| 190 | + description: Status of this condition; is it currently True, |
| 191 | + False, or Unknown? |
| 192 | + type: string |
| 193 | + type: |
| 194 | + description: |- |
| 195 | + Type of this condition. At most one of each condition type may apply to |
| 196 | + a resource at any point in time. |
| 197 | + type: string |
| 198 | + required: |
| 199 | + - lastTransitionTime |
| 200 | + - reason |
| 201 | + - status |
| 202 | + - type |
| 203 | + type: object |
| 204 | + type: array |
| 205 | + x-kubernetes-list-map-keys: |
| 206 | + - type |
| 207 | + x-kubernetes-list-type: map |
| 208 | + type: object |
| 209 | + required: |
| 210 | + - spec |
| 211 | + type: object |
| 212 | + served: true |
| 213 | + storage: true |
| 214 | + subresources: |
| 215 | + status: {} |
0 commit comments