diff --git a/api/v1/helper.go b/api/v1/helper.go index bdaa71a36..5bd845607 100644 --- a/api/v1/helper.go +++ b/api/v1/helper.go @@ -482,8 +482,8 @@ func (s *SriovNetworkNodeState) GetDriverByPciAddress(addr string) string { // RenderNetAttDef renders a net-att-def for ib-sriov CNI func (cr *SriovIBNetwork) RenderNetAttDef() (*uns.Unstructured, error) { - logger := log.WithName("renderNetAttDef") - logger.Info("Start to render IB SRIOV CNI NetworkAttachementDefinition") + logger := log.WithName("RenderNetAttDef") + logger.Info("Start to render IB SRIOV CNI NetworkAttachmentDefinition") // render RawCNIConfig manifests data := render.MakeRenderData() @@ -534,7 +534,7 @@ func (cr *SriovIBNetwork) RenderNetAttDef() (*uns.Unstructured, error) { } for _, obj := range objs { raw, _ := json.Marshal(obj) - logger.Info("render NetworkAttachementDefinition output", "raw", string(raw)) + logger.Info("render NetworkAttachmentDefinition output", "raw", string(raw)) } return objs[0], nil } @@ -563,8 +563,8 @@ func (cr *SriovIBNetwork) DeleteNetAttDef(c client.Client) error { // RenderNetAttDef renders a net-att-def for sriov CNI func (cr *SriovNetwork) RenderNetAttDef() (*uns.Unstructured, error) { - logger := log.WithName("renderNetAttDef") - logger.Info("Start to render SRIOV CNI NetworkAttachementDefinition") + logger := log.WithName("RenderNetAttDef") + logger.Info("Start to render SRIOV CNI NetworkAttachmentDefinition") // render RawCNIConfig manifests data := render.MakeRenderData() @@ -658,7 +658,7 @@ func (cr *SriovNetwork) RenderNetAttDef() (*uns.Unstructured, error) { } for _, obj := range objs { raw, _ := json.Marshal(obj) - logger.Info("render NetworkAttachementDefinition output", "raw", string(raw)) + logger.Info("render NetworkAttachmentDefinition output", "raw", string(raw)) } return objs[0], nil } diff --git a/doc/ovs-hw-offload.md b/doc/ovs-hw-offload.md index b9be9d836..1c2115239 100644 --- a/doc/ovs-hw-offload.md +++ b/doc/ovs-hw-offload.md @@ -48,7 +48,7 @@ spec: linkType: eth ``` -### Create NetworkAttachementDefinition CRD with OVS CNI config +### Create NetworkAttachmentDefinition CRD with OVS CNI config ```yaml apiVersion: "k8s.cni.cncf.io/v1" diff --git a/doc/quickstart.md b/doc/quickstart.md index a3c5d3ead..bd28a33dd 100644 --- a/doc/quickstart.md +++ b/doc/quickstart.md @@ -218,7 +218,7 @@ $ kubectl get no -o json | jq -r '[.items[] | {name:.metadata.name, allocable:.s ] ``` -Now you can create a SriovNetwork CR which refer to the 'resourceName' defined in SriovNetworkNodePolicy. Then a NetworkAttachementDefinition CR will be generated by operator with the same name and namespace. +Now you can create a SriovNetwork CR which refer to the 'resourceName' defined in SriovNetworkNodePolicy. Then a NetworkAttachmentDefinition CR will be generated by operator with the same name and namespace. Here is an example: diff --git a/doc/vdpa.md b/doc/vdpa.md index cbb422081..e15356b84 100644 --- a/doc/vdpa.md +++ b/doc/vdpa.md @@ -49,7 +49,7 @@ spec: vdpaType: virtio ``` -### Create NetworkAttachementDefinition CRD with OVN-K CNI config +### Create NetworkAttachmentDefinition CRD with OVN-K CNI config ```yaml apiVersion: "k8s.cni.cncf.io/v1"