mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-05-10 11:16:44 +00:00
* Rename `mizu` to `kubeshark` * Rename `up9inc` to `kubeshark` * Change the logo, title, motto and the main color * Replace the favicon * Update the docs link * Change the copyright text in C files * Remove a comment * Rewrite the `README.md` and update the logo and screenshots used in it * Add a `TODO` * Fix the grammar * Fix the bottom text in the filtering guide * Change the Docker Hub username of cross-compilation intermediate images * Add an install script * Fix `docker/login-action` in the CI * Delete `build-custom-branch.yml` GitHub workflow * Update `README.md` * Remove `install.sh` * Change the motto back to "Traffic viewer for Kubernetes"
34 lines
1013 B
Go
34 lines
1013 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/kubeshark/kubeshark/cli/bucket"
|
|
"github.com/kubeshark/kubeshark/cli/config"
|
|
"github.com/kubeshark/kubeshark/logger"
|
|
)
|
|
|
|
func runKubesharkInstall() {
|
|
// TODO: Remove this function
|
|
if config.Config.Install.Out {
|
|
bucketProvider := bucket.NewProvider(config.Config.Install.TemplateUrl, bucket.DefaultTimeout)
|
|
installTemplate, err := bucketProvider.GetInstallTemplate(config.Config.Install.TemplateName)
|
|
if err != nil {
|
|
logger.Log.Errorf("Failed getting install template, err: %v", err)
|
|
return
|
|
}
|
|
|
|
fmt.Print(installTemplate)
|
|
return
|
|
}
|
|
|
|
var sb strings.Builder
|
|
sb.WriteString("Hello! This command can be used to install Kubeshark Pro edition on your Kubernetes cluster.")
|
|
sb.WriteString("\nPlease run:")
|
|
sb.WriteString("\n\tkubeshark install -o | kubectl apply -n kubeshark -f -")
|
|
sb.WriteString("\n\nor use helm chart as described in https://getkubeshark.io/docs/installing-kubeshark/centralized-installation\n")
|
|
|
|
fmt.Print(sb.String())
|
|
}
|