Fix docker credential generation.

This commit is contained in:
Tom Alexander
2026-07-23 20:08:15 -04:00
parent 84e8983974
commit 5dd5f2e4e0

View File

@@ -63,6 +63,7 @@ let
username = builtins.readFile "${./secrets/flux-system/registry-credentials/username}"; username = builtins.readFile "${./secrets/flux-system/registry-credentials/username}";
password = builtins.readFile "${./secrets/flux-system/registry-credentials/password}"; password = builtins.readFile "${./secrets/flux-system/registry-credentials/password}";
email = builtins.readFile "${./secrets/flux-system/registry-credentials/email}"; email = builtins.readFile "${./secrets/flux-system/registry-credentials/email}";
address = builtins.readFile "${./secrets/flux-system/registry-credentials/address}";
}) })
// { // {
# "__annotations" = { # "__annotations" = {
@@ -207,16 +208,21 @@ let
username, username,
password, password,
email, email,
address,
}: }:
let let
in in
{ {
"__type" = "kubernetes.io/dockerconfigjson"; "__type" = "kubernetes.io/dockerconfigjson";
".dockerconfigjson" = builtins.toJSON { ".dockerconfigjson" = builtins.toJSON {
auths = {
"${address}" = {
inherit username password email; inherit username password email;
"auth" = toBase64 "${username}:${password}"; "auth" = toBase64 "${username}:${password}";
}; };
}; };
};
};
## dex ## dex
get_dex_config = get_dex_config =
client_id: client_id: