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
29
34
print confirmation information.
30
35
Input:
31
36
yaml_file: string. Contains the path to yaml file.
32
37
k8s_cline: an ApiClient object, initialized with the client args.
38
+
verbose: If True, print confirmation from the create action. Default is False.
39
+
output_list: compatibility option with v8.0.0. Default is False.
40
+
Function returns a single api object when there is only one when set False.
41
+
Does not affect when multiple objects are generated.
33
42
34
-
Available parameters for performing the subsequent action:
43
+
Returns:
44
+
An k8s api object or list of apis objects created from YAML.
45
+
When a single object is generated, return type is dependent on output_list.
46
+
47
+
Available parameters for creating <kind>:
35
48
:param async_req bool
36
49
:param bool include_uninitialized: If true, partially initialized resources are included in the response.
37
50
:param str pretty: If 'true', then the output is pretty printed.
38
51
: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
52
"""
40
53
54
+
k8s_api_all= []
41
55
withopen(path.abspath(yaml_file)) asf:
42
-
yml_object=yaml.load(f)
43
-
# TODO: case of yaml file containing multiple objects
0 commit comments