v1beta1

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubeOneAPI struct {
		Value struct {
			Endpoint                  string   `json:"endpoint"`
			APIServerAlternativeNames []string `json:"apiserver_alternative_names"`
		} `json:"value"`
	} `json:"kubeone_api"`

	KubeOneHosts struct {
		Value struct {
			ControlPlane controlPlane `json:"control_plane"`
		} `json:"value"`
	} `json:"kubeone_hosts"`

	KubeOneWorkers struct {
		Value map[string]kubeonev1beta1.DynamicWorkerConfig `json:"value"`
	} `json:"kubeone_workers"`

	KubeOneStaticWorkers struct {
		Value map[string]hostsSpec `json:"value"`
	} `json:"kubeone_static_workers"`

	Proxy struct {
		Value kubeonev1beta1.ProxyConfig `json:"value"`
	} `json:"proxy"`
}

Config represents configuration in the terraform output format

func NewConfigFromJSON

func NewConfigFromJSON(j []byte) (c *Config, err error)

NewConfigFromJSON creates a new config object from json

func (*Config) Apply

func (c *Config) Apply(cluster *kubeonev1beta1.KubeOneCluster) error

Apply adds the terraform configuration options to the given cluster config.

Jump to

Keyboard shortcuts

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