Documentation
¶
Index ¶
- func Cloudinit(config ClusterConfig, templateName string) string
- func DefaultClusterFile(clusterName string) ([]byte, error)
- func Expand(t *template.Template, templateName string, config ClusterConfig) string
- func Parse(files embed.FS, directory string) *template.Template
- func WriteKustomizeFiles(config ClusterConfig) error
- type ClusterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cloudinit ¶
func Cloudinit(config ClusterConfig, templateName string) string
func DefaultClusterFile ¶
func WriteKustomizeFiles ¶
func WriteKustomizeFiles(config ClusterConfig) error
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
ApiEndpoint string
HetznerApiToken string
ClusterName string
PrivateIpRange string // TODO define IpRange map[string]string and read as {{.IpRange.PrivateNetwork}} etc - maybe rename to ClusterNetwork
ClusterNetworkId string
PodIpRange string
ServiceIpRange string
InstallDirectory string
JoinToken string
K3sReleaseChannel string
KubernetesVersion string
HetzanetesTag string
ClusterYaml string
SshPublicKey string
SshPrivateKey string
}
Click to show internal directories.
Click to hide internal directories.