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

Allow pod for Terraform task to be created in controller namespace #173

Open
adriansuarez opened this issue Jul 17, 2024 · 1 comment
Open

Comments

@adriansuarez
Copy link

There does not seem to be any requirement for the pod that runs the Terraform commands to be in the same namespace as the Terraform CR. It would be good for the namespace of the resources created by the controller (pods, configmaps, secrets) to be configurable by the user between one of two modes -- (1) same namespace as Terraform kind and (2) same namespace as controller.

The second mode would allow the controller to be limited to its own namespace (with a Role instead of a ClusterRole; see GalleyBytes/helm-charts#76) for all resources except the Terraform kind.

This is important in multi-tenant environments where organizations do not want to grant too much access to a particular service.

@adriansuarez
Copy link
Author

It seems like this would be a good place to plumb some configuration option to support this:

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