github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/config/crd/bases/sriovnetwork.openshift.io_sriovnetworknodepolicies.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      controller-gen.kubebuilder.io/version: v0.9.0
     7    creationTimestamp: null
     8    name: sriovnetworknodepolicies.sriovnetwork.openshift.io
     9  spec:
    10    group: sriovnetwork.openshift.io
    11    names:
    12      kind: SriovNetworkNodePolicy
    13      listKind: SriovNetworkNodePolicyList
    14      plural: sriovnetworknodepolicies
    15      singular: sriovnetworknodepolicy
    16    scope: Namespaced
    17    versions:
    18    - name: v1
    19      schema:
    20        openAPIV3Schema:
    21          description: SriovNetworkNodePolicy is the Schema for the sriovnetworknodepolicies
    22            API
    23          properties:
    24            apiVersion:
    25              description: 'APIVersion defines the versioned schema of this representation
    26                of an object. Servers should convert recognized schemas to the latest
    27                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    28              type: string
    29            kind:
    30              description: 'Kind is a string value representing the REST resource this
    31                object represents. Servers may infer this from the endpoint the client
    32                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    33              type: string
    34            metadata:
    35              type: object
    36            spec:
    37              description: SriovNetworkNodePolicySpec defines the desired state of SriovNetworkNodePolicy
    38              properties:
    39                deviceType:
    40                  default: netdevice
    41                  description: The driver type for configured VFs. Allowed value "netdevice",
    42                    "vfio-pci". Defaults to netdevice.
    43                  enum:
    44                  - netdevice
    45                  - vfio-pci
    46                  type: string
    47                eSwitchMode:
    48                  description: NIC Device Mode. Allowed value "legacy","switchdev".
    49                  enum:
    50                  - legacy
    51                  - switchdev
    52                  type: string
    53                excludeTopology:
    54                  description: Exclude device's NUMA node when advertising this resource
    55                    by SRIOV network device plugin. Default to false.
    56                  type: boolean
    57                externallyManaged:
    58                  description: don't create the virtual function only allocated them
    59                    to the device plugin. Defaults to false.
    60                  type: boolean
    61                isRdma:
    62                  description: RDMA mode. Defaults to false.
    63                  type: boolean
    64                linkType:
    65                  description: NIC Link Type. Allowed value "eth", "ETH", "ib", and
    66                    "IB".
    67                  enum:
    68                  - eth
    69                  - ETH
    70                  - ib
    71                  - IB
    72                  type: string
    73                mtu:
    74                  description: MTU of VF
    75                  minimum: 1
    76                  type: integer
    77                needVhostNet:
    78                  description: mount vhost-net device. Defaults to false.
    79                  type: boolean
    80                nicSelector:
    81                  description: NicSelector selects the NICs to be configured
    82                  properties:
    83                    deviceID:
    84                      description: The device hex code of SR-IoV device. Allowed value
    85                        "0d58", "1572", "158b", "1013", "1015", "1017", "101b".
    86                      type: string
    87                    netFilter:
    88                      description: Infrastructure Networking selection filter. Allowed
    89                        value "openstack/NetworkID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    90                      type: string
    91                    pfNames:
    92                      description: Name of SR-IoV PF.
    93                      items:
    94                        type: string
    95                      type: array
    96                    rootDevices:
    97                      description: PCI address of SR-IoV PF.
    98                      items:
    99                        type: string
   100                      type: array
   101                    vendor:
   102                      description: The vendor hex code of SR-IoV device. Allowed value
   103                        "8086", "15b3".
   104                      type: string
   105                  type: object
   106                nodeSelector:
   107                  additionalProperties:
   108                    type: string
   109                  description: NodeSelector selects the nodes to be configured
   110                  type: object
   111                numVfs:
   112                  description: Number of VFs for each PF
   113                  minimum: 0
   114                  type: integer
   115                priority:
   116                  description: Priority of the policy, higher priority policies can
   117                    override lower ones.
   118                  maximum: 99
   119                  minimum: 0
   120                  type: integer
   121                resourceName:
   122                  description: SRIOV Network device plugin endpoint resource name
   123                  type: string
   124                vdpaType:
   125                  description: VDPA device type. Allowed value "virtio", "vhost"
   126                  enum:
   127                  - virtio
   128                  - vhost
   129                  type: string
   130              required:
   131              - nicSelector
   132              - nodeSelector
   133              - numVfs
   134              - resourceName
   135              type: object
   136            status:
   137              description: SriovNetworkNodePolicyStatus defines the observed state of
   138                SriovNetworkNodePolicy
   139              type: object
   140          type: object
   141      served: true
   142      storage: true
   143      subresources:
   144        status: {}