Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubesprayExecutor ¶
func NewKubesprayExecutor( clusterName string, clusterPath string, sshPrivateKeyPath string, configDir string, cfg *modelconfig.Config, infraCfg *modelinfra.Config, virtualEnv virtualenv.VirtualEnv, ) executors.Executor
Types ¶
type HostsTemplate ¶
type HostsTemplate struct { SshKeyFile string Hosts []modelconfig.Host // contains filtered or unexported fields }
func NewHostsTemplate ¶
func NewHostsTemplate(configDir, sshPrivateKeyPath string, hosts []modelconfig.Host) HostsTemplate
func (HostsTemplate) Functions ¶
func (t HostsTemplate) Functions() map[string]interface{}
func (HostsTemplate) Name ¶
func (t HostsTemplate) Name() string
func (HostsTemplate) Template ¶
func (t HostsTemplate) Template() string
func (HostsTemplate) Write ¶
func (t HostsTemplate) Write() error
type KubesprayAddonsTemplate ¶
type KubesprayAddonsTemplate struct { Addons string // contains filtered or unexported fields }
func NewKubesprayAddonsTemplate ¶
func NewKubesprayAddonsTemplate(configDir string, addons string) KubesprayAddonsTemplate
func (KubesprayAddonsTemplate) Name ¶
func (t KubesprayAddonsTemplate) Name() string
func (KubesprayAddonsTemplate) Template ¶
func (t KubesprayAddonsTemplate) Template() string
func (KubesprayAddonsTemplate) Write ¶
func (t KubesprayAddonsTemplate) Write() error
type KubesprayAllTemplate ¶
type KubesprayAllTemplate struct { InfraNodes modelconfig.Nodes // contains filtered or unexported fields }
func NewKubesprayAllTemplate ¶
func NewKubesprayAllTemplate(configDir string, infraNodes modelconfig.Nodes) KubesprayAllTemplate
func (KubesprayAllTemplate) Name ¶
func (t KubesprayAllTemplate) Name() string
func (KubesprayAllTemplate) Template ¶
func (t KubesprayAllTemplate) Template() string
func (KubesprayAllTemplate) Write ¶
func (t KubesprayAllTemplate) Write() error
type KubesprayEtcdTemplate ¶
type KubesprayEtcdTemplate struct {
// contains filtered or unexported fields
}
func NewKubesprayEtcdTemplate ¶
func NewKubesprayEtcdTemplate(configDir string) KubesprayEtcdTemplate
func (KubesprayEtcdTemplate) Name ¶
func (t KubesprayEtcdTemplate) Name() string
func (KubesprayEtcdTemplate) Template ¶
func (t KubesprayEtcdTemplate) Template() string
func (KubesprayEtcdTemplate) Write ¶
func (t KubesprayEtcdTemplate) Write() error
type KubesprayK8sClusterTemplate ¶
type KubesprayK8sClusterTemplate struct { Config modelconfig.Config // contains filtered or unexported fields }
func NewKubesprayK8sClusterTemplate ¶
func NewKubesprayK8sClusterTemplate(configDir string, config modelconfig.Config) KubesprayK8sClusterTemplate
func (KubesprayK8sClusterTemplate) Delimiters ¶
func (t KubesprayK8sClusterTemplate) Delimiters() (string, string)
func (KubesprayK8sClusterTemplate) Name ¶
func (t KubesprayK8sClusterTemplate) Name() string
func (KubesprayK8sClusterTemplate) Template ¶
func (t KubesprayK8sClusterTemplate) Template() string
func (KubesprayK8sClusterTemplate) Write ¶
func (t KubesprayK8sClusterTemplate) Write() error
type NodesTemplate ¶
type NodesTemplate struct { ConfigNodes modelconfig.Nodes InfraNodes modelconfig.Nodes // contains filtered or unexported fields }
func NewNodesTemplate ¶
func NewNodesTemplate(configDir string, configNodes, infraNodes modelconfig.Nodes) NodesTemplate
func (NodesTemplate) Name ¶
func (t NodesTemplate) Name() string
func (NodesTemplate) Template ¶
func (t NodesTemplate) Template() string
func (NodesTemplate) Write ¶
func (t NodesTemplate) Write() error
type PlaybookTag ¶
type PlaybookTag string
const ( TAG_INIT PlaybookTag = "init" TAG_KUBESPRAY PlaybookTag = "kubespray" TAG_GEN_NODES PlaybookTag = "gen_nodes" )
Click to show internal directories.
Click to hide internal directories.