Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonDefaultLabels ¶
CommonDefaultLabels returns labels that must be applied to every node provisioned by unbounded, regardless of the detected cloud provider.
Types ¶
type AKSProvider ¶
type AKSProvider struct {
// ClusterName is the value of the kubernetes.azure.com/cluster label
// read from a system-mode node.
ClusterName string
}
AKSProvider implements Provider for Azure Kubernetes Service clusters.
func (*AKSProvider) DefaultLabels ¶
func (p *AKSProvider) DefaultLabels() map[string]string
func (*AKSProvider) ID ¶
func (p *AKSProvider) ID() string
type Provider ¶
type Provider interface {
// ID returns a stable identifier for the provider (e.g. "microsoft-aks").
ID() string
// DefaultLabels returns labels that must be present on every node
// provisioned in this cluster. These labels take precedence over
// user-specified labels.
DefaultLabels() map[string]string
}
Provider represents a Kubernetes cluster provider and its default node configuration for unbounded machines.
func DetectProvider ¶
DetectProvider probes the cluster to identify the Kubernetes provider. It returns nil when the provider cannot be determined (e.g. vanilla Kubernetes, on-prem, k3s). A non-nil error indicates a transient failure during detection, not an unknown provider.
Click to show internal directories.
Click to hide internal directories.