Do POST /license after Hub is started

This commit is contained in:
M. Mert Yildiran
2023-01-31 22:31:44 +03:00
parent 4cb4ba568b
commit 17e038e703
3 changed files with 35 additions and 0 deletions

View File

@@ -398,6 +398,10 @@ func postHubStarted(ctx context.Context, kubernetesProvider *kubernetes.Provider
connector.PostRegexToHub(config.Config.Tap.PodRegexStr, state.targetNamespaces)
if config.Config.License != "" {
connector.PostLicense(config.Config.License)
}
url := kubernetes.GetLocalhostOnPort(config.Config.Tap.Proxy.Hub.SrcPort)
log.Info().Str("url", url).Msg(fmt.Sprintf(utils.Green, "Hub is available at:"))
}