k8sgpt-ai / k8sgpt-operator

Automatic SRE Superpowers within your Kubernetes cluster
https://k8sgpt.ai
Apache License 2.0
301 stars 85 forks source link

[Feature]: Create RBAC permissions for k8sgpt pod during local development #489

Open arbreezy opened 2 months ago

arbreezy commented 2 months ago

Checklist

Is this feature request related to a problem?

None

Problem Description

When we switched from having the operator's code, creating all k8sgpt rbac permissions for good reasons and put them in helm chart's manifests, we effectively lost the ability to provision a functional k8sgpt pod whilst running the operator in local mode due to the fact the permissions are coming from the helm chart which is not part of operator's local development.

Solution Description

I think there are many ways to solve this issue and I don't have strong opinions. The result will be the creation of RBAC permissions along with the service account during operator's local development workflow.

An approach will be to update the way make install is used right now to include the helm chart RBAC manifests

Benefits

Parity between operator's helm chart templates and local development's manifests

Potential Drawbacks

No response

Additional Information

Preferably we need to have a better way to use kubebuilder's Makefile (kustomize) and our own helm chart templates' development in parity during operator's development