...

Text file src/edge-infra.dev/test/fixtures/crds/gcp/pubsub.cnrm.cloud.google.com_pubsubtopics.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: pubsubtopics.pubsub.cnrm.cloud.google.com
     8spec:
     9  group: pubsub.cnrm.cloud.google.com
    10  names:
    11    kind: PubSubTopic
    12    listKind: PubSubTopicList
    13    plural: pubsubtopics
    14    singular: pubsubtopic
    15  scope: Namespaced
    16  versions:
    17  - name: v1beta1
    18    schema:
    19      openAPIV3Schema:
    20        description: PubSubTopic is the Schema for the pubsub 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              kmsKeyRef:
    42                description: |-
    43                  The KMSCryptoKey to be used to protect access to messages published
    44                  on this topic. Your project's Pub/Sub service account
    45                  ('service-{{PROJECT_NUMBER}}@gcp-sa-pubsub.iam.gserviceaccount.com')
    46                  must have 'roles/cloudkms.cryptoKeyEncrypterDecrypter' to use this
    47                  feature.
    48                properties:
    49                  external:
    50                    description: The external name of the referenced resource
    51                    type: string
    52                  kind:
    53                    description: Kind of the referent.
    54                    type: string
    55                  name:
    56                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
    57                    type: string
    58                  namespace:
    59                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
    60                    type: string
    61                type: object
    62              messageRetentionDuration:
    63                description: |-
    64                  Indicates the minimum duration to retain a message after it is published
    65                  to the topic. If this field is set, messages published to the topic in
    66                  the last messageRetentionDuration are always available to subscribers.
    67                  For instance, it allows any attached subscription to seek to a timestamp
    68                  that is up to messageRetentionDuration in the past. If this field is not
    69                  set, message retention is controlled by settings on individual subscriptions.
    70                  Cannot be more than 31 days or less than 10 minutes.
    71                type: string
    72              messageStoragePolicy:
    73                description: |-
    74                  Policy constraining the set of Google Cloud Platform regions where
    75                  messages published to the topic may be stored. If not present, then no
    76                  constraints are in effect.
    77                properties:
    78                  allowedPersistenceRegions:
    79                    description: |-
    80                      A list of IDs of GCP regions where messages that are published to
    81                      the topic may be persisted in storage. Messages published by
    82                      publishers running in non-allowed GCP regions (or running outside
    83                      of GCP altogether) will be routed for storage in one of the
    84                      allowed regions. An empty list means that no regions are allowed,
    85                      and is not a valid configuration.
    86                    items:
    87                      type: string
    88                    type: array
    89                required:
    90                - allowedPersistenceRegions
    91                type: object
    92              resourceID:
    93                description: Immutable. Optional. The name of the resource. Used for
    94                  creation and acquisition. When unset, the value of `metadata.name`
    95                  is used as the default.
    96                type: string
    97              schemaSettings:
    98                description: Settings for validating messages published against a
    99                  schema.
   100                properties:
   101                  encoding:
   102                    description: 'The encoding of messages validated against schema.
   103                      Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED",
   104                      "JSON", "BINARY"].'
   105                    type: string
   106                  schemaRef:
   107                    properties:
   108                      external:
   109                        description: The external name of the referenced resource
   110                        type: string
   111                      kind:
   112                        description: Kind of the referent.
   113                        type: string
   114                      name:
   115                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   116                        type: string
   117                      namespace:
   118                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   119                        type: string
   120                    type: object
   121                required:
   122                - schemaRef
   123                type: object
   124            type: object
   125          status:
   126            properties:
   127              conditions:
   128                description: |-
   129                  Conditions represent the latest available observations of the
   130                  PubSubTopic's current state.
   131                items:
   132                  properties:
   133                    lastTransitionTime:
   134                      description: Last time the condition transitioned from one status
   135                        to another.
   136                      type: string
   137                    message:
   138                      description: Human-readable message indicating details about
   139                        last transition.
   140                      type: string
   141                    reason:
   142                      description: |-
   143                        Unique, one-word, CamelCase reason for the condition's last
   144                        transition.
   145                      type: string
   146                    status:
   147                      description: Status is the status of the condition. Can be True,
   148                        False, Unknown.
   149                      type: string
   150                    type:
   151                      description: Type is the type of the condition.
   152                      type: string
   153                  type: object
   154                type: array
   155              observedGeneration:
   156                description: ObservedGeneration is the generation of the resource
   157                  that was most recently observed by the Config Connector controller.
   158                  If this is equal to metadata.generation, then that means that the
   159                  current reported status reflects the most recent desired state of
   160                  the resource.
   161                type: integer
   162            type: object
   163        type: object
   164    served: true
   165    storage: true

View as plain text