Documentation ¶
Overview ¶
Package kubernetes provides cluster-wide kubernetes utilities.
Index ¶
- func ConvertToStaticPods(ctx context.Context, cluster ConvertProvider, options ConvertOptions) error
- func IsSelfHostedControlPlane(ctx context.Context, cluster cluster.ClientProvider, node string) (bool, error)
- func UpgradeSelfHosted(ctx context.Context, cluster cluster.K8sProvider, options UpgradeOptions) error
- func UpgradeTalosManaged(ctx context.Context, cluster UpgradeProvider, options UpgradeOptions) error
- type ConvertOptions
- type ConvertProvider
- type UpgradeOptions
- type UpgradeProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStaticPods ¶ added in v0.9.0
func ConvertToStaticPods(ctx context.Context, cluster ConvertProvider, options ConvertOptions) error
ConvertToStaticPods the self-hosted Kubernetes control plane to Talos-managed static pods-based control plane.
nolint: gocyclo
func IsSelfHostedControlPlane ¶ added in v0.9.0
func IsSelfHostedControlPlane(ctx context.Context, cluster cluster.ClientProvider, node string) (bool, error)
IsSelfHostedControlPlane returns true if cluster is still running bootkube self-hosted control plane.
func UpgradeSelfHosted ¶ added in v0.9.0
func UpgradeSelfHosted(ctx context.Context, cluster cluster.K8sProvider, options UpgradeOptions) error
UpgradeSelfHosted the Kubernetes control plane.
nolint: gocyclo
func UpgradeTalosManaged ¶ added in v0.9.0
func UpgradeTalosManaged(ctx context.Context, cluster UpgradeProvider, options UpgradeOptions) error
UpgradeTalosManaged the Kubernetes control plane.
nolint: gocyclo
Types ¶
type ConvertOptions ¶ added in v0.9.0
type ConvertOptions struct { ControlPlaneEndpoint string ForceYes bool // contains filtered or unexported fields }
ConvertOptions are options for convert tasks.
type ConvertProvider ¶ added in v0.9.0
type ConvertProvider interface { cluster.ClientProvider cluster.K8sProvider }
ConvertProvider are the cluster interfaces required by converter.
type UpgradeOptions ¶ added in v0.8.0
type UpgradeOptions struct { FromVersion string ToVersion string ControlPlaneEndpoint string // contains filtered or unexported fields }
UpgradeOptions represents Kubernetes control plane upgrade settings.
type UpgradeProvider ¶ added in v0.9.0
type UpgradeProvider interface { cluster.ClientProvider cluster.K8sProvider }
UpgradeProvider are the cluster interfaces required by upgrade process.