all: fix typos discovered by codespell

```
codespell --skip .git | less
```

See https://github.com/codespell-project/codespell

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
This commit is contained in:
Alexander Yastrebov 2023-06-12 11:48:39 +02:00
parent ffcbfcee48
commit 16ec43c361
10 changed files with 17 additions and 17 deletions

View File

@ -50,7 +50,7 @@ contribution is in line with our goals.
- Make sure you sign-off on your commits `git commit -s -m "adding X to change Y"` - Make sure you sign-off on your commits `git commit -s -m "adding X to change Y"`
- Write good commit messages (see below). - Write good commit messages (see below).
- Push your changes to a topic branch in your fork of the repository. - Push your changes to a topic branch in your fork of the repository.
- As you push your changes, update the pull request with new infomation and tasks as you complete them - As you push your changes, update the pull request with new information and tasks as you complete them
- Project maintainers might comment on your work as you progress - Project maintainers might comment on your work as you progress
- When you are done, remove the `work in progess` label and ping the maintainers for a review - When you are done, remove the `work in progess` label and ping the maintainers for a review
- Your pull request must receive a :thumbsup: from two [maintainers](MAINTAINERS) - Your pull request must receive a :thumbsup: from two [maintainers](MAINTAINERS)

View File

@ -449,7 +449,7 @@ spec:
``` ```
### Multiple hostnames per metric ### Multiple hostnames per metric
This metric supports a relation of n:1 between hostnames and metrics. The way it works is the measured RPS is the sum of the RPS rate of each of the specified hostnames. This value is further modified by the weight parameter explained bellow. This metric supports a relation of n:1 between hostnames and metrics. The way it works is the measured RPS is the sum of the RPS rate of each of the specified hostnames. This value is further modified by the weight parameter explained below.
### Metric weighting based on backend ### Metric weighting based on backend

View File

@ -56,7 +56,7 @@ spec:
properties: properties:
date: date:
description: Defines the starting date of a OneTime schedule. description: Defines the starting date of a OneTime schedule.
It has to be a RFC3339 formated date. It has to be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
durationMinutes: durationMinutes:
@ -65,7 +65,7 @@ spec:
type: integer type: integer
endDate: endDate:
description: Defines the ending date of a OneTime schedule. description: Defines the ending date of a OneTime schedule.
It must be a RFC3339 formated date. It must be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
period: period:

View File

@ -56,7 +56,7 @@ spec:
properties: properties:
date: date:
description: Defines the starting date of a OneTime schedule. description: Defines the starting date of a OneTime schedule.
It has to be a RFC3339 formated date. It has to be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
durationMinutes: durationMinutes:
@ -65,7 +65,7 @@ spec:
type: integer type: integer
endDate: endDate:
description: Defines the ending date of a OneTime schedule. description: Defines the ending date of a OneTime schedule.
It must be a RFC3339 formated date. It must be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
period: period:

View File

@ -58,7 +58,7 @@ spec:
properties: properties:
date: date:
description: Defines the starting date of a OneTime schedule. description: Defines the starting date of a OneTime schedule.
It has to be a RFC3339 formated date. It has to be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
durationMinutes: durationMinutes:
@ -67,7 +67,7 @@ spec:
type: integer type: integer
endDate: endDate:
description: Defines the ending date of a OneTime schedule. description: Defines the ending date of a OneTime schedule.
It must be a RFC3339 formated date. It must be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
period: period:

View File

@ -58,7 +58,7 @@ spec:
properties: properties:
date: date:
description: Defines the starting date of a OneTime schedule. description: Defines the starting date of a OneTime schedule.
It has to be a RFC3339 formated date. It has to be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
durationMinutes: durationMinutes:
@ -67,7 +67,7 @@ spec:
type: integer type: integer
endDate: endDate:
description: Defines the ending date of a OneTime schedule. description: Defines the ending date of a OneTime schedule.
It must be a RFC3339 formated date. It must be a RFC3339 formatted date.
format: date-time format: date-time
type: string type: string
period: period:

View File

@ -68,11 +68,11 @@ type Schedule struct {
// +optional // +optional
Period *SchedulePeriod `json:"period,omitempty"` Period *SchedulePeriod `json:"period,omitempty"`
// Defines the starting date of a OneTime schedule. It has to // Defines the starting date of a OneTime schedule. It has to
// be a RFC3339 formated date. // be a RFC3339 formatted date.
// +optional // +optional
Date *ScheduleDate `json:"date,omitempty"` Date *ScheduleDate `json:"date,omitempty"`
// Defines the ending date of a OneTime schedule. It must be // Defines the ending date of a OneTime schedule. It must be
// a RFC3339 formated date. // a RFC3339 formatted date.
// +optional // +optional
EndDate *ScheduleDate `json:"endDate,omitempty"` EndDate *ScheduleDate `json:"endDate,omitempty"`
// The duration in minutes (default 0) that the configured value will be // The duration in minutes (default 0) that the configured value will be

View File

@ -61,10 +61,10 @@ func TestTargetRefReplicasStatefulSets(t *testing.T) {
require.Equal(t, statefulSet.Status.Replicas, replicas) require.Equal(t, statefulSet.Status.Replicas, replicas)
} }
func newHPA(namesapce string, refName string, refKind string) *autoscalingv2.HorizontalPodAutoscaler { func newHPA(namespace string, refName string, refKind string) *autoscalingv2.HorizontalPodAutoscaler {
return &autoscalingv2.HorizontalPodAutoscaler{ return &autoscalingv2.HorizontalPodAutoscaler{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Name: namesapce, Name: namespace,
}, },
Spec: autoscalingv2.HorizontalPodAutoscalerSpec{ Spec: autoscalingv2.HorizontalPodAutoscalerSpec{
ScaleTargetRef: autoscalingv2.CrossVersionObjectReference{ ScaleTargetRef: autoscalingv2.CrossVersionObjectReference{

View File

@ -363,7 +363,7 @@ func collectorRunner(ctx context.Context, collector collector.Collector, metrics
} }
} }
// Remove removes a collector from the Collector schduler. The collector is // Remove removes a collector from the Collector scheduler. The collector is
// stopped before it's removed. // stopped before it's removed.
func (t *CollectorScheduler) Remove(resourceRef resourceReference) { func (t *CollectorScheduler) Remove(resourceRef resourceReference) {
t.Lock() t.Lock()

View File

@ -332,7 +332,7 @@ func (o AdapterServerOptions) RunCustomMetricsAdapterServer(stopCh <-chan struct
return fmt.Errorf("failed to register ScalingSchedule object collector plugin: %v", err) return fmt.Errorf("failed to register ScalingSchedule object collector plugin: %v", err)
} }
// setup ScheduledScaling controller to continously update // setup ScheduledScaling controller to continuously update
// status of ScalingSchedule and ClusterScalingSchedule // status of ScalingSchedule and ClusterScalingSchedule
// resources. // resources.
scheduledScalingController := scheduledscaling.NewController(scalingScheduleClient.ZalandoV1(), scalingSchedulesStore, clusterScalingSchedulesStore, time.Now, o.DefaultScheduledScalingWindow, o.DefaultTimeZone) scheduledScalingController := scheduledscaling.NewController(scalingScheduleClient.ZalandoV1(), scalingSchedulesStore, clusterScalingSchedulesStore, time.Now, o.DefaultScheduledScalingWindow, o.DefaultTimeZone)
@ -400,7 +400,7 @@ func newOauth2HTTPClient(ctx context.Context, tokenSource oauth2.TokenSource) *h
// add HTTP client to context (this is how the oauth2 lib gets it). // add HTTP client to context (this is how the oauth2 lib gets it).
ctx = context.WithValue(ctx, oauth2.HTTPClient, client) ctx = context.WithValue(ctx, oauth2.HTTPClient, client)
// instantiate an http.Client containg the token source. // instantiate an http.Client containing the token source.
return oauth2.NewClient(ctx, tokenSource) return oauth2.NewClient(ctx, tokenSource)
} }