Skip to content

Commit 819de02

Browse files
authored
Spelling
1 parent ce851a5 commit 819de02

File tree

18 files changed

+51
-51
lines changed

18 files changed

+51
-51
lines changed

CHANGELOG.md

+19-19
Large diffs are not rendered by default.

docs/content/user-guides/crd-acme/k3s.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ node:
2727
volumes:
2828
# this is where you would place a alternative traefik image (saved as a .tar file with
2929
# 'docker save'), if you want to use it, instead of the traefik:v2.6 image.
30-
- /sowewhere/on/your/host/custom-image:/var/lib/rancher/k3s/agent/images
30+
- /somewhere/on/your/host/custom-image:/var/lib/rancher/k3s/agent/images

integration/websocket_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func (s *WebsocketSuite) TestSSLhttp2(c *check.C) {
500500
c.Assert(string(msg), checker.Equals, "OK")
501501
}
502502

503-
func (s *WebsocketSuite) TestHeaderAreForwared(c *check.C) {
503+
func (s *WebsocketSuite) TestHeaderAreForwarded(c *check.C) {
504504
upgrader := gorillawebsocket.Upgrader{} // use default options
505505

506506
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

pkg/config/runtime/runtime_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func TestPopulateUsedBy(t *testing.T) {
144144
},
145145
},
146146
{
147-
desc: "2 different Services each used by a disctinct router.",
147+
desc: "2 different Services each used by a distinct router.",
148148
conf: &runtime.Configuration{
149149
Services: map[string]*runtime.ServiceInfo{
150150
"foo-service@myprovider": {
@@ -384,7 +384,7 @@ func TestPopulateUsedBy(t *testing.T) {
384384
},
385385
},
386386
{
387-
desc: "2 middlewares from 2 disctinct providers both used by 2 Routers",
387+
desc: "2 middlewares from 2 distinct providers both used by 2 Routers",
388388
conf: &runtime.Configuration{
389389
Services: map[string]*runtime.ServiceInfo{
390390
"foo-service@myprovider": {
@@ -593,7 +593,7 @@ func TestPopulateUsedBy(t *testing.T) {
593593
},
594594
},
595595
{
596-
desc: "TCP, 2 different Services each used by a disctinct router.",
596+
desc: "TCP, 2 different Services each used by a distinct router.",
597597
conf: &runtime.Configuration{
598598
TCPServices: map[string]*runtime.TCPServiceInfo{
599599
"foo-service@myprovider": {

pkg/healthcheck/healthcheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type BalancerHandler interface {
4444
}
4545

4646
// BalancerStatusHandler is an http Handler that does load-balancing,
47-
// andupdates its parents of its status.
47+
// and updates its parents of its status.
4848
type BalancerStatusHandler interface {
4949
BalancerHandler
5050
StatusUpdater

pkg/metrics/prometheus.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func initStandardRegistry(config *types.Prometheus) Registry {
131131
Name: configLastReloadFailureName,
132132
Help: "Last config reload failure",
133133
}, []string{})
134-
tlsCertsNotAfterTimesptamp := newGaugeFrom(promState.collectors, stdprometheus.GaugeOpts{
134+
tlsCertsNotAfterTimestamp := newGaugeFrom(promState.collectors, stdprometheus.GaugeOpts{
135135
Name: tlsCertsNotAfterTimestamp,
136136
Help: "Certificate expiration timestamp",
137137
}, []string{"cn", "serial", "sans"})
@@ -141,7 +141,7 @@ func initStandardRegistry(config *types.Prometheus) Registry {
141141
configReloadsFailures.cv.Describe,
142142
lastConfigReloadSuccess.gv.Describe,
143143
lastConfigReloadFailure.gv.Describe,
144-
tlsCertsNotAfterTimesptamp.gv.Describe,
144+
tlsCertsNotAfterTimestamp.gv.Describe,
145145
}
146146

147147
reg := &standardRegistry{
@@ -152,7 +152,7 @@ func initStandardRegistry(config *types.Prometheus) Registry {
152152
configReloadsFailureCounter: configReloadsFailures,
153153
lastConfigReloadSuccessGauge: lastConfigReloadSuccess,
154154
lastConfigReloadFailureGauge: lastConfigReloadFailure,
155-
tlsCertsNotAfterTimestampGauge: tlsCertsNotAfterTimesptamp,
155+
tlsCertsNotAfterTimestampGauge: tlsCertsNotAfterTimestamp,
156156
}
157157

158158
if config.AddEntryPointsLabels {

pkg/middlewares/recovery/recovery_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func TestRecoverHandler(t *testing.T) {
1414
fn := func(w http.ResponseWriter, r *http.Request) {
15-
panic("I love panicing!")
15+
panic("I love panicking!")
1616
}
1717
recovery, err := New(context.Background(), http.HandlerFunc(fn))
1818
require.NoError(t, err)

pkg/middlewares/retry/retry_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ func TestRetry(t *testing.T) {
104104
t.Run(test.desc, func(t *testing.T) {
105105
t.Parallel()
106106

107-
retryAttemps := 0
107+
retryAttempts := 0
108108
next := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
109-
retryAttemps++
109+
retryAttempts++
110110

111-
if retryAttemps > test.amountFaultyEndpoints {
111+
if retryAttempts > test.amountFaultyEndpoints {
112112
// calls WroteHeaders on httptrace.
113113
_ = r.Write(io.Discard)
114114

@@ -275,11 +275,11 @@ func TestRetryWebsocket(t *testing.T) {
275275
t.Run(test.desc, func(t *testing.T) {
276276
t.Parallel()
277277

278-
retryAttemps := 0
278+
retryAttempts := 0
279279
next := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
280-
retryAttemps++
280+
retryAttempts++
281281

282-
if retryAttemps > test.amountFaultyEndpoints {
282+
if retryAttempts > test.amountFaultyEndpoints {
283283
upgrader := websocket.Upgrader{}
284284
_, err := upgrader.Upgrade(rw, r, nil)
285285
if err != nil {

pkg/middlewares/tracing/wrapper.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"github.com/traefik/traefik/v2/pkg/tracing"
1111
)
1212

13-
// Tracable embeds tracing information.
14-
type Tracable interface {
13+
// Traceable embeds tracing information.
14+
type Traceable interface {
1515
GetTracingInformation() (name string, spanKind ext.SpanKindEnum)
1616
}
1717

18-
// Wrap adds tracability to an alice.Constructor.
18+
// Wrap adds traceability to an alice.Constructor.
1919
func Wrap(ctx context.Context, constructor alice.Constructor) alice.Constructor {
2020
return func(next http.Handler) (http.Handler, error) {
2121
if constructor == nil {
@@ -26,8 +26,8 @@ func Wrap(ctx context.Context, constructor alice.Constructor) alice.Constructor
2626
return nil, err
2727
}
2828

29-
if tracableHandler, ok := handler.(Tracable); ok {
30-
name, spanKind := tracableHandler.GetTracingInformation()
29+
if traceableHandler, ok := handler.(Traceable); ok {
30+
name, spanKind := traceableHandler.GetTracingInformation()
3131
log.FromContext(ctx).WithField(log.MiddlewareName, name).Debug("Adding tracing to middleware")
3232
return NewWrapper(handler, name, spanKind), nil
3333
}

pkg/provider/ecs/ecs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,15 @@ func (p *Provider) lookupTaskDefinitions(ctx context.Context, client *awsClient,
454454
// chunkIDs ECS expects no more than 100 parameters be passed to a API call;
455455
// thus, pack each string into an array capped at 100 elements.
456456
func (p *Provider) chunkIDs(ids []*string) [][]*string {
457-
var chuncked [][]*string
457+
var chunked [][]*string
458458
for i := 0; i < len(ids); i += 100 {
459459
var sliceEnd int
460460
if i+100 < len(ids) {
461461
sliceEnd = i + 100
462462
} else {
463463
sliceEnd = len(ids)
464464
}
465-
chuncked = append(chuncked, ids[i:sliceEnd])
465+
chunked = append(chunked, ids[i:sliceEnd])
466466
}
467-
return chuncked
467+
return chunked
468468
}

pkg/provider/kubernetes/crd/fixtures/tcp/with_different_services_ns.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ spec:
2727
weight: 4
2828
# with unknown namespace
2929
- name: whoamitcp
30-
namespace: unknwonns
30+
namespace: unknowns
3131
port: 8080

pkg/provider/kubernetes/crd/fixtures/udp/with_different_services_ns.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ spec:
2626
weight: 4
2727
# with unknown namespace
2828
- name: whoamiudp
29-
namespace: unknwonns
29+
namespace: unknowns
3030
port: 8080

pkg/provider/kubernetes/gateway/fixtures/httproute/gatewayclass_with_unknown_controller.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: gateway.networking.k8s.io/v1alpha2
44
metadata:
55
name: my-gateway-class
66
spec:
7-
controllerName: unkown.io/gateway-controller
7+
controllerName: unknown.io/gateway-controller
88

99
---
1010
kind: Gateway

pkg/provider/kubernetes/gateway/fixtures/tcproute/gatewayclass_with_unknown_controller.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: gateway.networking.k8s.io/v1alpha2
44
metadata:
55
name: my-gateway-class
66
spec:
7-
controllerName: unkown.io/gateway-controller
7+
controllerName: unknown.io/gateway-controller
88

99
---
1010
kind: Gateway

pkg/provider/kubernetes/gateway/fixtures/tlsroute/gatewayclass_with_unknown_controller.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apiVersion: gateway.networking.k8s.io/v1alpha2
1515
metadata:
1616
name: my-gateway-class
1717
spec:
18-
controllerName: unkown.io/gateway-controller
18+
controllerName: unknown.io/gateway-controller
1919

2020
---
2121
kind: Gateway

pkg/server/service/loadbalancer/wrr/wrr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (b *Balancer) Push(x interface{}) {
8686
b.handlers = append(b.handlers, h)
8787
}
8888

89-
// Pop implements heap.Interface for poping an item from the heap.
89+
// Pop implements heap.Interface for popping an item from the heap.
9090
// It panics if b.Len() < 1.
9191
func (b *Balancer) Pop() interface{} {
9292
h := b.handlers[len(b.handlers)-1]

pkg/tcp/chain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func TestAppendRespectsImmutability(t *testing.T) {
144144
newChain := chain.Append(tagMiddleware(""))
145145

146146
if &chain.constructors[0] == &newChain.constructors[0] {
147-
t.Error("Apppend does not respect immutability")
147+
t.Error("Append does not respect immutability")
148148
}
149149
}
150150

webui/src/components/_commons/ChartDoughnut.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
},
1717
watch: {
1818
chartdata: function (newData, oldData) {
19-
// TODO - bug, 'update()' not update the chart, remplace for renderChart()
19+
// TODO - bug, 'update()' not update the chart, replace for renderChart()
2020
// console.log('new data from watcher...', newData, oldData, isEqual(newData.datasets[0].data, oldData.datasets[0].data))
2121
if (!isEqual(newData.datasets[0].data, oldData.datasets[0].data)) {
2222
// this.$data._chart.update()

0 commit comments

Comments
 (0)