From f6148814948cd40aa787c3b054dda7db759476ee Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 8 Mar 2020 16:49:12 +0100 Subject: [PATCH] add(any/aliases-kc): Init --- any/aliases-kc/.gitignore | 5 +++++ any/aliases-kc/Makefile | 5 +++++ any/aliases-kc/PKGBUILD | 15 +++++++++++++++ any/aliases-kc/kubectl-aliases.sh | 21 +++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 any/aliases-kc/.gitignore create mode 100644 any/aliases-kc/Makefile create mode 100644 any/aliases-kc/PKGBUILD create mode 100644 any/aliases-kc/kubectl-aliases.sh diff --git a/any/aliases-kc/.gitignore b/any/aliases-kc/.gitignore new file mode 100644 index 0000000..cd75b66 --- /dev/null +++ b/any/aliases-kc/.gitignore @@ -0,0 +1,5 @@ +* +!*.sh +!.gitignore +!Makefile +!PKGBUILD \ No newline at end of file diff --git a/any/aliases-kc/Makefile b/any/aliases-kc/Makefile new file mode 100644 index 0000000..f5e1ac9 --- /dev/null +++ b/any/aliases-kc/Makefile @@ -0,0 +1,5 @@ +build: + makepkg --sign --force + +install: + makepkg --sign --force --install \ No newline at end of file diff --git a/any/aliases-kc/PKGBUILD b/any/aliases-kc/PKGBUILD new file mode 100644 index 0000000..cf05f68 --- /dev/null +++ b/any/aliases-kc/PKGBUILD @@ -0,0 +1,15 @@ +# Maintainer: Markus Pesch + +pkgname=aliases-kc +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Markus Pesch's personal pacman aliases" +license=('GPL') +arch=('any') +source=("kubectl-aliases.sh") +sha256sums=('e0ae8edec72b91a0262be001f31ecae60e9ed77b61a554ee18568a5be04c01a1') +depends=("kubectl") + +package() { + install -D --mode=0755 --target-directory=${pkgdir}/etc/profile.d ${srcdir}/kubectl-aliases.sh +} diff --git a/any/aliases-kc/kubectl-aliases.sh b/any/aliases-kc/kubectl-aliases.sh new file mode 100644 index 0000000..f98e07a --- /dev/null +++ b/any/aliases-kc/kubectl-aliases.sh @@ -0,0 +1,21 @@ +# Aliases for kubectl +alias kgcj='kubectl get cronjobs' +alias kgdp='kubectl get deployments' +alias kgds='kubectl get daemonsets' +alias kgep='kubectl get endpoints' +alias kgj='kubectl get jobs' +alias kgp='kubectl get pods' +alias kgrc='kubectl get replicationcontrollers' +alias kgrs='kubectl get replicasets' +alias kgsv='kubectl get services' + +alias kd='kubectl delete' +alias kdcj='kubectl delete cronjobs' +alias kdep='kubectl delete endpoints' +alias kddp='kubectl delete deployments' +alias kdds='kubectl delete daemonsets' +alias kdj='kubectl delete jobs' +alias kdp='kubectl delete pods' +alias kdrc='kubectl delete replicationcontroller' +alias kdrs='kubectl delete replicasets' +alias kds='kubectl delete services'