...

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

View as plain text