MCPcopy Create free account
hub / github.com/kubernetes-client/python / base_resource

Method base_resource

kubernetes/base/dynamic/resource.py:120–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 self.__base_resource = None
119
120 def base_resource(self):
121 if self.__base_resource:
122 return self.__base_resource
123 elif self.base_resource_lookup:
124 self.__base_resource = self.client.resources.get(**self.base_resource_lookup)
125 return self.__base_resource
126 elif self.base_kind:
127 self.__base_resource = self.client.resources.get(group=self.group, api_version=self.api_version, kind=self.base_kind)
128 return self.__base_resource
129 return None
130
131 def _items_to_resources(self, body):
132 """ Takes a List body and return a dictionary with the following structure:

Callers 2

_item_to_resourceMethod · 0.95
__getattr__Method · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected