Skip to content

Add aliases #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Add aliases #63

wants to merge 2 commits into from

Conversation

SimonBaeumer
Copy link
Contributor

No description provided.

@@ -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 ?

Comment on lines +3 to +10
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"
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants