-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be nice to have exceptionless version of get(and maybe for put/patch etc?):
def cluster_id
client.api('v1')
.resource('configmaps', namespace: 'kube-public')
.get('cluster-info')
.metadata
.uid
rescue K8s::Error::NotFound
nil
endvs:
def cluster_id
client.api('v1')
.resource('configmaps', namespace: 'kube-public')
.get!('cluster-info')&.metadata&.uid
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request