Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions aliases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
alias k="kubectl -n stackrox"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is an implementation detail, I think it would be better not to be so terse.
How about just abbreviating to kcst ?


alias ksensordelete="k delete pod -l app=sensor"
alias ksensorlogs="k logs -f -lapp=sensor"
alias ksensoryaml="k get pod -lapp=sensor -o yaml"

alias kcentraldelete="k delete pod -l app=central"
alias kcentrallogs="k logs -f -lapp=central"
alias kcentralyaml="k get pod -lapp=central -o yaml"
alias kcentralport="k port-forward svc/central 8000:443"
Comment on lines +3 to +10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the other hand, is the k prefix really needed here?