From 929ffff75f7b164af7f40b12beb44fc9e24da783 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Tue, 13 Feb 2024 13:20:00 -0800 Subject: [PATCH] Return metrics base URL with the embedded cluster join command response (#4443) --- pkg/handlers/embedded_cluster_node_join_command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/handlers/embedded_cluster_node_join_command.go b/pkg/handlers/embedded_cluster_node_join_command.go index 9394ad03fa..1d67f780d8 100644 --- a/pkg/handlers/embedded_cluster_node_join_command.go +++ b/pkg/handlers/embedded_cluster_node_join_command.go @@ -21,6 +21,7 @@ type GetEmbeddedClusterNodeJoinCommandResponse struct { K0sToken string `json:"k0sToken"` K0sUnsupportedOverrides string `json:"k0sUnsupportedOverrides"` EndUserK0sConfigOverrides string `json:"endUserK0sConfigOverrides"` + MetricsBaseURL string `json:"metricsBaseURL"` } type GenerateEmbeddedClusterNodeJoinCommandRequest struct { @@ -139,5 +140,6 @@ func (h *Handler) GetEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *ht K0sToken: k0sToken, K0sUnsupportedOverrides: k0sUnsupportedOverrides, EndUserK0sConfigOverrides: endUserK0sConfigOverrides, + MetricsBaseURL: install.Spec.MetricsBaseURL, }) }