-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup kubernetes, add kubectl-rook-ceph package, fix/add overlays
- Loading branch information
Showing
21 changed files
with
215 additions
and
208 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,57 @@ | ||
{ lib, ... }: | ||
{ | ||
imports = [ | ||
./kubecm | ||
./kubecolor | ||
./kubectl | ||
./stern | ||
./talhelper | ||
./utilities | ||
]; | ||
|
||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
let | ||
cfg = config.modules.kubernetes; | ||
in | ||
{ | ||
options.modules.kubernetes = { | ||
enable = lib.mkEnableOption "kubernetes"; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
home.packages = | ||
(with pkgs; [ | ||
fluxcd | ||
helmfile | ||
krew | ||
kubecm | ||
kubeconform | ||
kubernetes-helm | ||
kubecolor | ||
kubectl-rook-ceph | ||
minio-client | ||
talhelper | ||
]) | ||
++ (with pkgs.unstable; [ | ||
kubectl | ||
kubectl-cnpg | ||
kubectl-node-shell | ||
kubectl-view-secret | ||
stern | ||
talosctl | ||
]); | ||
|
||
programs.fish = { | ||
interactiveShellInit = '' | ||
fish_add_path $HOME/.krew/bin | ||
${lib.getExe pkgs.unstable.kubecm} completion fish | source | ||
''; | ||
|
||
functions = { | ||
k = { | ||
description = "kubectl shorthand"; | ||
wraps = "kubectl"; | ||
body = builtins.readFile ./functions/k.fish; | ||
}; | ||
}; | ||
|
||
shellAliases = { | ||
kc = "kubecm"; | ||
}; | ||
}; | ||
}; | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.