revision

package
v0.20.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// TODO(bob): Add these to Revision type
	AcceptancePercentage uint32 = 50
)

Variables

View Source
var (
	AcceptanceTargets = map[string]bool{"production": true}
)

Functions

func Add

func Add(mgr manager.Manager, c utils.Config) error

Add creates a new Revision Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type NoopPromAPI

type NoopPromAPI struct{}

func (*NoopPromAPI) IsRevisionTriggered

func (n *NoopPromAPI) IsRevisionTriggered(ctx context.Context, name, tag string, withCanary bool) (bool, []string, error)

type PromAPI

type PromAPI interface {
	IsRevisionTriggered(ctx context.Context, name, tag string, withCanary bool) (bool, []string, error)
}

type ReconcileRevision

type ReconcileRevision struct {
	// contains filtered or unexported fields
}

ReconcileRevision reconciles a Revision object

func (*ReconcileRevision) LabelWithAppAndFleets

func (r *ReconcileRevision) LabelWithAppAndFleets(log logr.Logger, revision *picchuv1alpha1.Revision) error

func (*ReconcileRevision) NoRequeue

func (r *ReconcileRevision) NoRequeue(log logr.Logger, err error) (reconcile.Result, error)

func (*ReconcileRevision) Reconcile

func (r *ReconcileRevision) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Revision object and makes changes based on the state read and what is in the Revision.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ReconcileRevision) Requeue

func (r *ReconcileRevision) Requeue(log logr.Logger, err error) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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