github.com/ironcore-dev/gardener-extension-provider-ironcore@v0.3.2-0.20240314231816-8336447fb9a0/example/20-crd-extensions.gardener.cloud_extensions.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      controller-gen.kubebuilder.io/version: v0.13.0
     7    name: extensions.extensions.gardener.cloud
     8  spec:
     9    group: extensions.gardener.cloud
    10    names:
    11      kind: Extension
    12      listKind: ExtensionList
    13      plural: extensions
    14      shortNames:
    15      - ext
    16      singular: extension
    17    scope: Namespaced
    18    versions:
    19    - additionalPrinterColumns:
    20      - description: The type of the Extension resource.
    21        jsonPath: .spec.type
    22        name: Type
    23        type: string
    24      - description: Status of Extension resource.
    25        jsonPath: .status.lastOperation.state
    26        name: Status
    27        type: string
    28      - description: creation timestamp
    29        jsonPath: .metadata.creationTimestamp
    30        name: Age
    31        type: date
    32      name: v1alpha1
    33      schema:
    34        openAPIV3Schema:
    35          description: Extension is a specification for a Extension resource.
    36          properties:
    37            apiVersion:
    38              description: 'APIVersion defines the versioned schema of this representation
    39                of an object. Servers should convert recognized schemas to the latest
    40                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    41              type: string
    42            kind:
    43              description: 'Kind is a string value representing the REST resource this
    44                object represents. Servers may infer this from the endpoint the client
    45                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    46              type: string
    47            metadata:
    48              type: object
    49            spec:
    50              description: Specification of the Extension. If the object's deletion
    51                timestamp is set, this field is immutable.
    52              properties:
    53                providerConfig:
    54                  description: ProviderConfig is the provider specific configuration.
    55                  type: object
    56                  x-kubernetes-preserve-unknown-fields: true
    57                type:
    58                  description: Type contains the instance of the resource's kind.
    59                  type: string
    60              required:
    61              - type
    62              type: object
    63            status:
    64              description: ExtensionStatus is the status for a Extension resource.
    65              properties:
    66                conditions:
    67                  description: Conditions represents the latest available observations
    68                    of a Seed's current state.
    69                  items:
    70                    description: Condition holds the information about the state of
    71                      a resource.
    72                    properties:
    73                      codes:
    74                        description: Well-defined error codes in case the condition
    75                          reports a problem.
    76                        items:
    77                          description: ErrorCode is a string alias.
    78                          type: string
    79                        type: array
    80                      lastTransitionTime:
    81                        description: Last time the condition transitioned from one status
    82                          to another.
    83                        format: date-time
    84                        type: string
    85                      lastUpdateTime:
    86                        description: Last time the condition was updated.
    87                        format: date-time
    88                        type: string
    89                      message:
    90                        description: A human readable message indicating details about
    91                          the transition.
    92                        type: string
    93                      reason:
    94                        description: The reason for the condition's last transition.
    95                        type: string
    96                      status:
    97                        description: Status of the condition, one of True, False, Unknown.
    98                        type: string
    99                      type:
   100                        description: Type of the condition.
   101                        type: string
   102                    required:
   103                    - lastTransitionTime
   104                    - lastUpdateTime
   105                    - message
   106                    - reason
   107                    - status
   108                    - type
   109                    type: object
   110                  type: array
   111                lastError:
   112                  description: LastError holds information about the last occurred error
   113                    during an operation.
   114                  properties:
   115                    codes:
   116                      description: Well-defined error codes of the last error(s).
   117                      items:
   118                        description: ErrorCode is a string alias.
   119                        type: string
   120                      type: array
   121                    description:
   122                      description: A human readable message indicating details about
   123                        the last error.
   124                      type: string
   125                    lastUpdateTime:
   126                      description: Last time the error was reported
   127                      format: date-time
   128                      type: string
   129                    taskID:
   130                      description: ID of the task which caused this last error
   131                      type: string
   132                  required:
   133                  - description
   134                  type: object
   135                lastOperation:
   136                  description: LastOperation holds information about the last operation
   137                    on the resource.
   138                  properties:
   139                    description:
   140                      description: A human readable message indicating details about
   141                        the last operation.
   142                      type: string
   143                    lastUpdateTime:
   144                      description: Last time the operation state transitioned from one
   145                        to another.
   146                      format: date-time
   147                      type: string
   148                    progress:
   149                      description: The progress in percentage (0-100) of the last operation.
   150                      format: int32
   151                      type: integer
   152                    state:
   153                      description: Status of the last operation, one of Aborted, Processing,
   154                        Succeeded, Error, Failed.
   155                      type: string
   156                    type:
   157                      description: Type of the last operation, one of Create, Reconcile,
   158                        Delete, Migrate, Restore.
   159                      type: string
   160                  required:
   161                  - description
   162                  - lastUpdateTime
   163                  - progress
   164                  - state
   165                  - type
   166                  type: object
   167                observedGeneration:
   168                  description: ObservedGeneration is the most recent generation observed
   169                    for this resource.
   170                  format: int64
   171                  type: integer
   172                providerStatus:
   173                  description: ProviderStatus contains provider-specific status.
   174                  type: object
   175                  x-kubernetes-preserve-unknown-fields: true
   176                resources:
   177                  description: Resources holds a list of named resource references that
   178                    can be referred to in the state by their names.
   179                  items:
   180                    description: NamedResourceReference is a named reference to a resource.
   181                    properties:
   182                      name:
   183                        description: Name of the resource reference.
   184                        type: string
   185                      resourceRef:
   186                        description: ResourceRef is a reference to a resource.
   187                        properties:
   188                          apiVersion:
   189                            description: apiVersion is the API version of the referent
   190                            type: string
   191                          kind:
   192                            description: 'kind is the kind of the referent; More info:
   193                              https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
   194                            type: string
   195                          name:
   196                            description: 'name is the name of the referent; More info:
   197                              https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   198                            type: string
   199                        required:
   200                        - kind
   201                        - name
   202                        type: object
   203                        x-kubernetes-map-type: atomic
   204                    required:
   205                    - name
   206                    - resourceRef
   207                    type: object
   208                  type: array
   209                state:
   210                  description: State can be filled by the operating controller with
   211                    what ever data it needs.
   212                  type: object
   213                  x-kubernetes-preserve-unknown-fields: true
   214              type: object
   215          required:
   216          - spec
   217          type: object
   218      served: true
   219      storage: true
   220      subresources:
   221        status: {}