You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perform an action from a yaml file. Pass True for verbose to
28
+
print confirmation information.
29
+
30
+
Input:
31
+
yaml_file: string. Contains the path to yaml file.
32
+
k8s_cline: an ApiClient object, initialized with the client args.
33
+
34
+
Available parameters for performing the subsequent action:
35
+
:param async_req bool
36
+
:param bool include_uninitialized: If true, partially initialized resources are included in the response.
37
+
:param str pretty: If 'true', then the output is pretty printed.
38
+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
39
+
"""
40
+
41
+
withopen(path.abspath(yaml_file)) asf:
42
+
yml_object=yaml.load(f)
43
+
#TODO: case of yaml file containing multiple objects
0 commit comments