applicationrollout

package
v1.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, args controller.Args, _ logging.Logger) error

Setup adds a controller that reconciles AppRollout.

Types

type Reconciler

type Reconciler struct {
	client.Client

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles an AppRollout object

func NewReconciler added in v1.0.4

func NewReconciler(c client.Client, dm discoverymapper.DiscoveryMapper, record event.Recorder, scheme *runtime.Scheme) *Reconciler

NewReconciler render a applicationRollout reconciler

func (*Reconciler) DoReconcile added in v1.0.4

func (r *Reconciler) DoReconcile(ctx context.Context, appRollout *v1beta1.AppRollout) (res reconcile.Result, retErr error)

DoReconcile is real reconcile logic for appRollout. !!! Note the AppRollout object should not be updated in this function as it could be logically used in Application reconcile loop which does not have real AppRollout object.

func (*Reconciler) Reconcile

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

Reconcile is the main logic of appRollout controller nolint:gocyclo

func (*Reconciler) SetupWithManager

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

SetupWithManager setup the controller with manager

Jump to

Keyboard shortcuts

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