cloudprovider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonDefaultLabels

func CommonDefaultLabels() map[string]string

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

func DetectProvider(ctx context.Context, k kubernetes.Interface) (Provider, error)

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.

Jump to

Keyboard shortcuts

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