mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-16 22:50:47 +00:00
Now there is a `install` section in the config that has the fields that previously where in `c3os` but were actually only used during install phase. Also the k3s and c3os config were moved to the provider instead that in the global config.
25 lines
828 B
Go
25 lines
828 B
Go
package config
|
|
|
|
type C3OS struct {
|
|
NetworkToken string `yaml:"network_token,omitempty"`
|
|
NetworkID string `yaml:"network_id,omitempty"`
|
|
Role string `yaml:"role,omitempty"`
|
|
DNS bool `yaml:"dns,omitempty"`
|
|
LogLevel string `yaml:"loglevel,omitempty"`
|
|
}
|
|
|
|
type Config struct {
|
|
C3OS *C3OS `yaml:"c3os,omitempty"`
|
|
K3sAgent K3s `yaml:"k3s-agent,omitempty"`
|
|
K3s K3s `yaml:"k3s,omitempty"`
|
|
VPN map[string]string `yaml:"vpn,omitempty"`
|
|
}
|
|
|
|
type K3s struct {
|
|
Env map[string]string `yaml:"env,omitempty"`
|
|
ReplaceEnv bool `yaml:"replace_env,omitempty"`
|
|
ReplaceArgs bool `yaml:"replace_args,omitempty"`
|
|
Args []string `yaml:"args,omitempty"`
|
|
Enabled bool `yaml:"enabled,omitempty"`
|
|
}
|