constants

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContainershipNamespace is the 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"
	// KubernetesControlPlaneNamespace is the namespace that the control plane
	// components for Kubernetes are ran in
	KubernetesControlPlaneNamespace = "kube-system"
)
View Source
const (
	// ContainershipNodeIDLabelKey is the label key for the Containership node ID on nodes
	ContainershipNodeIDLabelKey = "containership.io/node-id"
	// ContainershipNodePoolIDLabelKey is the label key for the Containership node pool ID
	ContainershipNodePoolIDLabelKey = "containership.io/node-pool-id"
	// ContainershipClusterLabelPrefix is the prefix for cluster labels
	ContainershipClusterLabelPrefix = "cluster.containership.io/"
	// ContainershipNodePoolLabelPrefix is the prefix for node pool labels
	ContainershipNodePoolLabelPrefix = "nodepool.containership.io/"
)
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 (
	// ClusterManagementPluginType is the name of the cluster management plugin type
	ClusterManagementPluginType = "cluster_management"
)
View Source
const (
	// ContainershipMount is the base Containership mount
	ContainershipMount = "/etc/containership"
)
View Source
const (
	// PluginHistoryAnnotation is used to keep track of previous versions of a plugin
	PluginHistoryAnnotation = "containership.io/plugin-history"
)

Containership managed annotations

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