Skip to content

Commit

Permalink
feat(taskfile): add node-shell task
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Jan 12, 2025
1 parent cea917e commit 885d264
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .taskfiles/kubernetes/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ tasks:
- kubectl browse-pvc --version
- which kubectl

node-shell:
desc: Open a shell to a node [NODE=required]
interactive: true
cmd: kubectl node-shell -n kube-system -x {{.NODE}}
requires:
vars: [NODE]
preconditions:
- kubectl get nodes {{.NODE}}
- kubectl node-shell --version
- which kubectl

sync-secrets:
desc: Sync all ExternalSecrets
cmds:
Expand Down
2 changes: 1 addition & 1 deletion .taskfiles/workstation/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tasks:
desc: Set up Krew tools
deps: [brew]
cmds:
- kubectl krew install cert-manager cnpg browse-pvc rook-ceph view-secret
- kubectl krew install cert-manager cnpg browse-pvc node-shell rook-ceph view-secret
preconditions:
- kubectl krew version
- which kubectl

0 comments on commit 885d264

Please sign in to comment.