Skip to content

Commit 8fe6d22

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

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

docs/spec/v1beta1/kustomization.md

Lines changed: 6 additions & 4 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
@@ -54,7 +54,7 @@ type KustomizationSpec struct {
5454
// A list of resources to be included in the health assessment.
5555
// +optional
5656
HealthChecks []meta.NamespacedObjectKindReference `json:"healthChecks,omitempty"`
57-
57+
5858
// A list of images used to override or set the name and tag for container images.
5959
// +optional
6060
Images []Image `json:"images,omitempty"`
@@ -631,8 +631,10 @@ You can replicate the controller post-build substitutions locally using
631631
and Drone's [envsubst](https://github.com/drone/envsubst):
632632

633633
```console
634+
$ go install github.com/drone/envsubst/cmd/envsubst
635+
634636
$ export region=eu-central-1
635-
$ kustomize build ./apps/ | envsubst
637+
$ kustomize build ./apps/ | $GOPATH/bin/envsubst
636638
---
637639
apiVersion: v1
638640
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.2
1011
github.com/fluxcd/pkg/apis/meta v0.7.0
1112
github.com/fluxcd/pkg/runtime v0.8.0

0 commit comments

Comments
 (0)