Skip to content

Commit d2c218b

Browse files
committed
Fix automatically found typos
Found using the following command: codespell -S .git,./calico/js,./felix/bpf-gpl/include/libbpf,./.go-pkg-cache,./calico/_site,./calico/_sass,./go.sum,./calico/fonts/font-awesome/fontawesome-webfont.svg -L aks,mmaped,wan,merchantibility,unknwon,synching,parms,fo,ba,mke,buil,parm,nin,auto-detetion,inout,benchs,quater,cnat,afe,wrkload,keypairs -f -H I have checked all of them by hand and they all seem reasonable and seem not related to e.g. British vs US spelling. I'm not native speaker though. I think I also didn't touch 3rd party, as they should be excluded from spell checking and fixed at source instead. Signed-off-by: Mateusz Gozdek <[email protected]>
1 parent 4267873 commit d2c218b

File tree

121 files changed

+164
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+164
-164
lines changed

api/pkg/apis/projectcalico/v3/felixconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ type FelixConfigurationSpec struct {
367367
BPFExternalServiceMode string `json:"bpfExternalServiceMode,omitempty" validate:"omitempty,bpfServiceMode"`
368368
// BPFExtToServiceConnmark in BPF mode, control a 32bit mark that is set on connections from an
369369
// external client to a local service. This mark allows us to control how packets of that
370-
// connection are routed within the host and how is routing intepreted by RPF check. [Default: 0]
370+
// connection are routed within the host and how is routing interpreted by RPF check. [Default: 0]
371371
BPFExtToServiceConnmark *int `json:"bpfExtToServiceConnmark,omitempty" validate:"omitempty,gte=0,lte=4294967295"`
372372
// BPFKubeProxyIptablesCleanupEnabled, if enabled in BPF mode, Felix will proactively clean up the upstream
373373
// Kubernetes kube-proxy's iptables chains. Should only be enabled if kube-proxy is not running. [Default: true]

api/pkg/openapi/openapi_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apiserver/pkg/printers/projectcalico/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
// This file contains helper functions for projectcalico printer package.
2626

27-
// The followings are helper functions copied from k8s.io/kubernetes
27+
// The following are helper functions copied from k8s.io/kubernetes
2828

2929
// translateTimestampSince returns the elapsed time since timestamp in
3030
// human-readable approximation.

apiserver/pkg/storage/calico/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func decode(
360360
// })
361361
func (rs *resourceStore) GuaranteedUpdate(
362362
ctx context.Context, key string, out runtime.Object, ignoreNotFound bool,
363-
precondtions *storage.Preconditions, userUpdate storage.UpdateFunc, cachedExistingObject runtime.Object) error {
363+
preconditions *storage.Preconditions, userUpdate storage.UpdateFunc, cachedExistingObject runtime.Object) error {
364364
klog.V(6).Infof("GuaranteedUpdate called with key: %v on resource %v\n", key, rs.resourceName)
365365
// If a cachedExistingObject was passed, use that as the initial object, otherwise use Get() to retrieve it
366366
var initObj runtime.Object
@@ -392,7 +392,7 @@ func (rs *resourceStore) GuaranteedUpdate(
392392
for totalLoopCount < 5 {
393393
totalLoopCount++
394394

395-
if err := checkPreconditions(key, precondtions, curState.obj); err != nil {
395+
if err := checkPreconditions(key, preconditions, curState.obj); err != nil {
396396
klog.Errorf("checking preconditions (%s)", err)
397397
return err
398398
}

apiserver/test/integration/clientset_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ func testHostEndpointClient(client calicoclient.Interface, name string) error {
558558
case e := <-w.ResultChan():
559559
events = append(events, e)
560560
case <-timeout:
561-
timeoutErr = fmt.Errorf("timed out wating for events")
561+
timeoutErr = fmt.Errorf("timed out waiting for events")
562562
return
563563
}
564564
}
@@ -1115,7 +1115,7 @@ func testKubeControllersConfigurationClient(client calicoclient.Interface) error
11151115
case e := <-w.ResultChan():
11161116
events = append(events, e)
11171117
case <-timeout:
1118-
timeoutErr = fmt.Errorf("timed out wating for events")
1118+
timeoutErr = fmt.Errorf("timed out waiting for events")
11191119
return
11201120
}
11211121
}

app-policy/policystore/ipset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type ipNetSet struct {
109109
v6 *trieNode
110110
}
111111

112-
// trieNode implments a modified trie. We use a traditional trie to store the network prefixes. For IP addresses, we
112+
// trieNode implements a modified trie. We use a traditional trie to store the network prefixes. For IP addresses, we
113113
// use the trie down to the last 8-bits, but then switch to a bitmap after that. This is because we expect a large
114114
// number of IPs, so don't want to balloon the bottom tier of the tree.
115115
type trieNode struct {

calico/DOC_STYLE_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ before exiting the server."
439439
**Tip**: In technical documentation, the word "ensure" is usually
440440
the right choice.
441441
442-
The word "insure" shuld only be used in relation to actual insurers
442+
The word "insure" should only be used in relation to actual insurers
443443
and insurance policies.
444444
445445
### data

calico/_plugins/tabs.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<<-EXAMPLE
55
tabs can be generated using
66
{% tabs %}
7-
**Note: tabs are linked to a predifined group named `default`, using `tab-group`
7+
**Note: tabs are linked to a predefined group named `default`, using `tab-group`
88
you can define multiple linked tab groups.**
99
@input tab-group optional, string
1010
@input type optional, pill|tabs
@@ -46,7 +46,7 @@ def initialize(tag_name, text, tokens)
4646

4747
# function checks mandatory items that are needed to implement tabs
4848
def checkMandatories(items)
49-
# exception handeling if user not gave any id
49+
# exception handling if user not gave any id
5050
if items.key?("id") == false || items["id"].match(IdPattern) == false
5151
items["id"] = "tabplugin-#{$idInc}"
5252
$idInc += 1
@@ -74,7 +74,7 @@ def render(context)
7474
# content: <% content %>
7575
tmpdata = text.scan(/<(.*?)>(?:.*?)<\%(.*?)\%>/m)
7676

77-
# registering tab_group flag used in `_layouts/docwithnav.html` to decied
77+
# registering tab_group flag used in `_layouts/docwithnav.html` to decide
7878
# when to include js/tabs.js in a page.
7979
context.registers[:page]["tab_group"] = true
8080

calico/getting-started/kubernetes/flannel/migration-from-flannel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ There are two ways to switch your cluster to use {{site.prodname}} networking. B
2929

3030
- **Create a new cluster using {{site.prodname}} and migrate existing workloads**
3131

32-
If you have the ability to migrate worloads from one cluster to the next without caring about downtime, this is the easiest method: [create a new cluster using {{site.prodname}}]({{site.baseurl}}/getting-started/kubernetes/quickstart).
32+
If you have the ability to migrate workloads from one cluster to the next without caring about downtime, this is the easiest method: [create a new cluster using {{site.prodname}}]({{site.baseurl}}/getting-started/kubernetes/quickstart).
3333

3434
- **Live migration on an existing cluster**
3535

calico/getting-started/kubernetes/managed-public-cloud/eks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The geeky details of what you get:
3030
> **Note**: {{site.prodname}} networking cannot currently be installed on the EKS control plane nodes. As a result the control plane nodes
3131
> will not be able to initiate network connections to {{site.prodname}} pods. (This is a general limitation of EKS's custom networking support,
3232
> not specific to {{site.prodname}}.) As a workaround, trusted pods that require control plane nodes to connect to them, such as those implementing
33-
> admission controller webhooks, can include `hostNetwork:true` in their pod spec. See the Kuberentes API
33+
> admission controller webhooks, can include `hostNetwork:true` in their pod spec. See the Kubernetes API
3434
> {% include open-new-window.html text='pod spec' url='https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#podspec-v1-core' %}
3535
> definition for more information on this setting.
3636
{: .alert .alert-info }

0 commit comments

Comments
 (0)