Documentation ¶
Index ¶
- Constants
- Variables
- type ReconcileHelmRelease
- func (r *ReconcileHelmRelease) GetChartData(rls *v1alpha1.HelmRelease) (chartName string, chartData []byte, err error)
- func (r *ReconcileHelmRelease) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileHelmRelease) SetupWithManager(mgr ctrl.Manager) error
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(ctx context.Context, 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
Click to show internal directories.
Click to hide internal directories.