-
Hi We have previously looked into Crossplane to deploy infrastructure as part of our helm chart applications. This includes both external cloud resources, such as a managed database, as well as resources internal to the application, such as auth tokens for the various components. With Crossplane, I would define a CRD with provider credentials at the cluster level, which would allow deployments to commission external cloud infrastructure as needed, depending on the chart's values. I could even use Crossplane's terraform provider to do this to benefit from the terraform ecosystem. Could such a use-case be supported by the tf-controller, or is it a bad fit? We have discussed having each chart deploy a |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
This is exactly what I'm implementing. We would provide an easy way (reads: a single YAML) to generate a thin controller for GitOps and TF. This feature would be similar to the provider + package concept in Crossplane, but its implementation would be straightforward using the controller framework. Please let me know what you think about it. |
Beta Was this translation helpful? Give feedback.
-
Is there an ETA for when this functionality will be developed? |
Beta Was this translation helpful? Give feedback.
-
@caspervk it's last day of Q3 and we shipped this feature in v0.13.0-rc.2. |
Beta Was this translation helpful? Give feedback.
-
apiVersion: infra.contrib.fluxcd.io/v1alpha1
kind: Terraform
metadata:
name: hello-world
namespace: flux-system
spec:
path: aws_hello_world
values:
greeting: Hi
subject: my world
sourceRef:
kind: OCIRepository
name: hello-package-v4.32.0
interval: 1h0m
approvePlan: auto |
Beta Was this translation helpful? Give feedback.
-
This might be exactly what we are looking for aswell. Currently we are exposing developer-facing CR's that are translated into Terraform CR using cuelang. If there are any way to inbuild this logic into tf-controller or make it extensive enough to map an existing custom resource to a terraform custom resource, it would be amazing. We are experimenting with writing our own controller/operator to translate the developer-facing CRs into Terraform CR. |
Beta Was this translation helpful? Give feedback.
This is exactly what I'm implementing. We would provide an easy way (reads: a single YAML) to generate a thin controller for GitOps and TF. This feature would be similar to the provider + package concept in Crossplane, but its implementation would be straightforward using the controller framework.
Please let me know what you think about it.