Skip to content

Instantly share code, notes, and snippets.

@yeshess
Created January 7, 2018 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeshess/955cda8bd838f92a2f6267f3513edfac to your computer and use it in GitHub Desktop.
Save yeshess/955cda8bd838f92a2f6267f3513edfac to your computer and use it in GitHub Desktop.
SUPPORTED_API_MAPPINGS = {
'ClusterRoleBinding': KubernetesApiMapping(
create=KubernetesSingleOperationApiMapping(
api='RbacAuthorizationV1beta1Api',
method='create_cluster_role_binding',
payload='V1beta1ClusterRoleBinding'
),
read=KubernetesSingleOperationApiMapping(
api='RbacAuthorizationV1beta1Api',
method='read_cluster_role_binding',
),
update=KubernetesSingleOperationApiMapping(
api='RbacAuthorizationV1beta1Api',
method='replace_cluster_role_binding',
),
delete=KubernetesSingleOperationApiMapping(
api='RbacAuthorizationV1beta1Api',
method='delete_cluster_role_binding',
payload='V1DeleteOptions'
),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment