Update xargs argument in cluster tasks (#800)
`xargs -L1` is equivalent and compatible with all platforms to `xargs -l` which is only gnu xargs specific. `xargs -l` is equivalent to `xargs -L1`
This commit is contained in:
1 parent
d7f1a8b2a7
commit
af9dc565ed
1 file changed
+2
-2
@@ -31,8 +31,8 @@ tasks:
|
|||||||
hr-restart:
|
hr-restart:
|
||||||
desc: Restart all failed Helm Releases
|
desc: Restart all failed Helm Releases
|
||||||
cmds:
|
cmds:
|
||||||
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux suspend hr $0 -n $1'
|
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -L1 bash -c 'flux suspend hr $0 -n $1'
|
||||||
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux resume hr $0 -n $1'
|
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -L1 bash -c 'flux resume hr $0 -n $1'
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
desc: List all the nodes in your cluster
|
desc: List all the nodes in your cluster
|
||||||
|
|||||||
Reference in new issue
Block a user