terraform-provider-flux
terraform-provider-flux copied to clipboard
There needs to be a way to configure the manifests for things like podsecuritypolicy.
Currently you cannot deploy this on a cluster with podsecuritypolicy enabled because the source and notification controllers won't boot:
Error creating: pods "source-controller-67c76b67f5-" is forbidden: PodSecurityPolicy: unable to admit pod: []
They support this with static manifests e.g.
https://fluxcd.io/docs/installation/#pod-security-policy
However I don't see this as documented to be configurable with this module.
Also flux_sync datasoure should support things like dependson.
@sharkymcdongles I think the docs in #178 may solve your problems configuring PSP.
So regarding the depends_on question. That is a more complex question that is related to the core of Terraform rather than Flux. It would be nice to do this but there is a long running issue within Terraform about how to have dynamic outputs with depends_on than in turn creates dynamic resources.