Documentation
¶
Index ¶
Constants ¶
View Source
const ( NodeTypeServer = "server" NodeTypeAgent = "agent" )
Variables ¶
This section is empty.
Functions ¶
func IsIPv6Priority ¶
func IsNodeIPSet ¶
func ServersCount ¶
Types ¶
type Cluster ¶
type Cluster struct {
// ServerConfig contains the server configurations for a single node cluster
// or the additional server nodes in a multi node cluster.
ServerConfig ConfigMap
// InitServerConfig contains the initial server configurations for a multi node cluster
InitServerConfig ConfigMap
// AgentConfig contains the agent configurations in multi node clusters.
AgentConfig ConfigMap
// RegistriesConfig contains the configurations for private or embedded registries
RegistriesConfig ConfigMap
}
func NewCluster ¶
func NewCluster(s *sys.System, kube *Kubernetes) (*Cluster, error)
type Helm ¶
type Helm struct {
Charts []*HelmChart `yaml:"charts" validate:"dive"`
Repositories []*HelmRepository `yaml:"repositories" validate:"dive"`
}
func (*Helm) ChartRepositories ¶
func (*Helm) ValueFiles ¶
type HelmChart ¶
type HelmChart struct {
Name string `yaml:"name" validate:"required"`
RepositoryName string `yaml:"repositoryName" validate:"required"`
Version string `yaml:"version" validate:"required"`
TargetNamespace string `yaml:"targetNamespace" validate:"required"`
ValuesFile string `yaml:"valuesFile"`
}
func (*HelmChart) GetInlineValues ¶
func (*HelmChart) GetRepositoryName ¶
type HelmRepository ¶
type HelmRepository struct {
Name string `yaml:"name" validate:"required"`
URL string `yaml:"url" validate:"required,url"`
Credentials *auth.Credentials `yaml:"credentials,omitempty"`
InsecureSkipTLSVerify bool `yaml:"insecureSkipTLSVerify,omitempty"`
}
type Kubernetes ¶
type Kubernetes struct {
// RemoteManifests - manifest URLs specified under config/kubernetes/cluster.yaml
RemoteManifests []string `yaml:"manifests,omitempty" validate:"dive,required,url"`
// Helm - charts specified under config/kubernetes/cluster.yaml
Helm *Helm `yaml:"helm,omitempty" validate:"omitempty"`
// LocalManifests - local manifest files specified under config/kubernetes/manifests
LocalManifests []string
Nodes Nodes `yaml:"nodes,omitempty" validate:"dive"`
Network Network `yaml:"network,omitempty"`
Config Config `yaml:"-"`
}
type Network ¶
type Node ¶
type Node struct {
Hostname string `yaml:"hostname" validate:"required,hostname"`
Type string `yaml:"type" validate:"required,oneof=server agent"`
Init bool `yaml:"init,omitempty"`
}
func FindInitNode ¶
FindInitNode loops through the nodes and returns the first one with init field set to true, or if none found, picks the first server Node.
Click to show internal directories.
Click to hide internal directories.