mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
* added more info to features.md * added details to FEATURES.md * . * reset to last commit * Update FEATURES.md * feat: add flags to disable slow health and latest version checks - Introduce --no-health and --no-latest CLI flags - Support HD_NO_HEALTH and HD_NO_LATEST environment variables - Skip slow k8s health checks and latest version fetching when flags are set - Optimize frontend data fetching based on these flags * chore: fix lint errors in InstalledPackageCard.tsx * chore: remove accidental lockfile changes
This commit is contained in:
committed by
GitHub
parent
323a60fe31
commit
65a250e2a4
@@ -29,6 +29,8 @@ type Server struct {
|
||||
NoTracking bool
|
||||
Devel bool
|
||||
LocalCharts []string
|
||||
NoHealth bool
|
||||
NoLatest bool
|
||||
}
|
||||
|
||||
func (s *Server) StartServer(ctx context.Context, cancel context.CancelFunc) (string, utils.ControlChan, error) {
|
||||
@@ -40,6 +42,9 @@ func (s *Server) StartServer(ctx context.Context, cancel context.CancelFunc) (st
|
||||
data.LocalCharts = s.LocalCharts
|
||||
data.StatusInfo.Analytics = (!s.NoTracking && s.Version != "0.0.0") || utils.EnvAsBool("HD_DEV_ANALYTICS", false)
|
||||
|
||||
data.StatusInfo.NoHealth = s.NoHealth || utils.EnvAsBool("HD_NO_HEALTH", false)
|
||||
data.StatusInfo.NoLatest = s.NoLatest || utils.EnvAsBool("HD_NO_LATEST", false)
|
||||
|
||||
err = s.detectClusterMode(data)
|
||||
if err != nil {
|
||||
return "", nil, errorx.Decorate(err, "Failed to detect cluster mode")
|
||||
|
||||
Reference in New Issue
Block a user