diff --git a/docs/spec/v1beta1/kustomization.md b/docs/spec/v1beta1/kustomization.md index 53afdc8e..ebeb0e8e 100644 --- a/docs/spec/v1beta1/kustomization.md +++ b/docs/spec/v1beta1/kustomization.md @@ -20,7 +20,7 @@ type KustomizationSpec struct { // Decrypt Kubernetes secrets before applying them on the cluster. // +optional Decryption *Decryption `json:"decryption,omitempty"` - + // The interval at which to reconcile the Kustomization. // +required Interval metav1.Duration `json:"interval"` @@ -30,7 +30,7 @@ type KustomizationSpec struct { // value to retry failures. // +optional RetryInterval *metav1.Duration `json:"retryInterval,omitempty"` - + // The KubeConfig for reconciling the Kustomization on a remote cluster. // When specified, KubeConfig takes precedence over ServiceAccountName. // +optional @@ -730,8 +730,10 @@ You can replicate the controller post-build substitutions locally using and Drone's [envsubst](https://github.com/drone/envsubst): ```console +$ go install github.com/drone/envsubst/cmd/envsubst + $ export region=eu-central-1 -$ kustomize build ./apps/ | envsubst +$ kustomize build ./apps/ | $GOPATH/bin/envsubst --- apiVersion: v1 kind: Namespace diff --git a/go.mod b/go.mod index d428d964..5c4440d5 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ replace github.com/fluxcd/kustomize-controller/api => ./api require ( github.com/cyphar/filepath-securejoin v0.2.2 + github.com/drone/envsubst v1.0.3-0.20200804185402-58bc65f69603 github.com/fluxcd/kustomize-controller/api v0.7.4 github.com/fluxcd/pkg/apis/kustomize v0.0.1 github.com/fluxcd/pkg/apis/meta v0.7.0