fix: use requires in taskfiles when needed (#1201)
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
a7c9827c46
commit
5a90397ed5
4 files changed
+10
-9
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user