...

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

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

     1---
     2apiVersion: apiextensions.k8s.io/v1
     3kind: CustomResourceDefinition
     4metadata:
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7  name: couchdbdesigndocs.datasync.edge.ncr.com
     8spec:
     9  group: datasync.edge.ncr.com
    10  names:
    11    kind: CouchDBDesignDoc
    12    listKind: CouchDBDesignDocList
    13    plural: couchdbdesigndocs
    14    singular: couchdbdesigndoc
    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    name: v1alpha1
    25    schema:
    26      openAPIV3Schema:
    27        properties:
    28          apiVersion:
    29            description: |-
    30              APIVersion defines the versioned schema of this representation of an object.
    31              Servers should convert recognized schemas to the latest internal value, and
    32              may reject unrecognized values.
    33              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    34            type: string
    35          kind:
    36            description: |-
    37              Kind is a string value representing the REST resource this object represents.
    38              Servers may infer this from the endpoint the client submits requests to.
    39              Cannot be updated.
    40              In CamelCase.
    41              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    42            type: string
    43          metadata:
    44            type: object
    45          spec:
    46            description: CouchDBDesignDocSpec schema from https://docs.couchdb.org/en/stable/ddocs/ddocs.html#creation-and-structure
    47            properties:
    48              db:
    49                type: string
    50              filters:
    51                additionalProperties:
    52                  additionalProperties:
    53                    type: string
    54                  type: object
    55                type: object
    56              id:
    57                type: string
    58              interval:
    59                description: |-
    60                  Interval is how often the object will be reconciled, in order to prevent
    61                  drift.
    62                type: string
    63              language:
    64                default: javascript
    65                type: string
    66              retryInterval:
    67                description: |-
    68                  RetryInterval is how often to retry previously failed reconciliations. Defaults
    69                  to Interval if not provided.
    70                type: string
    71              updates:
    72                additionalProperties:
    73                  additionalProperties:
    74                    type: string
    75                  type: object
    76                type: object
    77              validateDocUpdate:
    78                type: string
    79              views:
    80                additionalProperties:
    81                  additionalProperties:
    82                    type: string
    83                  type: object
    84                type: object
    85            required:
    86            - db
    87            - id
    88            type: object
    89          status:
    90            properties:
    91              conditions:
    92                items:
    93                  description: "Condition contains details for one aspect of the current
    94                    state of this API Resource.\n---\nThis struct is intended for
    95                    direct use as an array at the field path .status.conditions.  For
    96                    example,\n\n\n\ttype FooStatus struct{\n\t    // Represents the
    97                    observations of a foo's current state.\n\t    // Known .status.conditions.type
    98                    are: \"Available\", \"Progressing\", and \"Degraded\"\n\t    //
    99                    +patchMergeKey=type\n\t    // +patchStrategy=merge\n\t    // +listType=map\n\t
   100                    \   // +listMapKey=type\n\t    Conditions []metav1.Condition `json:\"conditions,omitempty\"
   101                    patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
   102                    \   // other fields\n\t}"
   103                  properties:
   104                    lastTransitionTime:
   105                      description: |-
   106                        lastTransitionTime is the last time the condition transitioned from one status to another.
   107                        This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
   108                      format: date-time
   109                      type: string
   110                    message:
   111                      description: |-
   112                        message is a human readable message indicating details about the transition.
   113                        This may be an empty string.
   114                      maxLength: 32768
   115                      type: string
   116                    observedGeneration:
   117                      description: |-
   118                        observedGeneration represents the .metadata.generation that the condition was set based upon.
   119                        For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
   120                        with respect to the current state of the instance.
   121                      format: int64
   122                      minimum: 0
   123                      type: integer
   124                    reason:
   125                      description: |-
   126                        reason contains a programmatic identifier indicating the reason for the condition's last transition.
   127                        Producers of specific condition types may define expected values and meanings for this field,
   128                        and whether the values are considered a guaranteed API.
   129                        The value should be a CamelCase string.
   130                        This field may not be empty.
   131                      maxLength: 1024
   132                      minLength: 1
   133                      pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
   134                      type: string
   135                    status:
   136                      description: status of the condition, one of True, False, Unknown.
   137                      enum:
   138                      - "True"
   139                      - "False"
   140                      - Unknown
   141                      type: string
   142                    type:
   143                      description: |-
   144                        type of condition in CamelCase or in foo.example.com/CamelCase.
   145                        ---
   146                        Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
   147                        useful (see .node.status.conditions), the ability to deconflict is important.
   148                        The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
   149                      maxLength: 316
   150                      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])$
   151                      type: string
   152                  required:
   153                  - lastTransitionTime
   154                  - message
   155                  - reason
   156                  - status
   157                  - type
   158                  type: object
   159                type: array
   160              observedGeneration:
   161                format: int64
   162                type: integer
   163            type: object
   164        type: object
   165    served: true
   166    storage: true
   167    subresources:
   168      status: {}

View as plain text