...

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

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

     1apiVersion: apiextensions.k8s.io/v1
     2kind: CustomResourceDefinition
     3metadata:
     4  name: workloads.edge.ncr.com
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7spec:
     8  group: edge.ncr.com
     9  names:
    10    kind: Workload
    11    listKind: WorkloadList
    12    plural: workloads
    13    singular: workload
    14  scope: Namespaced
    15  versions:
    16  - name: v1alpha1
    17    schema:
    18      openAPIV3Schema:
    19        type: object
    20        description: Workload is the Schema for the workloads API
    21        properties:
    22          apiVersion:
    23            type: string
    24            description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    25          kind:
    26            type: string
    27            description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    28          metadata:
    29            type: object
    30          spec:
    31            type: object
    32            description: WorkloadSpec represents an application managed by Edge
    33            properties:
    34              type:
    35                type: string
    36                description: Type is what is the kind of the workload
    37              interval:
    38                type: string
    39                description: 'Interval is how often the status check is performed Example values: 1m for 1 minute, 2h for 2 hours'
    40              url:
    41                type: string
    42                description: URL is the status endpoint for VM workloads, empty for Kubernetes workloads
    43              workloadObject:
    44                type: object
    45                description: WorkloadObjectRef is the reference to the k8s object to watch
    46                properties:
    47                  name:
    48                    type: string
    49                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
    50                  namespace:
    51                    type: string
    52                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
    53                  apiVersion:
    54                    type: string
    55                    description: API version of the referent.
    56                  kind:
    57                    type: string
    58                    description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    59                  fieldPath:
    60                    type: string
    61                    description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
    62                  resourceVersion:
    63                    type: string
    64                    description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
    65                  uid:
    66                    type: string
    67                    description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
    68            required:
    69            - interval
    70            - type
    71          status:
    72            type: object
    73            description: WorkloadStatus defines the observed state of Workload
    74            properties:
    75              status:
    76                type: string
    77              message:
    78                type: string
    79              source:
    80                type: string
    81    served: true
    82    storage: true
    83    subresources:
    84      status: {}

View as plain text