Experimental daemon.
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
|||||||
// Config represents the main configuration structure
|
// Config represents the main configuration structure
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Wildcloud struct {
|
Wildcloud struct {
|
||||||
Repository string `yaml:"repository" json:"repository"`
|
Repository string `yaml:"repository" json:"repository"`
|
||||||
CurrentPhase string `yaml:"currentPhase" json:"currentPhase"`
|
CurrentPhase string `yaml:"currentPhase" json:"currentPhase"`
|
||||||
CompletedPhases []string `yaml:"completedPhases" json:"completedPhases"`
|
CompletedPhases []string `yaml:"completedPhases" json:"completedPhases"`
|
||||||
} `yaml:"wildcloud" json:"wildcloud"`
|
} `yaml:"wildcloud" json:"wildcloud"`
|
||||||
Server struct {
|
Server struct {
|
||||||
Port int `yaml:"port" json:"port"`
|
Port int `yaml:"port" json:"port"`
|
||||||
@@ -89,6 +89,6 @@ func (c *Config) IsEmpty() bool {
|
|||||||
|
|
||||||
// Check if any essential fields are empty
|
// Check if any essential fields are empty
|
||||||
return c.Cloud.Domain == "" ||
|
return c.Cloud.Domain == "" ||
|
||||||
c.Cloud.DNS.IP == "" ||
|
c.Cloud.DNS.IP == "" ||
|
||||||
c.Cluster.Nodes.Talos.Version == ""
|
c.Cluster.Nodes.Talos.Version == ""
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user