flux-envsubst
Flux recommends using Drone's envsubst to replicate post-build
substitutions locally. However, envsubst lacks support for
.env
files
- the
kustomize.toolkit.fluxcd.io/substitute: disabled
annotation / label
- SOPS
See our blog post for additional details.
Installation
If you have Homebrew installed run
brew install jaconi-io/tap/flux-envsubst
If you do not use Homebrew, run
go install github.com/jaconi-io/flux-envsubst@latest
Usage
kustomize build . | flux-envsubst | kubectl apply -f -