You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when you try to install the helm release with Terraform for rbac-manager and also apply a CR RBACDefinition you get:
│ Error: Failed to determine GroupVersionResource for manifest
│
│ with module.addons.module.rbac_manager.module.helm_chart.kubernetes_manifest.this,
│ on addons/rbac_manager/helm_chart/main.tf line 15, in resource "kubernetes_manifest" "this":
│ 15: resource "kubernetes_manifest" "this" {
│
│ no matches for kind "RBACDefinition" in group "rbacmanager.reactiveops.io"
Describe the solution you'd like
It would be great if we could define a full RBACDefinition in the values.yaml of the helm chart for rbac-manager.
Describe alternatives you've considered
An alternative is to deploy my own helm chart with the RBACDefinition and install that using Terraform, however it is quit a bit of overhead and not super clean IMO.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
markandersontrocme
changed the title
Cannot install rbac-manager using Helm with Terraform
Cannot install rbac-manager using Helm and RBACDefinition with Terraform
Feb 16, 2022
I believe we have decided against specifying rbacDefinitions in the chart, due to various reasons. The precedent exists in a some other repos that we only manage the controller, not how the end-user wants to manage the Custom resources of that controller. That, and historical poor management of custom resources by helm (which may or not be better now)
On a more personal note, I have had terrible experiences with the helm terraform provider, and am not surprised it has issues with this sort of thing.
It seems there is a valid workflow that involves the kubectl provider and static manifest in this comment Is that something you could try instead? That's much cleaner than maintaining a chart just for an rbacdefintion. Out of curiosity, if you're using cert-manager, how do you manage clusterIssuers and Issuers? We typically just use a static manifest for those sorts of things, and it's much nicer than trying to shoehorn them into helm.
Ah yeah the kubectl provider seems to work perfectly. I was using the official k8s one with the kubernetes_manifest resource and it was failing but the kubectl provider seems 👌
Is your feature request related to a problem? Please describe.
Do to Terraform not handling CRDs and CRs very well yet:
when you try to install the helm release with Terraform for rbac-manager and also apply a CR
RBACDefinition
you get:using this Terraform code:
Describe the solution you'd like
It would be great if we could define a full
RBACDefinition
in thevalues.yaml
of the helm chart for rbac-manager.Describe alternatives you've considered
An alternative is to deploy my own helm chart with the RBACDefinition and install that using Terraform, however it is quit a bit of overhead and not super clean IMO.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: