-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support deploying SR-IOV network operator
This commit adds Helm chart to sriov-network-operator. - Add this chart as an optional dependency to the main network-operator chart - Add the needed chart files/crds/templates - update README Signed-off-by: Adrian Chiris <adrianc@nvidia.com>
- Loading branch information
1 parent
56faaab
commit 44b6c90
Showing
21 changed files
with
963 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
deployment/network-operator/charts/sriov-network-operator/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
24 changes: 24 additions & 0 deletions
24
deployment/network-operator/charts/sriov-network-operator/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v2 | ||
name: sriov-network-operator | ||
description: | | ||
SR-IOV network operator configures and manages SR-IOV networks in the kubernetes cluster | ||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
appVersion: 0.1.0 |
64 changes: 64 additions & 0 deletions
64
...tor/charts/sriov-network-operator/crds/sriovnetwork.openshift.io_sriovibnetworks_crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: sriovibnetworks.sriovnetwork.openshift.io | ||
spec: | ||
group: sriovnetwork.openshift.io | ||
names: | ||
kind: SriovIBNetwork | ||
listKind: SriovIBNetworkList | ||
plural: sriovibnetworks | ||
singular: sriovibnetwork | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: SriovIBNetwork is the Schema for the sriovibnetworks 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: SriovIBNetworkSpec defines the desired state of SriovIBNetwork | ||
properties: | ||
capabilities: | ||
description: 'Capabilities to be configured for this network. Capabilities | ||
supported: (infinibandGUID), e.g. ''{"infinibandGUID": true}''' | ||
type: string | ||
ipam: | ||
description: IPAM configuration to be used for this network. | ||
type: string | ||
linkState: | ||
description: VF link state (enable|disable|auto) | ||
enum: | ||
- auto | ||
- enable | ||
- disable | ||
type: string | ||
networkNamespace: | ||
description: Namespace of the NetworkAttachmentDefinition custom resource | ||
type: string | ||
resourceName: | ||
description: SRIOV Network device plugin endpoint resource name | ||
type: string | ||
required: | ||
- resourceName | ||
type: object | ||
status: | ||
description: SriovIBNetworkStatus defines the observed state of SriovIBNetwork | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
112 changes: 112 additions & 0 deletions
112
...s/sriov-network-operator/crds/sriovnetwork.openshift.io_sriovnetworknodepolicies_crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: sriovnetworknodepolicies.sriovnetwork.openshift.io | ||
spec: | ||
group: sriovnetwork.openshift.io | ||
names: | ||
kind: SriovNetworkNodePolicy | ||
listKind: SriovNetworkNodePolicyList | ||
plural: sriovnetworknodepolicies | ||
singular: sriovnetworknodepolicy | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: SriovNetworkNodePolicy is the Schema for the sriovnetworknodepolicies | ||
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: SriovNetworkNodePolicySpec defines the desired state of SriovNetworkNodePolicy | ||
properties: | ||
deviceType: | ||
description: The driver type for configured VFs. Allowed value "netdevice", | ||
"vfio-pci". Defaults to netdevice. | ||
enum: | ||
- netdevice | ||
- vfio-pci | ||
type: string | ||
isRdma: | ||
description: RDMA mode. Defaults to false. | ||
type: boolean | ||
linkType: | ||
description: NIC Link Type. Allowed value "eth", "ETH", "ib", and | ||
"IB". | ||
enum: | ||
- eth | ||
- ETH | ||
- ib | ||
- IB | ||
type: string | ||
mtu: | ||
description: MTU of VF | ||
minimum: 1 | ||
type: integer | ||
nicSelector: | ||
description: NicSelector selects the NICs to be configured | ||
properties: | ||
deviceID: | ||
description: The device hex code of SR-IoV device. Allowed value | ||
"158b", "1015", "1017". | ||
type: string | ||
pfNames: | ||
description: Name of SR-IoV PF. | ||
items: | ||
type: string | ||
type: array | ||
rootDevices: | ||
description: PCI address of SR-IoV PF. | ||
items: | ||
type: string | ||
type: array | ||
vendor: | ||
description: The vendor hex code of SR-IoV device. Allowed value | ||
"8086", "15b3". | ||
type: string | ||
type: object | ||
nodeSelector: | ||
additionalProperties: | ||
type: string | ||
description: NodeSelector selects the nodes to be configured | ||
type: object | ||
numVfs: | ||
description: Number of VFs for each PF | ||
minimum: 0 | ||
type: integer | ||
priority: | ||
description: Priority of the policy, higher priority policies can | ||
override lower ones. | ||
maximum: 99 | ||
minimum: 0 | ||
type: integer | ||
resourceName: | ||
description: SRIOV Network device plugin endpoint resource name | ||
type: string | ||
required: | ||
- nicSelector | ||
- nodeSelector | ||
- numVfs | ||
- resourceName | ||
type: object | ||
status: | ||
description: SriovNetworkNodePolicyStatus defines the observed state of | ||
SriovNetworkNodePolicy | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.