talos/pkg/userdata/v1alpha1/machine_config.go
Spencer Smith aed8c06730 chore: rename v1 node configs to v1alpha1
This PR moves to using v1alpha1 as the inital node config version, so
we can graduate these configs a little more cleanly later on.

Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
2019-09-09 13:03:49 -04:00

34 lines
1.2 KiB
Go

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package v1alpha1
// MachineConfig reperesents the machine-specific config values
type MachineConfig struct {
Type string `yaml:"type"`
Token string `yaml:"token"`
CA *MachineCAConfig `yaml:"ca,omitempty"`
Kubelet *KubeletConfig `yaml:"kubelet,omitempty"`
Network *NetworkConfig `yaml:"network,omitempty"`
Install *Install `yaml:"install,omitempty"`
}
// KubeletConfig reperesents the kubelet config values
type KubeletConfig struct {
Image string `yaml:"image,omitempty"`
ExtraArgs map[string]string `yaml:"extraArgs,omitempty"`
}
// NetworkConfig reperesents the machine's networking config values
type NetworkConfig struct {
Hostname string `yaml:"hostname,omitempty"`
Interfaces []*Device `yaml:"interfaces,omitempty"`
}
// MachineCAConfig reperesents the machine's talos cert config values
type MachineCAConfig struct {
Crt string `yaml:"crt,omitempty"`
Key string `yaml:"key,omitempty"`
}