Files
gardener-extension-shoot-fl…/example/20-crd-extension.yaml
2021-01-28 17:37:47 +01:00

121 lines
4.2 KiB
YAML

---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: extensions.extensions.gardener.cloud
spec:
group: extensions.gardener.cloud
versions:
- name: v1alpha1
served: true
storage: true
version: v1alpha1
scope: Namespaced
names:
plural: extensions
singular: extension
kind: Extension
shortNames:
- ext
additionalPrinterColumns:
- name: Type
type: string
description: The type of the Extension resource.
JSONPath: .spec.type
- name: State
type: string
JSONPath: .status.lastOperation.state
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
type:
description: Type contains the instance of the resource's kind.
type: string
providerConfig:
description: ProviderConfig holds the configuration for the acting extension controller.
type: object
required:
- type
status:
properties:
lastError:
description: LastError holds information about the last occurred error
during an operation.
properties:
codes:
description: Well-defined error codes of the last error(s).
items:
type: string
type: array
description:
description: A human readable message indicating details about the
last error.
type: string
required:
- description
type: object
lastOperation:
description: LastOperation holds information about the last operation
on the resource.
properties:
description:
description: A human readable message indicating details about the
last operation.
type: string
lastUpdateTime:
description: Last time the operation state transitioned from one
to another.
format: date-time
type: string
progress:
description: The progress in percentage (0-100) of the last operation.
format: int64
type: integer
state:
description: Status of the last operation, one of Aborted, Processing,
Succeeded, Error, Failed.
type: string
type:
description: Type of the last operation, one of Create, Reconcile,
Delete.
type: string
required:
- description
- lastUpdateTime
- progress
- state
- type
type: object
observedGeneration:
description: ObservedGeneration is the most recent generation observed
for this resource.
format: int64
type: integer
state:
description: State can be filled by the operating controller with what
ever data it needs.
type: string
providerStatus:
description: Provider-specific output for this control plane
type: object
type: object