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