labeler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package labeler holds the logic that applies Route labels to Configurations to implement knative/serving#226. We run this as a separate reconciliation because we may choose to relax the 1:N relationship between Route:Configuration in the future.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouteToConfigurationController

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

NewRouteToConfigurationController wraps a new instance of the labeler that labels Configurations with Routes in a controller.

Types

type Reconciler

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

Reconciler implements controller.Reconciler for Route resources.

func (*Reconciler) Reconcile

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

Reconcile compares the actual state with the desired, and attempts to converge the two. In this case, it attempts to label all Configurations with the Routes that direct traffic to their Revisions.

Jump to

Keyboard shortcuts

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