v2

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearRoutingMeta

func ClearRoutingMeta(ctx context.Context, r *v1.Route, accs ...Accessor) error

ClearRoutingMeta removes any labels for a named route from given accessors.

func GetListAnnValue

func GetListAnnValue(annotations map[string]string, key string) sets.String

GetListAnnValue finds a given value in a comma-separated annotation. returns the entire annotation value and true if found.

func SyncRoutingMeta

func SyncRoutingMeta(ctx context.Context, r *v1.Route, cacc *Configuration, racc *Revision) error

SyncRoutingMeta makes sure that the revisions and configurations referenced from a Route are labeled with the routingState label and routes annotation.

Types

type Accessor

type Accessor interface {
	// contains filtered or unexported methods
}

Accessor defines an abstraction for manipulating labeled entity (Configuration, Revision) with shared logic.

type Configuration

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

Configuration is an implementation of Accessor for Configurations.

func NewConfigurationAccessor

func NewConfigurationAccessor(
	client clientset.Interface,
	tracker tracker.Interface,
	lister listers.ConfigurationLister,
	indexer cache.Indexer,
	clock clock.Clock) *Configuration

NewConfigurationAccessor is a factory function to make a new configuration Accessor.

type Revision

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

Revision is an implementation of Accessor for Revisions.

func NewRevisionAccessor

func NewRevisionAccessor(
	client clientset.Interface,
	tracker tracker.Interface,
	lister listers.RevisionLister,
	indexer cache.Indexer,
	clock clock.Clock) *Revision

NewRevisionAccessor is a factory function to make a new revision accessor.

Jump to

Keyboard shortcuts

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