-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Helm operator unable to create ClusterRole resource due to setting ownerRefs. #1815
Comments
I will try this on the metadata I have for kubeturbo. Interestingly, Endre Sara w/Turbonomic was able to take my metadata, adjust the RBAC, and got it to work. I verified this on my on cluster today. The
My guess here (as Daniel Messer mentioned in slack) is probably the addition of the apiGroup charts.helm.k8s.io under the I should also say, thanks a ton for the immediate response time and code fix @joelanford ! |
I confirmed that adding the apiGroup However, I tried updating the |
@jsm84 I merged the fix to https://travis-ci.org/operator-framework/operator-sdk/builds/571919523 |
I just completed testing the same helm-operator build using the Closing issue. Thanks again @joelanford ! |
Bug Report
What did you do?
The Kubeturbo operator deploys the helm chart at https://github.com/esara/kubeturbo/tree/master/deploy/kubeturbo.
Specifically, it trips up when creating the ClusterRole object defined here in the helm chart: https://github.com/turbonomic/kubeturbo/blob/master/deploy/kubeturbo/templates/serviceaccount.yaml#L43-#L85
What did you expect to see?
The helm operator should be able to properly install the helm chart, but can't due to attempting to set ownerRefs on a cluster-scoped resource.
What did you see instead? Under which circumstances?
The error produced by the operator pod is:
Environment
operator-sdk version: v0.8.0-24-gfd7d925d
go version: go1.12.7 linux/amd64
Kubernetes version information:
Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.3-201906191409+458fcdd-dirty", GitCommit:"458fcdd", GitTreeState:"dirty", BuildDate:"2019-06-19T18:47:30Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+abe1830", GitCommit:"abe1830", GitTreeState:"clean", BuildDate:"2019-06-19T18:48:26Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Kubernetes cluster kind: OpenShift 4.1 release
Are you writing your operator in ansible, helm, or go? Helm
Possible Solution
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: