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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.