mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-20 13:33:48 +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"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -18,6 +19,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CheckNewerVersion() {
|
func CheckNewerVersion() {
|
||||||
|
if os.Getenv("KUBESHARK_DISABLE_VERSION_CHECK") != "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
log.Info().Msg("Checking for a newer version...")
|
log.Info().Msg("Checking for a newer version...")
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
client := github.NewClient(nil)
|
client := github.NewClient(nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user