Generate kubernetes secrets for ssh keys.

This commit is contained in:
Tom Alexander
2025-12-21 18:45:49 -05:00
parent 3e13a3649a
commit 7e3fa38af6
5 changed files with 59 additions and 3 deletions

View File

@@ -114,6 +114,21 @@ makeScope newScope (
};
}
);
k8s-ssh-secrets = (
builtins.mapAttrs
(
secret_name: secret_config:
(callPackage ./package/k8s-secret-ssh/package.nix (
additional_vars // { inherit secret_name; } // secret_config
))
)
{
"kubernetes-deploy-key" = {
secret_namespace = "flux-system";
ssh_key_name = "flux_ssh_key";
};
}
);
client-configs = (
builtins.mapAttrs
(