fix: use requires in taskfiles when needed (#1201)

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-19 07:49:38 -05:00
1 parent a7c9827c46
commit 5a90397ed5
4 files changed
+10 -9

No files matched your search

+2 -2
View File
@@ -46,9 +46,9 @@ tasks:
| \
kubectl apply --kubeconfig {{.KUBECONFIG_FILE}} --server-side \
--field-manager=kustomize-controller -f -
requires:
vars: ["path", "ns"]
vars:
path: '{{ or .path (fail "Argument (path) is required") }}'
ns: '{{.ns | default "flux-system"}}'
ks:
sh: flux --kubeconfig {{.KUBECONFIG_FILE}} --namespace {{.ns}} get kustomizations $(basename {{.path}}) 2>&1
preconditions: