MCPcopy Index your code
hub / github.com/kubernetes-client/python / main

Function main

examples/pod_exec.py:120–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119
120def main():
121 config.load_kube_config()
122 try:
123 c = Configuration().get_default_copy()
124 except AttributeError:
125 c = Configuration()
126 c.assert_hostname = False
127 Configuration.set_default(c)
128 core_v1 = core_v1_api.CoreV1Api()
129
130 exec_commands(core_v1)
131
132
133if __name__ == '__main__':

Callers 1

pod_exec.pyFile · 0.70

Calls 4

ConfigurationClass · 0.90
exec_commandsFunction · 0.85
get_default_copyMethod · 0.45
set_defaultMethod · 0.45

Tested by

no test coverage detected