tmpl

package
v0.0.0-...-987ecbf Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cloudinit

func Cloudinit(config ClusterConfig, templateName string) string

func DefaultClusterFile

func DefaultClusterFile(clusterName string) ([]byte, error)

func Expand

func Expand(t *template.Template, templateName string, config ClusterConfig) string

func Parse

func Parse(files embed.FS, directory string) *template.Template

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
}

Jump to

Keyboard shortcuts

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