def describe(self, name):
"""Return a yaml-ish text blob.
Not helpful for automation, very helpful for humans.
"""
try:
return self.kubectl.describe(
self.url_type,
name,
'--context={}'.format(self.config.context),
'--namespace={}'.format(self.config.namespace)
)
except sh.ErrorReturnCode as err:
logging.error("Unexpected response: %s", err)
评论列表
文章目录