INNER CODE UNIT · Go

rollbackTimeout

kubenav/kubenav · cmd/kubenav/helm.go:166

	rollbackTimeout := time.Duration(rollbackOptions.Timeout) * time.Second

	return client.RollbackRelease(name, version, rollbackOptions.CleanupOnFail, rollbackOptions.DryRun, rollbackOptions.Force, rollbackOptions.MaxHistory, rollbackOptions.DisableHooks, rollbackOptions.Recreate, rollbackTimeout, rollbackOptions.Wait, rollbackOptions.WaitForJobs)
}

// HelmUninstallRelease uninstalls a Helm release. The Helm release is
// identified by it's namespace and name. If an error occures during the process
// the error is returned. If the operation was successful the uninstall message
// is returned.
func HelmUninstallRelease(clusterServer, clusterTLSServerName, clusterCertificateAuthorityData string, clusterInsecureSkipTLSVerify bool, userClientCertificateData, userClientKeyData, userToken, userUsername, userPassword, proxy string, timeout int64, namespace, name string, options string) (_ string, err error) {
	defer func() {
		if r := recover(); r != nil {
			err = fmt.Errorf("panic: %#v", r)
		}
	}()

	restConfig, _, err := kube.NewClient(clusterServer, clusterTLSServerName, clusterCertificateAuthorityData, clusterInsecureSkipTLSVerify, userClientCertificateData, userClientKeyData, userToken, userUsername, userPassword, proxy, timeout)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…