Skip to content

jaconi-io/flux-envsubst

Repository files navigation

License: MIT Conventional Commits semantic-release: angular go report CI GitHub release

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/v4@latest

Usage

kustomize build . | flux-envsubst | kubectl apply -f -