mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-25 03:49:12 +00:00
* WIP * WIP * WIP * WIP * Update App.tsx and Header.tsx * Update createResources.go, provider.go, and 2 more files... * WIP * fix eof newlines * Fix ts imports, add readiness probe to kratos to prevent mizu being used while kratos isnt ready * cleaned code * fix install create namespace * Update package-lock.json * Update provider.go * Update provider.go * Update provider.go * Update install_controller.go * Update kratos.yml * Update start.sh * Update provider.go * Update provider.go * Update main.go, socket_routes.go, and 8 more files... * Update App.tsx * Update installRunner.go * Update App.tsx
19 lines
347 B
Go
19 lines
347 B
Go
package providers
|
|
|
|
import (
|
|
"context"
|
|
"mizuserver/pkg/config"
|
|
)
|
|
|
|
func IsInstallNeeded() (bool, error) {
|
|
if !config.Config.StandaloneMode { // install not needed in ephermeral mizu
|
|
return false, nil
|
|
}
|
|
|
|
if anyUserExists, err := AnyUserExists(context.Background()); err != nil {
|
|
return false, err
|
|
} else {
|
|
return !anyUserExists, nil
|
|
}
|
|
}
|