Skip to content

Commit 5b6b2dc

Browse files
author
Prasanna Santhanam
committed
fixing casing rbacAPi -> rbacApi
1 parent 1308f26 commit 5b6b2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kubeshell/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self):
1515
self.v1Beta1 = client.AppsV1beta1Api()
1616
self.extensionsV1Beta1 = client.ExtensionsV1beta1Api()
1717
self.autoscalingV1Api = client.AutoscalingV1Api()
18-
self.rbacAPi = client.RbacAuthorizationV1beta1Api()
18+
self.rbacApi = client.RbacAuthorizationV1beta1Api()
1919
self.batchV1Api = client.BatchV1Api()
2020
self.batchV2Api = client.BatchV2alpha1Api()
2121

@@ -94,10 +94,10 @@ def _call_api_client(self, resource):
9494
ret = self.autoscalingV1Api.list_horizontal_pod_autoscaler_for_all_namespaces(watch=False)
9595
elif resource == "clusterrole":
9696
namespaced_resource = False
97-
ret = self.rbacAPi.list_cluster_role(watch=False)
97+
ret = self.rbacApi.list_cluster_role(watch=False)
9898
elif resource == "clusterrolebinding":
9999
namespaced_resource = False
100-
ret = self.rbacAPi.list_cluster_role_binding(watch=False)
100+
ret = self.rbacApi.list_cluster_role_binding(watch=False)
101101
elif resource == "job":
102102
ret = self.batchV1Api.list_job_for_all_namespaces(watch=False)
103103
elif resource == "cronjob":

0 commit comments

Comments
 (0)