Skip to content

Commit f8ace6f

Browse files
committed
Add flux envsubst example to docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent 1837d1c commit f8ace6f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

docs/spec/v1/kustomizations.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,7 @@ kind: Kustomization
564564
metadata:
565565
name: apps
566566
spec:
567-
interval: 5m
568-
path: "./apps/"
567+
# ...omitted for brevity
569568
postBuild:
570569
substitute:
571570
cluster_env: "prod"
@@ -629,6 +628,7 @@ kind: Kustomization
629628
metadata:
630629
name: apps
631630
spec:
631+
# ...omitted for brevity
632632
postBuild:
633633
substitute:
634634
var_substitution_enabled: "true"
@@ -640,13 +640,11 @@ enclosed in double quotes vars to be treated as strings, for more information se
640640

641641
You can replicate the controller post-build substitutions locally using
642642
[kustomize](https://github.com/kubernetes-sigs/kustomize)
643-
and Drone's [envsubst](https://github.com/drone/envsubst):
643+
and the Flux CLI:
644644

645645
```console
646-
$ go install github.com/drone/envsubst/cmd/envsubst
647-
648646
$ export cluster_region=eu-central-1
649-
$ kustomize build ./apps/ | $GOPATH/bin/envsubst
647+
$ kustomize build ./apps/ | flux envsubst --strict
650648
---
651649
apiVersion: v1
652650
kind: Namespace

0 commit comments

Comments
 (0)