Skip to content

Commit

Permalink
Fix typo NetworkAttachementDefinition
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Karis <[email protected]>
  • Loading branch information
andreaskaris committed Sep 22, 2023
1 parent 2097c2a commit a42a00d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions api/v1/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion doc/ovs-hw-offload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion doc/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion doc/vdpa.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a42a00d

Please sign in to comment.