serving

package
v0.0.0-...-4b790d4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LastActiveRevision = "experimental.serving.knative.dev/last-active-annotation"
)

Variables

This section is empty.

Functions

func NewController

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

Types

type Config

type Config struct {
	EventSink string `default:"http://localhost:8080"`
}

type Reconciler

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

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, o *v1.Service) reconciler.Event

FinalizeKind implements custom logic to finalize v1.Service. Any changes to the objects .Status or .Finalizers will be ignored. Returning a nil or Normal type reconciler.Event will allow the finalizer to be deleted on the resource. The resource passed to FinalizeKind will always have a set deletion timestamp.

func (*Reconciler) ObserveDeletion

func (r *Reconciler) ObserveDeletion(ctx context.Context, key types.NamespacedName) error

ObserveDeletion implements custom logic to observe deletion of the respective resource with the given key.

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, ksvc *v1.Service) reconciler.Event

ReconcileKind implements custom logic to reconcile v1.Service. Any changes to the objects .Status or .Finalizers will be propagated to the stored object. It is recommended that implementors do not call any update calls for the Kind inside of ReconcileKind, it is the responsibility of the calling controller to propagate those properties. The resource passed to ReconcileKind will always have an empty deletion timestamp.

Jump to

Keyboard shortcuts

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