Docker Community Forums

Share and learn in the Docker community.

RBAC java API client


(Nicola Benaglia) #1

Hi,
I am looking for a API java client to have some role created by code.

We have a kubernetes-side problem in Docker 2.0 EE, because K8S’ RBAC is disabled.
The following code launches exception, because of the disabled functionality:

[...]
RbacAuthorizationV1beta1Api rbac = new RbacAuthorizationV1beta1Api(apiClient);
try {
  rbac.createClusterRole(clusterRole, "false”);	
} 
[...]

Is there an official Docker API java library to manage RBAC, please?

Thank you in advance,
Nicola