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
@@ -723,8 +723,10 @@ You can replicate the controller post-build substitutions locally using
723723and Drone's [envsubst](https://github.com/drone/envsubst) :
724724
725725` ` ` console
726+ $ go install github.com/drone/envsubst/cmd/envsubst
727+
726728$ export region=eu-central-1
727- $ kustomize build ./apps/ | envsubst
729+ $ kustomize build ./apps/ | $GOPATH/bin/ envsubst
728730---
729731apiVersion: v1
730732kind: Namespace
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ 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
10+ github.com/fluxcd/kustomize-controller/api v0.7.2
911 github.com/fluxcd/kustomize-controller/api v0.7.4
1012 github.com/fluxcd/pkg/apis/kustomize v0.0.1
1113 github.com/fluxcd/pkg/apis/meta v0.7.0
You can’t perform that action at this time.
0 commit comments