File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
730730and 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---
736738apiVersion: v1
737739kind: Namespace
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ replace github.com/fluxcd/kustomize-controller/api => ./api
66
77require (
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
You can’t perform that action at this time.
0 commit comments