Skip to content

Commit

Permalink
feat(hubble): make passing the hasura-admin-secret optional in module
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 13, 2023
1 parent 4667f6f commit 8448295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hubble/hubble.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
};
hasura-admin-secret = mkOption {
type = types.string;
default = "";
};
indexers = mkOption {
type = types.listOf types.attrset;
Expand All @@ -63,10 +64,9 @@
hubble-systemd-script = pkgs.writeShellApplication {
name = "hubble-systemd";
runtimeInputs = [ pkgs.coreutils cfg.package ];

text =
let
secretArg = if cfg.hasura-admin-secret then "--secret ${cfg.hasura-admin-secret}" else "";
secretArg = if cfg.hasura-admin-secret != "" then "--secret ${cfg.hasura-admin-secret}" else "";
indexersJson = builtins.toJSON cfg.indexers;
in
''
Expand Down

0 comments on commit 8448295

Please sign in to comment.