From 894e5eae66a432fcb47e958bfb8e3dc5f1be4235 Mon Sep 17 00:00:00 2001 From: guoguodan <58167141+guoguodan@users.noreply.github.com> Date: Thu, 25 May 2023 19:54:35 +0800 Subject: [PATCH] Update genie-controller.go edit error word: defintion -> definition --- genie/genie-controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genie/genie-controller.go b/genie/genie-controller.go index 01ac132d..36c2bfe8 100755 --- a/genie/genie-controller.go +++ b/genie/genie-controller.go @@ -123,7 +123,7 @@ func ParseCNIConf(confData []byte) (*utils.GenieConf, error) { // AddPodNetwork adds pod networking. It has logic to parse each pod // definition's annotations. It looks for container networking solutions (CNS) -// types passed as annotation in pod defintion. For every CNS types, it talks +// types passed as annotation in pod definition. For every CNS types, it talks // to corresponding CNS object and fetches an IP from it's IPAM. // It also applies the IP as ethX inside the pod. func (gc *GenieController) AddPodNetwork(cniArgs *utils.CNIArgs, conf *utils.GenieConf) (types.Result, error) { @@ -194,7 +194,7 @@ func (gc *GenieController) AddPodNetwork(cniArgs *utils.CNIArgs, conf *utils.Gen // DeletePodNetwork deletes pod networking. It has logic to parse each pod // definition's annotations. It looks for container networking solutions (CNS) -// types passed as annotation in pod defintion. For every CNS types, it talks +// types passed as annotation in pod definition. For every CNS types, it talks // to corresponding CNS object and releases an IP from it's IPAM. func (gc *GenieController) DeletePodNetwork(cniArgs *utils.CNIArgs, conf *utils.GenieConf) error { k8sArgs, err := loadArgs(cniArgs) @@ -604,7 +604,7 @@ func (gc *GenieController) loadPluginConfig(plugin string) (*libcni.NetworkConfi return config, nil } -// parseCNIAnnotations parses pod yaml defintion for "cni" annotations. +// parseCNIAnnotations parses pod yaml definition for "cni" annotations. func (gc *GenieController) parseCNIAnnotations(annot map[string]string, k8sArgs *utils.K8sArgs, conf *utils.GenieConf) ([]*utils.PluginInfo, error) { var finalPluginInfos []*utils.PluginInfo var err error