radio: allow setting master username/password

Change-Id: I30a99fbbf11da7dded48504b1689ef6e290e73fa
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1494
Reviewed-by: q3k <q3k@hackerspace.pl>
This commit is contained in:
q3k 2023-02-28 01:16:27 +00:00 committed by q3k
parent 7572f0790c
commit 6f0d852568

View file

@ -135,6 +135,10 @@ local kube = import "../../../kube/kube.libsonnet";
["username", cfg.icecast.relays[r].username]
] else []) + (if cfg.icecast.relays[r].password != null then [
["password", cfg.icecast.relays[r].password],
] else []) + (if cfg.icecast.relays[r].masterUsername != null then [
["master-username", cfg.icecast.relays[r].masterUsername]
] else []) + (if cfg.icecast.relays[r].masterPassword != null then [
["master-password", cfg.icecast.relays[r].masterPassword],
] else [])
for r in std.objectFields(cfg.icecast.relays)
]),