Files
nix-config-ryan4yin/outputs/x86_64-linux/tests/security-k3s-kubeconfig/expected.nix
T

11 lines
311 B
Nix

{
lib,
outputs,
}:
lib.genAttrs (builtins.attrNames outputs.nixosConfigurations) (name: {
# Only the control-plane (master) nodes write the admin kubeconfig; agents
# (workers) connect to the master and have no --write-kubeconfig-* flags.
mode600 = lib.hasInfix "-master-" name;
mode644 = false;
})