typeconfig

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTypeConfigName added in v0.0.4

func CheckTypeConfigName(typeConfig Interface) error

CheckTypeConfigName checks that the name of the type config is '<target plural name>[.<target group name>]'.

func GroupQualifiedName added in v0.0.4

func GroupQualifiedName(apiResource metav1.APIResource) string

GroupQualifiedName returns the plural name of the api resource optionally qualified by its group:

'<target plural name>[.<target group name>]'

This is the naming scheme for FederatedTypeConfig resources. The scheme ensures that, for a given federation control plane, federation of a target type will be configured by at most one FederatedTypeConfig.

Types

type Interface

type Interface interface {
	GetObjectMeta() metav1.ObjectMeta
	GetTarget() metav1.APIResource
	GetNamespaced() bool
	GetComparisonField() common.VersionComparisonField
	GetPropagationEnabled() bool
	GetTemplate() metav1.APIResource
	GetPlacement() metav1.APIResource
	GetOverride() *metav1.APIResource
	GetStatus() *metav1.APIResource
	GetEnableStatus() bool
}

Interface defines how to interact with a FederatedTypeConfig

Jump to

Keyboard shortcuts

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