application

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const RolloutReconcileWaitTime = time.Second * 3

RolloutReconcileWaitTime is the time to wait before reconcile again an application still in rollout phase

Variables

This section is empty.

Functions

func CreateOrUpdateAppConfig added in v0.3.0

func CreateOrUpdateAppConfig(ctx context.Context, client client.Client, appConfig *v1alpha2.ApplicationConfiguration) error

CreateOrUpdateAppConfig will create if not exist and update if exists.

func CreateOrUpdateComponent added in v0.3.0

func CreateOrUpdateComponent(ctx context.Context, client client.Client, comp *v1alpha2.Component) error

CreateOrUpdateComponent will create if not exist and update if exists.

func Setup

func Setup(mgr ctrl.Manager) error

Setup adds a controller that reconciles ApplicationDeployment.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a Application object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile process app event

func (*Reconciler) SetupWithManager

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

SetupWithManager install to manager

func (*Reconciler) UpdateStatus added in v0.3.3

func (r *Reconciler) UpdateStatus(ctx context.Context, app *v1alpha2.Application, opts ...client.UpdateOption) error

UpdateStatus updates v1alpha2.Application's Status with retry.RetryOnConflict

Jump to

Keyboard shortcuts

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