helmrelease

package
v0.0.310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelmReleaseFinalizer = "helmrelease.application.kubesphere.io"
	MaxBackoffTime       = 15 * time.Minute
)

Variables

View Source
var (
	ErrGetRepoFailed              = errors.New("get repo failed")
	ErrGetAppFailed               = errors.New("get app failed")
	ErrAppVersionDataIsEmpty      = errors.New("app version data is empty")
	ErrGetAppVersionFailed        = errors.New("get app version failed")
	ErrLoadChartFailed            = errors.New("load chart failed")
	ErrS3Config                   = errors.New("invalid s3 config")
	ErrLoadChartFromStorageFailed = errors.New("load chart from storage failed")
)

Functions

This section is empty.

Types

type ReconcileHelmRelease

type ReconcileHelmRelease struct {
	StorageClient s3.Interface
	KsFactory     externalversions.SharedInformerFactory
	client.Client

	MultiClusterEnable bool

	MaxConcurrent int
	// wait time when check release is ready or not
	WaitTime time.Duration

	StopChan <-chan struct{}
	// contains filtered or unexported fields
}

ReconcileWorkspace reconciles a Workspace object

func (*ReconcileHelmRelease) GetChartData

func (r *ReconcileHelmRelease) GetChartData(rls *v1alpha1.HelmRelease) (chartName string, chartData []byte, err error)

func (*ReconcileHelmRelease) Reconcile

func (r *ReconcileHelmRelease) Reconcile(request reconcile.Request) (reconcile.Result, error)
=========================>
^                         |
|        <==upgraded<==upgrading================
|        \      =========^                     /
|         |   /                               |

creating=>created===>active=====>deleting=>deleted |

\    ^           /                     |
 \   |  /======>                      /
  \=>failed<==========================

Reconcile reads that state of the cluster for a helmreleases object and makes changes based on the state read and what is in the helmreleases.Spec +kubebuilder:rbac:groups=application.kubesphere.io,resources=helmreleases,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=application.kubesphere.io,resources=helmreleases/status,verbs=get;update;patch

func (*ReconcileHelmRelease) SetupWithManager

func (r *ReconcileHelmRelease) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL