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

Method create

kubernetes/base/dynamic/client.py:109–114  ·  view source on GitHub ↗
(self, resource, body=None, namespace=None, **kwargs)

Source from the content-addressed store, hash-verified

107 return self.request('get', path, **kwargs)
108
109 def create(self, resource, body=None, namespace=None, **kwargs):
110 body = self.serialize_body(body)
111 if resource.namespaced:
112 namespace = self.ensure_namespace(resource, namespace, body)
113 path = resource.path(namespace=namespace)
114 return self.request('post', path, body=body, **kwargs)
115
116 def delete(self, resource, name=None, namespace=None, body=None, label_selector=None, field_selector=None, **kwargs):
117 if not (name or label_selector or field_selector):

Callers 14

test_service_apisMethod · 0.45
test_configmap_apisMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
create_namespaceFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 4

serialize_bodyMethod · 0.95
ensure_namespaceMethod · 0.95
requestMethod · 0.95
pathMethod · 0.45