...

Text file src/edge-infra.dev/test/fixtures/crds/gcp/compute.cnrm.cloud.google.com_computesnapshots.yaml

Documentation: edge-infra.dev/test/fixtures/crds/gcp

     1---
     2apiVersion: apiextensions.k8s.io/v1
     3kind: CustomResourceDefinition
     4metadata:
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7  name: computesnapshots.compute.cnrm.cloud.google.com
     8spec:
     9  group: compute.cnrm.cloud.google.com
    10  names:
    11    kind: ComputeSnapshot
    12    listKind: ComputeSnapshotList
    13    plural: computesnapshots
    14    singular: computesnapshot
    15  scope: Namespaced
    16  versions:
    17  - name: v1beta1
    18    schema:
    19      openAPIV3Schema:
    20        description: ComputeSnapshot is the Schema for the compute API
    21        properties:
    22          apiVersion:
    23            description: |-
    24              APIVersion defines the versioned schema of this representation of an object.
    25              Servers should convert recognized schemas to the latest internal value, and
    26              may reject unrecognized values.
    27              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    28            type: string
    29          kind:
    30            description: |-
    31              Kind is a string value representing the REST resource this object represents.
    32              Servers may infer this from the endpoint the client submits requests to.
    33              Cannot be updated.
    34              In CamelCase.
    35              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    36            type: string
    37          metadata:
    38            type: object
    39          spec:
    40            properties:
    41              chainName:
    42                description: |-
    43                  Immutable. Creates the new snapshot in the snapshot chain labeled with the
    44                  specified name. The chain name must be 1-63 characters long and
    45                  comply with RFC1035. This is an uncommon option only for advanced
    46                  service owners who needs to create separate snapshot chains, for
    47                  example, for chargeback tracking.  When you describe your snapshot
    48                  resource, this field is visible only if it has a non-empty value.
    49                type: string
    50              description:
    51                description: Immutable. An optional description of this resource.
    52                type: string
    53              resourceID:
    54                description: Immutable. Optional. The name of the resource. Used for
    55                  creation and acquisition. When unset, the value of `metadata.name`
    56                  is used as the default.
    57                type: string
    58              snapshotEncryptionKey:
    59                description: |-
    60                  Immutable. Encrypts the snapshot using a customer-supplied encryption key.
    61
    62
    63                  After you encrypt a snapshot using a customer-supplied key, you must
    64                  provide the same key if you use the snapshot later. For example, you
    65                  must provide the encryption key when you create a disk from the
    66                  encrypted snapshot in a future request.
    67
    68
    69                  Customer-supplied encryption keys do not protect access to metadata of
    70                  the snapshot.
    71
    72
    73                  If you do not provide an encryption key when creating the snapshot,
    74                  then the snapshot will be encrypted using an automatically generated
    75                  key and you do not need to provide a key to use the snapshot later.
    76                properties:
    77                  kmsKeyRef:
    78                    description: The encryption key that is stored in Google Cloud
    79                      KMS.
    80                    properties:
    81                      external:
    82                        description: The external name of the referenced resource
    83                        type: string
    84                      kind:
    85                        description: Kind of the referent.
    86                        type: string
    87                      name:
    88                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
    89                        type: string
    90                      namespace:
    91                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
    92                        type: string
    93                    type: object
    94                  kmsKeyServiceAccountRef:
    95                    description: |-
    96                      The service account used for the encryption request for the given KMS key.
    97                      If absent, the Compute Engine Service Agent service account is used.
    98                    properties:
    99                      external:
   100                        description: The external name of the referenced resource
   101                        type: string
   102                      kind:
   103                        description: Kind of the referent.
   104                        type: string
   105                      name:
   106                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   107                        type: string
   108                      namespace:
   109                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   110                        type: string
   111                    type: object
   112                  rawKey:
   113                    description: |-
   114                      Immutable. Specifies a 256-bit customer-supplied encryption key, encoded in
   115                      RFC 4648 base64 to either encrypt or decrypt this resource.
   116                    properties:
   117                      value:
   118                        description: Value of the field. Cannot be used if 'valueFrom'
   119                          is specified.
   120                        type: string
   121                      valueFrom:
   122                        description: Source for the field's value. Cannot be used
   123                          if 'value' is specified.
   124                        properties:
   125                          secretKeyRef:
   126                            description: Reference to a value with the given key in
   127                              the given Secret in the resource's namespace.
   128                            properties:
   129                              external:
   130                                description: The external name of the referenced resource
   131                                type: string
   132                              kind:
   133                                description: Kind of the referent.
   134                                type: string
   135                              name:
   136                                description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   137                                type: string
   138                              namespace:
   139                                description: 'Namespace of the referent. More info:
   140                                  https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   141                                type: string
   142                            type: object
   143                        type: object
   144                    type: object
   145                  sha256:
   146                    description: |-
   147                      The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
   148                      encryption key that protects this resource.
   149                    type: string
   150                type: object
   151              sourceDiskEncryptionKey:
   152                description: |-
   153                  Immutable. The customer-supplied encryption key of the source snapshot. Required
   154                  if the source snapshot is protected by a customer-supplied encryption
   155                  key.
   156                properties:
   157                  kmsKeyServiceAccountRef:
   158                    description: |-
   159                      The service account used for the encryption request for the given KMS key.
   160                      If absent, the Compute Engine Service Agent service account is used.
   161                    properties:
   162                      external:
   163                        description: The external name of the referenced resource
   164                        type: string
   165                      kind:
   166                        description: Kind of the referent.
   167                        type: string
   168                      name:
   169                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   170                        type: string
   171                      namespace:
   172                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   173                        type: string
   174                    type: object
   175                  rawKey:
   176                    description: |-
   177                      Immutable. Specifies a 256-bit customer-supplied encryption key, encoded in
   178                      RFC 4648 base64 to either encrypt or decrypt this resource.
   179                    properties:
   180                      value:
   181                        description: Value of the field. Cannot be used if 'valueFrom'
   182                          is specified.
   183                        type: string
   184                      valueFrom:
   185                        description: Source for the field's value. Cannot be used
   186                          if 'value' is specified.
   187                        properties:
   188                          secretKeyRef:
   189                            description: Reference to a value with the given key in
   190                              the given Secret in the resource's namespace.
   191                            properties:
   192                              external:
   193                                description: The external name of the referenced resource
   194                                type: string
   195                              kind:
   196                                description: Kind of the referent.
   197                                type: string
   198                              name:
   199                                description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   200                                type: string
   201                              namespace:
   202                                description: 'Namespace of the referent. More info:
   203                                  https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   204                                type: string
   205                            type: object
   206                        type: object
   207                    type: object
   208                type: object
   209              sourceDiskRef:
   210                description: A reference to the disk used to create this snapshot.
   211                properties:
   212                  external:
   213                    description: The external name of the referenced resource
   214                    type: string
   215                  kind:
   216                    description: Kind of the referent.
   217                    type: string
   218                  name:
   219                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   220                    type: string
   221                  namespace:
   222                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   223                    type: string
   224                type: object
   225              storageLocations:
   226                description: Immutable. Cloud Storage bucket storage location of the
   227                  snapshot (regional or multi-regional).
   228                items:
   229                  type: string
   230                type: array
   231              zone:
   232                description: Immutable. A reference to the zone where the disk is
   233                  hosted.
   234                type: string
   235            required:
   236            - sourceDiskRef
   237            type: object
   238          status:
   239            properties:
   240              conditions:
   241                description: |-
   242                  Conditions represent the latest available observations of the
   243                  ComputeSnapshot's current state.
   244                items:
   245                  properties:
   246                    lastTransitionTime:
   247                      description: Last time the condition transitioned from one status
   248                        to another.
   249                      type: string
   250                    message:
   251                      description: Human-readable message indicating details about
   252                        last transition.
   253                      type: string
   254                    reason:
   255                      description: |-
   256                        Unique, one-word, CamelCase reason for the condition's last
   257                        transition.
   258                      type: string
   259                    status:
   260                      description: Status is the status of the condition. Can be True,
   261                        False, Unknown.
   262                      type: string
   263                    type:
   264                      description: Type is the type of the condition.
   265                      type: string
   266                  type: object
   267                type: array
   268              creationTimestamp:
   269                description: Creation timestamp in RFC3339 text format.
   270                type: string
   271              diskSizeGb:
   272                description: Size of the snapshot, specified in GB.
   273                type: integer
   274              labelFingerprint:
   275                description: |-
   276                  The fingerprint used for optimistic locking of this resource. Used
   277                  internally during updates.
   278                type: string
   279              licenses:
   280                description: |-
   281                  A list of public visible licenses that apply to this snapshot. This
   282                  can be because the original image had licenses attached (such as a
   283                  Windows image).  snapshotEncryptionKey nested object Encrypts the
   284                  snapshot using a customer-supplied encryption key.
   285                items:
   286                  type: string
   287                type: array
   288              observedGeneration:
   289                description: ObservedGeneration is the generation of the resource
   290                  that was most recently observed by the Config Connector controller.
   291                  If this is equal to metadata.generation, then that means that the
   292                  current reported status reflects the most recent desired state of
   293                  the resource.
   294                type: integer
   295              selfLink:
   296                type: string
   297              snapshotId:
   298                description: The unique identifier for the resource.
   299                type: integer
   300              storageBytes:
   301                description: |-
   302                  A size of the storage used by the snapshot. As snapshots share
   303                  storage, this number is expected to change with snapshot
   304                  creation/deletion.
   305                type: integer
   306            type: object
   307        type: object
   308    served: true
   309    storage: true

View as plain text