Skip to content

Commit f694414

Browse files
committed
Add Drone envsubst install to docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent f3d9c36 commit f694414

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/spec/v1beta1/kustomization.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type KustomizationSpec struct {
2020
// Decrypt Kubernetes secrets before applying them on the cluster.
2121
// +optional
2222
Decryption *Decryption `json:"decryption,omitempty"`
23-
23+
2424
// The interval at which to reconcile the Kustomization.
2525
// +required
2626
Interval metav1.Duration `json:"interval"`
@@ -30,7 +30,7 @@ type KustomizationSpec struct {
3030
// value to retry failures.
3131
// +optional
3232
RetryInterval *metav1.Duration `json:"retryInterval,omitempty"`
33-
33+
3434
// The KubeConfig for reconciling the Kustomization on a remote cluster.
3535
// When specified, KubeConfig takes precedence over ServiceAccountName.
3636
// +optional
@@ -730,8 +730,10 @@ You can replicate the controller post-build substitutions locally using
730730
and Drone's [envsubst](https://github.com/drone/envsubst):
731731

732732
```console
733+
$ go install github.com/drone/envsubst/cmd/envsubst
734+
733735
$ export region=eu-central-1
734-
$ kustomize build ./apps/ | envsubst
736+
$ kustomize build ./apps/ | $GOPATH/bin/envsubst
735737
---
736738
apiVersion: v1
737739
kind: Namespace

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ replace github.com/fluxcd/kustomize-controller/api => ./api
66

77
require (
88
github.com/cyphar/filepath-securejoin v0.2.2
9+
github.com/drone/envsubst v1.0.3-0.20200804185402-58bc65f69603
910
github.com/fluxcd/kustomize-controller/api v0.7.4
1011
github.com/fluxcd/pkg/apis/kustomize v0.0.1
1112
github.com/fluxcd/pkg/apis/meta v0.7.0

0 commit comments

Comments
 (0)