Documentation ¶
Index ¶
- func ClearRoutingMeta(ctx context.Context, r *v1.Route, accs ...Accessor) error
- func GetListAnnValue(annotations map[string]string, key string) sets.String
- func SyncRoutingMeta(ctx context.Context, r *v1.Route, cacc *Configuration, racc *Revision) error
- type Accessor
- type Configuration
- type Revision
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRoutingMeta ¶
ClearRoutingMeta removes any labels for a named route from given accessors.
func GetListAnnValue ¶
GetListAnnValue finds a given value in a comma-separated annotation. returns the entire annotation value and true if found.
func SyncRoutingMeta ¶
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.
Click to show internal directories.
Click to hide internal directories.