mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-11-12 21:35:37 +00:00
✨ In case of tap re-run, update the config and start a proxy
This commit is contained in:
@@ -74,13 +74,17 @@ func updateLicense(licenseKey string) {
|
||||
log.Error().Err(err).Send()
|
||||
return
|
||||
}
|
||||
err = kubernetes.SetSecret(kubernetesProvider, "LICENSE", config.Config.License)
|
||||
updated, err := kubernetes.SetSecret(kubernetesProvider, kubernetes.SECRET_LICENSE, config.Config.License)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Send()
|
||||
return
|
||||
}
|
||||
|
||||
log.Info().Msg("Updated the license. Exiting.")
|
||||
if updated {
|
||||
log.Info().Msg("Updated the license, exiting...")
|
||||
} else {
|
||||
log.Info().Msg("Exiting...")
|
||||
}
|
||||
|
||||
go func() {
|
||||
time.Sleep(2 * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user