2023-12-21 06:38:32 +00:00
|
|
|
{ pkgs, ... }:
|
2023-04-30 06:11:27 +00:00
|
|
|
{
|
|
|
|
programs.bash.interactiveShellInit = ''
|
|
|
|
source <(kubectl completion bash)
|
|
|
|
complete -F __start_kubectl k
|
|
|
|
'';
|
2023-05-22 06:52:56 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kubectl
|
|
|
|
kubernetes-helm
|
2023-06-30 05:15:55 +00:00
|
|
|
stern
|
2023-05-22 06:52:56 +00:00
|
|
|
|
2024-06-13 00:54:11 +00:00
|
|
|
(google-cloud-sdk.withExtraComponents
|
|
|
|
[ google-cloud-sdk.components.gke-gcloud-auth-plugin ])
|
|
|
|
|
2023-05-31 01:24:17 +00:00
|
|
|
# dedicated script, because bash aliases dont work with `watch`
|
|
|
|
(writeShellScriptBin "k" "exec kubectl \"$@\"")
|
2023-04-30 06:11:27 +00:00
|
|
|
];
|
|
|
|
}
|