apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: iperves.iperf.managed.openshift.io
spec:
  group: iperf.managed.openshift.io
  names:
    kind: Iperf
    listKind: IperfList
    plural: iperves
    singular: iperf
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: Iperf is the Schema for the iperves API
        properties:
          apiVersion:
            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'
            type: string
          kind:
            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'
            type: string
          metadata:
            type: object
          spec:
            description: IperfSpec defines the desired state of Iperf
            properties:
              clientNum:
                description: ClientNum Number of clients, should not exceed number
                  of nodes (default == number of nodes)
                type: integer
              parallelConnections:
                description: ParallelConnections Total number of connections from
                  client to server (divided equally between num of clients)
                type: integer
              serverNum:
                description: ServerNum Number of servers, should not exceed number
                  of nodes (default 1)
                type: integer
              sessionDuration:
                description: SessionDuration duration in minutes for the test to run
                type: integer
              targetBandwidth:
                description: TargetBandwidth target bandwidth in Mbits per second
                  (divided equally between num of clients and parallel connections)
                type: integer
            required:
            - parallelConnections
            - sessionDuration
            type: object
          status:
            description: IperfStatus defines the observed state of Iperf
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
