Naposledy aktivní 1753214750

Shell nix file for setting up helm dependencies correctly for local dev

jeirmeister2 revidoval tento gist 1753214749. Přejít na revizi

1 file changed, 5 insertions, 1 deletion

kubernetes_shell.nix

@@ -8,6 +8,11 @@ pkgs.mkShell {
8 8 jq
9 9 docker
10 10 just
11 + sops # SOPS for secrets encryption/decryption
12 + age # age encryption backend for SOPS
13 + gnupg # for PGP/GPG support, if needed
14 + kubectl # included separately for completions (supports minikube override/alias)
15 + envsubst # for templating manifests, useful in CI/CD flows
11 16 ];
12 17
13 18 shellHook = ''
@@ -29,4 +34,3 @@ pkgs.mkShell {
29 34 echo "Type 'kubectl' to use the Minikube-provided kubectl."
30 35 '';
31 36 }
32 -

jeirmeister2 revidoval tento gist 1753214718. Přejít na revizi

1 file changed, 32 insertions

kubernetes_shell.nix(vytvořil soubor)

@@ -0,0 +1,32 @@
1 + { pkgs ? import <nixpkgs> {} }:
2 +
3 + pkgs.mkShell {
4 + buildInputs = with pkgs; [
5 + minikube
6 + kubernetes-helm
7 + bash-completion
8 + jq
9 + docker
10 + just
11 + ];
12 +
13 + shellHook = ''
14 + echo "Development shell loaded."
15 +
16 + # Enable kubectl completion
17 + if command -v kubectl > /dev/null; then
18 + source <(kubectl completion bash)
19 + fi
20 +
21 + # Enable helm completion
22 + if command -v helm > /dev/null; then
23 + source <(helm completion bash)
24 + fi
25 +
26 + # Alias kubectl to minikube kubectl for convenience
27 + alias kubectl='minikube kubectl --'
28 +
29 + echo "Type 'kubectl' to use the Minikube-provided kubectl."
30 + '';
31 + }
32 +
Novější Starší