Documentation
¶
Index ¶
Constants ¶
View Source
const LatestVersion = "latest"
Variables ¶
View Source
var UpgradeCmd = &cobra.Command{ Use: "upgrade", Short: "Upgrade tKeel platform.", PreRun: func(cmd *cobra.Command, args []string) { checkDapr() initVersion() if path, err := utils.GetRealPath(configFile); err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } else { configFile = path } }, Example: ` # Initialize Keel in Kubernetes tkeel init # Initialize Keel in Kubernetes and wait for the installation to complete (default timeout is 300s/5m) tkeel init --wait --timeout 600 `, Run: func(cmd *cobra.Command, args []string) { print.PendingStatusEvent(os.Stdout, "Making the jump to hyperspace...") config := kubernetes.InitConfiguration{ Namespace: daprStatus.Namespace, KeelVersion: keelVersion, CoreVersion: coreVersion, RudderVersion: rudderVersion, MiddlewareVersion: middlewareVersion, DaprVersion: daprStatus.Version, EnableMTLS: enableMTLS, EnableHA: enableHA, Args: values, Wait: wait, Timeout: timeout, DebugMode: debugMode, Repo: &kitconfig.Repo{ Url: repoURL, Name: repoName, }, ConfigFile: configFile, ImagePolicy: policy, } err := kubernetes.Upgrade(config) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } successEvent := "Success! tKeel Platform upgrade success!" print.SuccessStatusEvent(os.Stdout, successEvent) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.