appstartcommand

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl

NewController creates a new controller capable of reconciling Kf App start commands.

This is a separate reconciler from apps beause it relies on an external resource that may be slow to look up.

Types

type ImageConfigFetcher

type ImageConfigFetcher func(image string) (*containerregistryv1.ConfigFile, error)

type Reconciler

type Reconciler struct {
	*reconciler.Base
	// contains filtered or unexported fields
}

func (*Reconciler) ApplyChanges

func (r *Reconciler) ApplyChanges(ctx context.Context, app *v1alpha1.App) error

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile is called by knative/pkg when a new event is observed by one of the watchers in the controller.

func (*Reconciler) RequiresUpdate

func (*Reconciler) RequiresUpdate(actual, desired *v1alpha1.App) bool

RequiresUpdate returns whether the resource needs an update from the actual state.

Jump to

Keyboard shortcuts

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