Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0287c12 commit ae645b1Copy full SHA for ae645b1
kubernetes/utils/create_from_yaml.py
@@ -97,6 +97,7 @@ def create_from_yaml_single_item(
97
# Take care for the case e.g. api_type is "apiextensions.k8s.io"
98
# Only replace the last instance
99
group = "".join(group.rsplit(".k8s.io", 1))
100
+ # convert group name from DNS subdomain format to python class name convention
101
group = "".join(word.capitalize() for word in group.split('.'))
102
fcn_to_call = "{0}{1}Api".format(group, version.capitalize())
103
k8s_api = getattr(client, fcn_to_call)(k8s_client)
0 commit comments