|
26 | 26 | - jsonPath: .metadata.creationTimestamp
|
27 | 27 | name: AGE
|
28 | 28 | type: date
|
| 29 | + deprecated: true |
| 30 | + deprecationWarning: apiextensions.crossplane.io Usage is deprecated; migrate to |
| 31 | + protection.crossplane.io Usage or ClusterUsage |
29 | 32 | name: v1alpha1
|
30 | 33 | schema:
|
31 | 34 | openAPIV3Schema:
|
|
36 | 39 | resources with dependent resources.
|
37 | 40 |
|
38 | 41 | 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. |
40 | 45 | properties:
|
41 | 46 | apiVersion:
|
42 | 47 | description: |-
|
@@ -213,3 +218,205 @@ spec:
|
213 | 218 | storage: true
|
214 | 219 | subresources:
|
215 | 220 | 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