home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e7fcf4103d4853115066f8f340116bb625ae2cf2
parent 3a34713f39973b3784bf6ab2a91120aa37d74aba
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 20 Nov 2020 11:13:51 +0100

users/vincent: add command to kubernetes

- knd to delete namespaces

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Musers/vincent/containers/kubernetes.nix | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/users/vincent/containers/kubernetes.nix b/users/vincent/containers/kubernetes.nix @@ -1,5 +1,12 @@ -{ pkgs, ... }: +{ config, lib, pkgs, ... }: +with lib; +let + knd = pkgs.writeScriptBin "knd" '' + #!${pkgs.stdenv.shell} + ${pkgs.kubectl}/bin/kubectl get namespaces -o name | ${pkgs.fzf}/bin/fzf --multi | xargs kubectl delete + ''; +in { home.packages = with pkgs; [ #cri-tools @@ -12,5 +19,7 @@ my.ko my.krew my.kss + # our own scripts + knd ]; }