mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-28 06:08:50 +00:00
Add flux envsubst command
This command can be used to replicate the behavior of the Flux Kustomization post-build substitutions. Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
4d86311c11
commit
493c1fbdf9
6 changed files with 171 additions and 3 deletions
10
cmd/flux/testdata/envsubst/file.gold
vendored
Normal file
10
cmd/flux/testdata/envsubst/file.gold
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: test
|
||||
namespace: flux-system
|
||||
spec:
|
||||
ref:
|
||||
branch: main
|
||||
interval: 5m
|
||||
url: ssh://git@github.com/example/test
|
||||
10
cmd/flux/testdata/envsubst/file.yaml
vendored
Normal file
10
cmd/flux/testdata/envsubst/file.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: ${REPO_NAME}
|
||||
namespace: ${REPO_NAMESPACE:=flux-system}
|
||||
spec:
|
||||
ref:
|
||||
branch: main
|
||||
interval: 5m
|
||||
url: ssh://git@github.com/example/${REPO_NAME}
|
||||
Loading…
Add table
Add a link
Reference in a new issue