constants

package
v0.0.0-...-a606d81 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HKSNamespace is the namespace in which all hks
	// resources will live
	HKSNamespace = "hks-core"
	// HKSServiceAccountName is the name of hks controlled
	// service account in every namespace
	HKSServiceAccountName = "hks"
	// KubernetesControlPlaneNamespace is the namespace that the control plane
	// components for Kubernetes are ran in
	KubernetesControlPlaneNamespace = "kube-system"
)
View Source
const (
	// HKSNodeIDLabelKey is the label key for the HKS node ID on nodes
	HKSNodeIDLabelKey = "hks.io/node-id"
	// HKSNodePoolIDLabelKey is the label key for the HKS node pool ID
	HKSNodePoolIDLabelKey = "hks.io/node-pool-id"
	// HKSNodeGeohashLabelKey is the label key for the HKS node geohash label
	HKSNodeGeohashLabelKey = "node.hks.io/geohash"
	// HKSClusterLabelPrefix is the prefix for cluster labels
	HKSClusterLabelPrefix = "cluster.hks.io/"
	// HKSNodePoolLabelPrefix is the prefix for node pool labels
	HKSNodePoolLabelPrefix = "nodepool.hks.io/"
)
View Source
const (
	// AuthorizationRoleFinalizerName is the name of the AuthorizationRole finalizer
	AuthorizationRoleFinalizerName = "authorizationrole.finalizers.hks.io"
	// AuthorizationRoleBindingFinalizerName is the name of the AuthorizationRoleBinding finalizer
	AuthorizationRoleBindingFinalizerName = "authorizationrolebinding.finalizers.hks.io"
)
View Source
const (
	// EC2Registry is the name of an amazon registry in hks cloud
	EC2Registry = "amazon_ec2_registry"
	// Azure is the name of an azure registry in hks cloud
	Azure = "azure"
	// Docker is the name of a docker registry in hks cloud
	Docker = "dockerhub"
	// GCR is the name of a google cloud registry in hks cloud
	GCR = "google_registry"
	// Private is the name of a private registry in hks cloud
	Private = "private"
	// Quay is the name of a quay registry in hks cloud
	Quay = "quay"
)

HKS provider registry names

View Source
const BaseHKSManagedLabelString = "hks.io/managed=true"

BaseHKSManagedLabelString is the hks managed label as a string

View Source
const (
	// ClusterManagementPluginType is the name of the cluster management plugin type
	ClusterManagementPluginType = "cluster_management"
)
View Source
const (
	// HKSMount is the base HKS mount
	HKSMount = "/etc/hks"
)
View Source
const (
	// PluginHistoryAnnotation is used to keep track of previous versions of a plugin
	PluginHistoryAnnotation = "hks.io/plugin-history"
)

HKS 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 BuildHKSLabelMap

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

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

func GetHKSManagedSelector

func GetHKSManagedSelector() labels.Selector

GetHKSManagedSelector returns a label selector that selects HKS-managed resources

func IsHKSManaged

func IsHKSManaged(obj interface{}) bool

IsHKSManaged takes in a resource and looks to see if it is being managed by hks

Types

This section is empty.

Jump to

Keyboard shortcuts

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