provider-k3s/api/k3s_config.go
Piyush Kumar db6a275968 added omitempty tag to cluster init for worker nodes
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2024-06-28 17:25:44 +05:30

14 lines
861 B
Go

package api
type K3sServerConfig struct {
ClusterInit bool `yaml:"cluster-init,omitempty" json:"cluster-init,omitempty"`
Token string `yaml:"token,omitempty" json:"token,omitempty"`
Server string `yaml:"server,omitempty" json:"server,omitempty"`
TLSSan []string `yaml:"tls-san,omitempty" json:"tls-san,omitempty"`
DatastoreEndpoint string `yaml:"datastore-endpoint,omitempty" json:"datastore-endpoint,omitempty"`
DatastoreCaFile string `yaml:"datastore-cafile,omitempty" json:"datastore-cafile,omitempty"`
DatastoreCertFile string `yaml:"datastore-certfile,omitempty" json:"datastore-certfile,omitempty"`
DatastoreKeyFile string `yaml:"datastore-keyfile,omitempty" json:"datastore-keyfile,omitempty"`
BindAddress string `yaml:"bind-address,omitempty" json:"bind-address,omitempty"`
}