diff --git a/.changelog/16006.txt b/.changelog/16006.txt new file mode 100644 index 00000000000..1b1c1142535 --- /dev/null +++ b/.changelog/16006.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Added a ui.label block to agent config, letting operators set a visual label and color for their Nomad instance +``` diff --git a/nomad/structs/config/ui_test.go b/nomad/structs/config/ui_test.go index d310403b530..337ab3ca1c4 100644 --- a/nomad/structs/config/ui_test.go +++ b/nomad/structs/config/ui_test.go @@ -18,6 +18,11 @@ func TestUIConfig_Merge(t *testing.T) { Vault: &VaultUIConfig{ BaseUIURL: "http://vault.example.com:8200", }, + Label: &LabelUIConfig{ + Text: "Example Cluster", + BackgroundColor: "blue", + TextColor: "#fff", + }, } testCases := []struct { @@ -64,6 +69,7 @@ func TestUIConfig_Merge(t *testing.T) { BaseUIURL: "http://consul-other.example.com:8500", }, Vault: &VaultUIConfig{}, + Label: &LabelUIConfig{}, }, }, }