Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fa0e87

Browse files
committed
Correct the documentation for create_from_dict
The function can create one or more Kuberenetes objects based on the content of data. It can handle all API objects incuding `List` type, which by itself can contain more than one Kuberenetes API objects.
1 parent 3489838 commit 4fa0e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes/utils/create_from_yaml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def create_from_yaml(
9090

9191
def create_from_dict(k8s_client, data, verbose=False, **kwargs):
9292
"""
93-
Perform an action from a dictionary containing one or more valid kubernetes
94-
objects
93+
Perform an action from a dictionary containing valid kubernetes
94+
API object (i.e. List, Service, etc).
9595
9696
Input:
9797
k8s_client: an ApiClient object, initialized with the client args.

0 commit comments

Comments
 (0)