chaostoolkit-incubator / kubernetes-crd

Kubernetes CRD for the Chaos Toolkit
https://chaostoolkit.org/
Apache License 2.0
8 stars 13 forks source link

No permission to create namespaces - 403 Forbidden #62

Open Almog1009 opened 4 years ago

Almog1009 commented 4 years ago

The namespace already exists and I don't have permission to create namespaces in the cluster, thus it throws PermanentError, 403 forbidden. Is there a way to surpass that?

https://github.com/chaostoolkit-incubator/kubernetes-crd/blob/c2d85cfbe97726d08fe0480a86cf69dbe3acfeb4/controller.py#L41

dmartin35 commented 4 years ago

Sorry for late response, with the current code, there is no way to bypass it other than getting yourself namespace creation permission.

We'll have to update the code to check the namespace existence with another method.

But before making code change, are you sure you have the permission to list namespaces either ? If you have no permissions on namespace resource, I don't see a way to check it exists or create it if not.