Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot create resource at cluster scope" error when seen starting the controller #53

Open
ldimaggi opened this issue Jul 30, 2019 · 1 comment

Comments

@ldimaggi
Copy link

ldimaggi commented Jul 30, 2019

This issue is related to: #22

What I am seeing is that this error is returned when the controller is started by applying kubectl apply -f deploy/deployment.yaml

The error returned is:

"system:serviceaccount:default:default" cannot create resource "customresourcedefinitions" 
in API group "apiextensions.k8s.io" at the cluster scope

I was able to workaround the issue the steps in the comment here: #22 (comment)

kubectl create clusterrolebinding
   --clusterrole=cluster-admin
  --user=system:serviceaccount:default:default
   --clusterrole=cluster-admin
   --user=system:serviceaccount   rds-admin-binding

Based on the discussion/status in #22, I had expected that the issue had been resolved a while ago - am I missing something? Thanks!

@ldimaggi
Copy link
Author

ldimaggi commented Aug 1, 2019

The problem is caused by https://github.com/sorenmat/k8s-rds/blob/master/kube/client.go:

func Config() string {
	return home() + "/.kube/config"
}

I think that this is less of a bug than it is a combination of a user error and a need for some user documentation for the the operator's configuration dependencies. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant