1
0
mirror of synced 2026-02-06 19:05:55 +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:
Stefan Prodan
2024-04-08 17:54:38 +03:00
parent 4d86311c11
commit 493c1fbdf9
6 changed files with 171 additions and 3 deletions

10
cmd/flux/testdata/envsubst/file.gold vendored Normal file
View 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
View 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}