mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-20 05:23:38 +00:00
⚡ Add KUBESHARK_DISABLE_VERSION_CHECK
environment variable to opt out of version checking
This commit is contained in:
parent
6f6c64c87c
commit
cb0c452dd2
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
@ -18,6 +19,10 @@ import (
|
||||
)
|
||||
|
||||
func CheckNewerVersion() {
|
||||
if os.Getenv("KUBESHARK_DISABLE_VERSION_CHECK") != "" {
|
||||
return
|
||||
}
|
||||
|
||||
log.Info().Msg("Checking for a newer version...")
|
||||
start := time.Now()
|
||||
client := github.NewClient(nil)
|
||||
|
Loading…
Reference in New Issue
Block a user