add(any/aliases-kc): Init

This commit is contained in:
Markus Pesch 2020-03-08 16:49:12 +01:00
parent 2c4c614e8e
commit f614881494
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
4 changed files with 46 additions and 0 deletions

5
any/aliases-kc/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*
!*.sh
!.gitignore
!Makefile
!PKGBUILD

5
any/aliases-kc/Makefile Normal file
View File

@ -0,0 +1,5 @@
build:
makepkg --sign --force
install:
makepkg --sign --force --install

15
any/aliases-kc/PKGBUILD Normal file
View File

@ -0,0 +1,15 @@
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
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
}

View File

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