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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
It would be great if it were possible to change the generated outputs:
Update CRD to include optional config (maybe outputName?)
The motivation for this is that there may be cases where we want to reference terraform outputs from a different namespace (for example a service residing in namespace A may use terraform operator running in namespace B to create a database and then be able to pass the database host name to the pod via a configmap/secret reference). Since the existing functionality of this operator only creates outputs in the same namespace it is not possible to accomplish this:
You can write a Pod spec that refers to a ConfigMap and configures the container(s) in that Pod based on the data in the ConfigMap. The Pod and the ConfigMap must be in the same namespace.
Community Note
Description
It would be great if it were possible to change the generated outputs:
outputNamespace
?)<workspace name>-outputs
- https://github.com/hashicorp/terraform-k8s/blob/master/workspacehelper/k8s_configmap.go#L122)outputName
?)The motivation for this is that there may be cases where we want to reference terraform outputs from a different namespace (for example a service residing in namespace
A
may use terraform operator running in namespaceB
to create a database and then be able to pass the database host name to the pod via a configmap/secret reference). Since the existing functionality of this operator only creates outputs in the same namespace it is not possible to accomplish this:Potential Terraform Configuration
This functionality could be used like this:
The above would create secret
my_secret
in themy_namespace
namespace.References
The text was updated successfully, but these errors were encountered: