Skip to content

Commit 854672a

Browse files
authored
Merge pull request #1998 from kianmeng/fix-typos
Fix typos
2 parents 0c6714a + 2d299b7 commit 854672a

17 files changed

+21
-21
lines changed

doc/source/usage.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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,

0 commit comments

Comments
 (0)