...

Text file src/edge-infra.dev/test/fixtures/crds/sds/dsds.edge.ncr.com_pxes.yaml

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

     1---
     2apiVersion: apiextensions.k8s.io/v1
     3kind: CustomResourceDefinition
     4metadata:
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7  name: pxes.dsds.edge.ncr.com
     8spec:
     9  group: dsds.edge.ncr.com
    10  names:
    11    kind: PXE
    12    listKind: PXEList
    13    plural: pxes
    14    singular: pxe
    15  scope: Cluster
    16  versions:
    17  - additionalPrinterColumns:
    18    - jsonPath: .metadata.creationTimestamp
    19      name: Age
    20      type: date
    21    name: v1
    22    schema:
    23      openAPIV3Schema:
    24        properties:
    25          apiVersion:
    26            description: |-
    27              APIVersion defines the versioned schema of this representation of an object.
    28              Servers should convert recognized schemas to the latest internal value, and
    29              may reject unrecognized values.
    30              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    31            type: string
    32          kind:
    33            description: |-
    34              Kind is a string value representing the REST resource this object represents.
    35              Servers may infer this from the endpoint the client submits requests to.
    36              Cannot be updated.
    37              In CamelCase.
    38              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    39            type: string
    40          metadata:
    41            type: object
    42          spec:
    43            properties:
    44              suspend:
    45                default: false
    46                description: |-
    47                  Suspend tells the controller to suspend subsequent reconciliations, it
    48                  does not apply to already started reconciliations. Defaults to false
    49                type: boolean
    50            type: object
    51          status:
    52            properties:
    53              conditions:
    54                items:
    55                  description: "Condition contains details for one aspect of the current
    56                    state of this API Resource.\n---\nThis struct is intended for
    57                    direct use as an array at the field path .status.conditions.  For
    58                    example,\n\n\n\ttype FooStatus struct{\n\t    // Represents the
    59                    observations of a foo's current state.\n\t    // Known .status.conditions.type
    60                    are: \"Available\", \"Progressing\", and \"Degraded\"\n\t    //
    61                    +patchMergeKey=type\n\t    // +patchStrategy=merge\n\t    // +listType=map\n\t
    62                    \   // +listMapKey=type\n\t    Conditions []metav1.Condition `json:\"conditions,omitempty\"
    63                    patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
    64                    \   // other fields\n\t}"
    65                  properties:
    66                    lastTransitionTime:
    67                      description: |-
    68                        lastTransitionTime is the last time the condition transitioned from one status to another.
    69                        This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
    70                      format: date-time
    71                      type: string
    72                    message:
    73                      description: |-
    74                        message is a human readable message indicating details about the transition.
    75                        This may be an empty string.
    76                      maxLength: 32768
    77                      type: string
    78                    observedGeneration:
    79                      description: |-
    80                        observedGeneration represents the .metadata.generation that the condition was set based upon.
    81                        For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
    82                        with respect to the current state of the instance.
    83                      format: int64
    84                      minimum: 0
    85                      type: integer
    86                    reason:
    87                      description: |-
    88                        reason contains a programmatic identifier indicating the reason for the condition's last transition.
    89                        Producers of specific condition types may define expected values and meanings for this field,
    90                        and whether the values are considered a guaranteed API.
    91                        The value should be a CamelCase string.
    92                        This field may not be empty.
    93                      maxLength: 1024
    94                      minLength: 1
    95                      pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
    96                      type: string
    97                    status:
    98                      description: status of the condition, one of True, False, Unknown.
    99                      enum:
   100                      - "True"
   101                      - "False"
   102                      - Unknown
   103                      type: string
   104                    type:
   105                      description: |-
   106                        type of condition in CamelCase or in foo.example.com/CamelCase.
   107                        ---
   108                        Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
   109                        useful (see .node.status.conditions), the ability to deconflict is important.
   110                        The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
   111                      maxLength: 316
   112                      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])$
   113                      type: string
   114                  required:
   115                  - lastTransitionTime
   116                  - message
   117                  - reason
   118                  - status
   119                  - type
   120                  type: object
   121                type: array
   122              inventory:
   123                description: Resources managed by PXE
   124                properties:
   125                  entries:
   126                    description: Entries of Kubernetes resource object references.
   127                    items:
   128                      description: ResourceRef contains the information necessary
   129                        to locate a resource within a cluster.
   130                      properties:
   131                        id:
   132                          description: |-
   133                            ID is the string representation of the Kubernetes resource object's metadata,
   134                            in the format '<namespace>_<name>_<group>_<kind>'.
   135                          type: string
   136                        v:
   137                          description: Version is the API version of the Kubernetes
   138                            resource object's kind.
   139                          type: string
   140                      required:
   141                      - id
   142                      - v
   143                      type: object
   144                    type: array
   145                type: object
   146            type: object
   147        type: object
   148    served: true
   149    storage: true
   150    subresources:
   151      status: {}

View as plain text