Skip to content

Commit 2d299b7

Browse files
committed
Fix typos
Found via `codespell -S CHANGELOG.md,*.json,*.unprocessed -L querys,couldn`
1 parent 13988e4 commit 2d299b7

17 files changed

+21
-21
lines changed

doc/source/usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here is a simple usage of creating a deployment from a yaml file:
1414
.. literalinclude:: ../../examples/create_deployment.py
1515

1616

17-
The following example demostrates how to create, update and delete deployments
17+
The following example demonstrates how to create, update and delete deployments
1818
without the need to read a file from the disk:
1919

2020
.. literalinclude:: ../../examples/deployment_examples.py

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This directory contains various examples of how to use the Python client.
44
Please read the description at the top of each example for more information
5-
about what the script does and any prequisites. Most scripts also include
5+
about what the script does and any prerequisites. Most scripts also include
66
comments throughout the code.
77

88
## Setup

examples/deployment_crud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create_deployment_object():
6464

6565

6666
def create_deployment(api, deployment):
67-
# Create deployement
67+
# Create deployment
6868
resp = api.create_namespaced_deployment(
6969
body=deployment, namespace="default"
7070
)

examples/dynamic-client/cluster_scoped_custom_resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- Creation of a custom resource definition (CRD) using dynamic-client
1818
- Creation of cluster scoped custom resources (CR) using the above created CRD
1919
- List, patch (update), delete the custom resources
20-
- Delete the custom resource defintion (CRD)
20+
- Delete the custom resource definition (CRD)
2121
"""
2222

2323
from kubernetes import config, dynamic

examples/notebooks/create_pod.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"editable": true
9999
},
100100
"source": [
101-
"In this example, we only start one container in the Pod. The container is an instnace of the _V1Container_ class. "
101+
"In this example, we only start one container in the Pod. The container is an instance of the _V1Container_ class. "
102102
]
103103
},
104104
{

examples/notebooks/create_secret.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"source": [
247247
"### View secret being used within the pod\n",
248248
"\n",
249-
"Wait for atleast 10 seconds to ensure pod is running before executing this section."
249+
"Wait for at least 10 seconds to ensure pod is running before executing this section."
250250
]
251251
},
252252
{

examples/rollout-daemonset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def main():
9898
# Wait for finishing creation of controller revision
9999
import time
100100
time.sleep(15)
101-
# List the controller revison
101+
# List the controller revision
102102
controller_revisions = list_controller_revision(
103103
apps_v1_api, "default", "daemonset-redis")
104104
rollout_namespaced_daemon_set(

examples/rollout-statefulset.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
- Create headless server
44
- Create statefulset
55
- Update statefulset
6-
- List contoller revisions which belong to specified statefulset
6+
- List controller revisions which belong to specified statefulset
77
- Roll out statefulset
88
Note:
9-
If your kubernetes version is lower than 1.22(exclude 1.22), the kubernetes-client version must be lower than 1.22(alse exclude 1.22).
10-
Because new feature 'AvailableReplicas' for StatefulSetStatus is supported in native kubernetes since version 1.22, mismatch version between kubernetes and kubernetes-client will raise execption ValueError
9+
If your kubernetes version is lower than 1.22(exclude 1.22), the kubernetes-client version must be lower than 1.22(also exclude 1.22).
10+
Because new feature 'AvailableReplicas' for StatefulSetStatus is supported in native kubernetes since version 1.22, mismatch version between kubernetes and kubernetes-client will raise exception ValueError
1111
"""
1212

1313

@@ -128,7 +128,7 @@ def main():
128128
# Wait for finishing creation of controller revision
129129
import time
130130
time.sleep(15)
131-
# List the controller revison
131+
# List the controller revision
132132
controller_revisions = list_controller_revision(
133133
apps_v1_api, "default", "statefulset-redis")
134134
rollout_namespaced_stateful_set(

kubernetes/base/config/kube_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def get_with_name(self, name, safe=False):
665665
class KubeConfigMerger:
666666

667667
"""Reads and merges configuration from one or more kube-config's.
668-
The propery `config` can be passed to the KubeConfigLoader as config_dict.
668+
The property `config` can be passed to the KubeConfigLoader as config_dict.
669669
670670
It uses a path attribute from ConfigNode to store the path to kubeconfig.
671671
This path is required to load certs from relative paths.

kubernetes/base/dynamic/resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _items_to_resources(self, body):
150150
raise ValueError('The `items` field in the body must be populated when calling methods on a ResourceList')
151151

152152
if self.kind != kind:
153-
raise ValueError('Methods on a {} must be called with a body containing the same kind. Receieved {} instead'.format(self.kind, kind))
153+
raise ValueError('Methods on a {} must be called with a body containing the same kind. Received {} instead'.format(self.kind, kind))
154154

155155
return {
156156
'api_version': api_version,

kubernetes/base/leaderelection/resourcelock/configmaplock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def update(self, name, namespace, updated_record):
9494
:param name: name of the lock to be updated
9595
:param namespace: namespace the lock is in
9696
:param updated_record: the updated election record
97-
:return: True if update is succesful False if it fails
97+
:return: True if update is successful False if it fails
9898
"""
9999
try:
100100
# Set the updated record

kubernetes/base/stream/ws_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __init__(self, websocket, ports):
256256
257257
Port Forward command sends on 2 channels per port, a read/write
258258
data channel and a read only error channel. Both channels are sent an
259-
initial frame contaning the port number that channel is associated with.
259+
initial frame containing the port number that channel is associated with.
260260
"""
261261

262262
self.websocket = websocket

kubernetes/client/models/discovery_v1_endpoint_port.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def app_protocol(self, app_protocol):
9494
def name(self):
9595
"""Gets the name of this DiscoveryV1EndpointPort. # noqa: E501
9696
97-
The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
97+
The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
9898
9999
:return: The name of this DiscoveryV1EndpointPort. # noqa: E501
100100
:rtype: str
@@ -105,7 +105,7 @@ def name(self):
105105
def name(self, name):
106106
"""Sets the name of this DiscoveryV1EndpointPort.
107107
108-
The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
108+
The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. # noqa: E501
109109
110110
:param name: The name of this DiscoveryV1EndpointPort. # noqa: E501
111111
:type: str

kubernetes/docs/DiscoveryV1EndpointPort.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EndpointPort represents a Port used by an EndpointSlice
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**app_protocol** | **str** | The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. | [optional]
8-
**name** | **str** | The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. | [optional]
8+
**name** | **str** | The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. | [optional]
99
**port** | **int** | The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | [optional]
1010
**protocol** | **str** | The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional]
1111

kubernetes/docs/V1PersistentVolumeClaimCondition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# V1PersistentVolumeClaimCondition
22

3-
PersistentVolumeClaimCondition contails details about state of pvc
3+
PersistentVolumeClaimCondition contains details about state of pvc
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

kubernetes/docs/V1PodDisruptionBudgetStatus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PodDisruptionBudgetStatus represents information about the status of a PodDisrup
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**conditions** | [**list[V1Condition]**](V1Condition.md) | Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. | [optional]
7+
**conditions** | [**list[V1Condition]**](V1Condition.md) | Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. | [optional]
88
**current_healthy** | **int** | current number of healthy pods |
99
**desired_healthy** | **int** | minimum desired number of healthy pods |
1010
**disrupted_pods** | **dict(str, datetime)** | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional]

scripts/util/kube_changelog.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# find_latest_patch_version finds the latest released patch version for the
2121
# given branch.
2222
# We use the version to track what API surface the generated Python client
23-
# cooresponds to, and collect all API change release notes up to that version.
23+
# corresponds to, and collect all API change release notes up to that version.
2424
# There is one tricky point: the code generator we use pulls the latest OpenAPI
2525
# spec from the given branch. The spec may contain API changes that aren't
2626
# documented in the Kubernetes release notes. Until the code generator pulls

0 commit comments

Comments
 (0)