constants

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContainershipNamespace is that namespace in which all containership
	// resources will live
	ContainershipNamespace = "containership-core"
	// ContainershipServiceAccountName is the name of containership controlled
	// service account in every namespace
	ContainershipServiceAccountName = "containership"
)
View Source
const (
	// EC2Registry is the name of an amazon registry in containership cloud
	EC2Registry = "amazon_ec2_registry"
	// Azure is the name of an azure registry in containership cloud
	Azure = "azure"
	// Docker is the name of a docker registry in containership cloud
	Docker = "dockerhub"
	// GCR is the name of a google cloud registry in containership cloud
	GCR = "google_registry"
	// Private is the name of a private registry in containership cloud
	Private = "private"
	// Quay is the name of a quay registry in containership cloud
	Quay = "quay"
)

Containership provider registry names

View Source
const BaseContainershipManagedLabelString = "containership.io/managed=true"

BaseContainershipManagedLabelString is the containership managed label as a string

View Source
const (
	// ContainershipMount is the base Containership mount
	ContainershipMount = "/etc/containership"
)
View Source
const (
	// SyncJitterFactor is used to avoid periodic and simultaneous syncs
	SyncJitterFactor = 0.1
)

TODO this const block should be scoped to a sync-specific package after we refactor appropriately

Variables

This section is empty.

Functions

func BuildContainershipLabelMap

func BuildContainershipLabelMap(additionalLabels map[string]string) map[string]string

BuildContainershipLabelMap builds a map of labels that should be attached to any Containership-managed resources. If additionalLabels is non-nil, they will be included in the returned map.

func GetContainershipManagedSelector

func GetContainershipManagedSelector() labels.Selector

GetContainershipManagedSelector returns a label selector that selects Containership-managed resources

func IsContainershipManaged

func IsContainershipManaged(obj interface{}) bool

IsContainershipManaged takes in a resource and looks to see if it is being managed by containership

Types

This section is empty.

Jump to

Keyboard shortcuts

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