Skip to content

Commit

Permalink
Return metrics base URL with the embedded cluster join command respon…
Browse files Browse the repository at this point in the history
…se (#4443)
  • Loading branch information
sgalsaleh authored Feb 13, 2024
1 parent 2f8d326 commit 929ffff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/handlers/embedded_cluster_node_join_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -139,5 +140,6 @@ func (h *Handler) GetEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *ht
K0sToken: k0sToken,
K0sUnsupportedOverrides: k0sUnsupportedOverrides,
EndUserK0sConfigOverrides: endUserK0sConfigOverrides,
MetricsBaseURL: install.Spec.MetricsBaseURL,
})
}

0 comments on commit 929ffff

Please sign in to comment.