1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/programs/kubeswitch/example-settings.nix
Ludovic Ortega af8a884164 kubeswitch: add module
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-05 16:30:54 -05:00

35 lines
782 B
Nix

{
programs.kubeswitch = {
enable = true;
settings = {
kind = "SwitchConfig";
version = "v1alpha1";
kubeconfigName = "*.myconfig";
kubeconfigStores = [
{
kind = "filesystem";
kubeconfigName = "*.myconfig";
paths = [
"~/.kube/my-other-kubeconfigs/"
];
}
];
};
};
nmt.script = ''
assertFileContent \
home-files/.kube/switch-config.yaml \
${builtins.toFile "example-settings-expected.yaml" ''
kind: SwitchConfig
kubeconfigName: '*.myconfig'
kubeconfigStores:
- kind: filesystem
kubeconfigName: '*.myconfig'
paths:
- ~/.kube/my-other-kubeconfigs/
version: v1alpha1
''}
'';
}