...

Text file src/edge-infra.dev/test/fixtures/crds/edge/edge.ncr.com_banners.yaml

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

     1---
     2apiVersion: apiextensions.k8s.io/v1
     3kind: CustomResourceDefinition
     4metadata:
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7  name: banners.edge.ncr.com
     8spec:
     9  group: edge.ncr.com
    10  names:
    11    kind: Banner
    12    listKind: BannerList
    13    plural: banners
    14    singular: banner
    15  scope: Cluster
    16  versions:
    17  - additionalPrinterColumns:
    18    - jsonPath: .spec.displayName
    19      name: Display Name
    20      type: string
    21    - jsonPath: .spec.gcp.projectId
    22      name: GCP ID
    23      type: string
    24    - jsonPath: .status.conditions[?(@.type=="Ready")].status
    25      name: Ready
    26      type: string
    27    - jsonPath: .status.conditions[?(@.type=="Ready")].message
    28      name: Status
    29      type: string
    30    name: v1alpha1
    31    schema:
    32      openAPIV3Schema:
    33        description: Banner is the Schema for the Banners API
    34        properties:
    35          apiVersion:
    36            description: |-
    37              APIVersion defines the versioned schema of this representation of an object.
    38              Servers should convert recognized schemas to the latest internal value, and
    39              may reject unrecognized values.
    40              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    41            type: string
    42          kind:
    43            description: |-
    44              Kind is a string value representing the REST resource this object represents.
    45              Servers may infer this from the endpoint the client submits requests to.
    46              Cannot be updated.
    47              In CamelCase.
    48              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    49            type: string
    50          metadata:
    51            type: object
    52          spec:
    53            description: BannerSpec defines the desired state of Banner
    54            properties:
    55              bsl:
    56                description: BSLConfig maps a Banner to BSL entities
    57                properties:
    58                  enterpriseUnit:
    59                    description: BSLEnterpriseUnit represents a BSL specific EnterpriseUnit
    60                      corresponding to a Banner
    61                    properties:
    62                      id:
    63                        type: string
    64                    type: object
    65                  entityTypes:
    66                    items:
    67                      type: string
    68                    type: array
    69                  organization:
    70                    description: BSLOrganization represents a BSL organization
    71                    properties:
    72                      name:
    73                        type: string
    74                    type: object
    75                type: object
    76              displayName:
    77                type: string
    78              enablements:
    79                items:
    80                  type: string
    81                type: array
    82              gcp:
    83                description: |-
    84                  GCPConfig contains GCP specific options.
    85                    - ProjectID: The globally unique ID (not display name) of the project
    86                      to create for the Banner
    87                properties:
    88                  projectId:
    89                    type: string
    90                type: object
    91            type: object
    92          status:
    93            default:
    94              observedGeneration: -1
    95            description: BannerStatus defines the observed state of a Banner
    96            properties:
    97              bslSyncStatus:
    98                properties:
    99                  completed:
   100                    type: boolean
   101                  entityTypes:
   102                    items:
   103                      type: string
   104                    type: array
   105                required:
   106                - completed
   107                type: object
   108              clusterInfraClusterEdgeID:
   109                type: string
   110              clusterInfraClusterProjectID:
   111                type: string
   112              conditions:
   113                items:
   114                  description: "Condition contains details for one aspect of the current
   115                    state of this API Resource.\n---\nThis struct is intended for
   116                    direct use as an array at the field path .status.conditions.  For
   117                    example,\n\n\n\ttype FooStatus struct{\n\t    // Represents the
   118                    observations of a foo's current state.\n\t    // Known .status.conditions.type
   119                    are: \"Available\", \"Progressing\", and \"Degraded\"\n\t    //
   120                    +patchMergeKey=type\n\t    // +patchStrategy=merge\n\t    // +listType=map\n\t
   121                    \   // +listMapKey=type\n\t    Conditions []metav1.Condition `json:\"conditions,omitempty\"
   122                    patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
   123                    \   // other fields\n\t}"
   124                  properties:
   125                    lastTransitionTime:
   126                      description: |-
   127                        lastTransitionTime is the last time the condition transitioned from one status to another.
   128                        This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
   129                      format: date-time
   130                      type: string
   131                    message:
   132                      description: |-
   133                        message is a human readable message indicating details about the transition.
   134                        This may be an empty string.
   135                      maxLength: 32768
   136                      type: string
   137                    observedGeneration:
   138                      description: |-
   139                        observedGeneration represents the .metadata.generation that the condition was set based upon.
   140                        For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
   141                        with respect to the current state of the instance.
   142                      format: int64
   143                      minimum: 0
   144                      type: integer
   145                    reason:
   146                      description: |-
   147                        reason contains a programmatic identifier indicating the reason for the condition's last transition.
   148                        Producers of specific condition types may define expected values and meanings for this field,
   149                        and whether the values are considered a guaranteed API.
   150                        The value should be a CamelCase string.
   151                        This field may not be empty.
   152                      maxLength: 1024
   153                      minLength: 1
   154                      pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
   155                      type: string
   156                    status:
   157                      description: status of the condition, one of True, False, Unknown.
   158                      enum:
   159                      - "True"
   160                      - "False"
   161                      - Unknown
   162                      type: string
   163                    type:
   164                      description: |-
   165                        type of condition in CamelCase or in foo.example.com/CamelCase.
   166                        ---
   167                        Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
   168                        useful (see .node.status.conditions), the ability to deconflict is important.
   169                        The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
   170                      maxLength: 316
   171                      pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
   172                      type: string
   173                  required:
   174                  - lastTransitionTime
   175                  - message
   176                  - reason
   177                  - status
   178                  - type
   179                  type: object
   180                type: array
   181              couchClusterEdgeID:
   182                type: string
   183              inventory:
   184                description: |-
   185                  ResourceInventory contains a list of Kubernetes resource object references
   186                  that have been applied.
   187                properties:
   188                  entries:
   189                    description: Entries of Kubernetes resource object references.
   190                    items:
   191                      description: ResourceRef contains the information necessary
   192                        to locate a resource within a cluster.
   193                      properties:
   194                        id:
   195                          description: |-
   196                            ID is the string representation of the Kubernetes resource object's metadata,
   197                            in the format '<namespace>_<name>_<group>_<kind>'.
   198                          type: string
   199                        v:
   200                          description: Version is the API version of the Kubernetes
   201                            resource object's kind.
   202                          type: string
   203                      required:
   204                      - id
   205                      - v
   206                      type: object
   207                    type: array
   208                type: object
   209              observedGeneration:
   210                format: int64
   211                type: integer
   212              projectNumber:
   213                description: |-
   214                  ProjectNumber is the unique number associated with each project after
   215                  creation
   216                type: string
   217              projectRef:
   218                description: ProjectRef is a reference to the GCP Project KCC Resource
   219                  in namespace/name format
   220                type: string
   221            type: object
   222        type: object
   223    served: true
   224    storage: true
   225    subresources:
   226      status: {}

View as plain text