ccm

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "ccm"

	HelmRepo = "https://charts.hetzner.cloud"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CCM

type CCM struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *CCM

func (*CCM) Enabled

func (m *CCM) Enabled() bool

func (*CCM) Helm

func (m *CCM) Helm() *helm.Config

func (*CCM) LoadbalancersEnabled

func (m *CCM) LoadbalancersEnabled() bool

func (*CCM) Manage

func (m *CCM) Manage(ctx *program.Context, prov *kubernetes.Provider, mgmt *manager.ClusterManager) error

func (*CCM) Name

func (m *CCM) Name() string

func (*CCM) SetClusterCIDR

func (m *CCM) SetClusterCIDR(cidr string)

func (*CCM) SetHelm

func (m *CCM) SetHelm(h *helm.Config)

func (*CCM) Supported

func (m *CCM) Supported(distr string) bool

func (*CCM) WithEnableNodeController

func (m *CCM) WithEnableNodeController() *CCM

func (*CCM) WithLoadbalancerPrivateIPUsage

func (m *CCM) WithLoadbalancerPrivateIPUsage() *CCM

func (*CCM) WithNetworking

func (m *CCM) WithNetworking() *CCM

type Config

type Config struct {
	// Enabled is a flag to enable or disable hcloud CCM.
	Enabled bool
	Helm    *helm.Config
	// LoadbalancersEnabled is a flag to enable or disable loadbalancers management. Note: internal loadbalancer for k3s will be disabled.
	LoadbalancersEnabled bool `json:"loadbalancers-enabled" yaml:"loadbalancers-enabled"`
	// DefaultloadbalancerLocation is a default location for the loadbancers.
	LoadbalancersDefaultLocation string `json:"loadbalancers-default-location" yaml:"loadbalancers-default-location"`
	// Token is a hcloud token to access hcloud API for CCM.
	Token string
}

Jump to

Keyboard shortcuts

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