Documentation ¶
Index ¶
- func RegisterStep(stepName string, step Step)
- func RunTemplate(ctx context.Context, tpl *template.Template, r runner.Runner, output io.Writer, ...) error
- type AWSConfig
- type CertificatesConfig
- type ClusterCheckConfig
- type Config
- func (c *Config) AddMaster(n *node.Node)
- func (c *Config) AddNode(n *node.Node)
- func (c *Config) GetMaster() *node.Node
- func (c *Config) GetMasters() map[string]*node.Node
- func (c *Config) GetNode() *node.Node
- func (c *Config) GetNodes() map[string]*node.Node
- func (c *Config) KubeStateChan() chan model.KubeState
- func (c *Config) NodeChan() chan node.Node
- type DOConfig
- type DockerConfig
- type DownloadK8sBinary
- type EtcdConfig
- type FlannelConfig
- type GCEConfig
- type KubeletConfig
- type ManifestConfig
- type Map
- type NetworkConfig
- type OSConfig
- type PacketConfig
- type PostStartConfig
- type PrometheusConfig
- type SshConfig
- type Step
- type TillerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStep ¶
Types ¶
type AWSConfig ¶
type AWSConfig struct { KeyID string `json:"access_key"` Secret string `json:"secret_key"` Region string `json:"region"` AvailabilityZone string `json:"availabilityZone"` KeyPairName string `json:"keyPairName"` VPCID string `json:"vpcid"` VPCCIDR string `json:"vpccidr"` SubnetID string `json:"subnetID"` NodesSecurityGroupID string `json:"nodesSecurityGroupID"` MastersSecurityGroupID string `json:"mastersSecurityGroupID"` VolumeSize string `json:"volumeSize"` EbsOptimized string `json:"ebsOptimized"` ImageID string `json:"image"` InstanceType string `json:"size"` HasPublicAddr string `json:"hasPublicAddr"` }
type CertificatesConfig ¶
type CertificatesConfig struct { KubernetesConfigDir string `json:"kubernetesConfigDir"` PublicIP string `json:"publicIp"` PrivateIP string `json:"privateIp"` IsMaster bool `json:"isMaster"` StaticAuth profile.StaticAuth `json:"staticAuth"` // DEPRECATED: it's a part of staticAuth Username string // DEPRECATED: it's a part of staticAuth Password string AdminCert string `json:"adminCert"` AdminKey string `json:"adminKey"` ParenCert []byte `json:"parenCert"` CACert string `json:"caCert"` CAKey string `json:"caKey"` }
type ClusterCheckConfig ¶
type ClusterCheckConfig struct {
MachineCount int
}
type Config ¶
type Config struct { TaskID string Provider clouds.Name `json:"provider"` IsMaster bool `json:"isMaster"` ClusterID string `json:"clusterId"` ClusterName string `json:"clusterName"` LogBootstrapPrivateKey bool `json:"logBootstrapPrivateKey"` DigitalOceanConfig DOConfig `json:"digitalOceanConfig"` AWSConfig AWSConfig `json:"awsConfig"` GCEConfig GCEConfig `json:"gceConfig"` OSConfig OSConfig `json:"osConfig"` PacketConfig PacketConfig `json:"packetConfig"` DockerConfig DockerConfig `json:"dockerConfig"` DownloadK8sBinary DownloadK8sBinary `json:"downloadK8sBinary"` CertificatesConfig CertificatesConfig `json:"certificatesConfig"` FlannelConfig FlannelConfig `json:"flannelConfig"` NetworkConfig NetworkConfig `json:"networkConfig"` KubeletConfig KubeletConfig `json:"kubeletConfig"` ManifestConfig ManifestConfig `json:"manifestConfig"` PostStartConfig PostStartConfig `json:"postStartConfig"` TillerConfig TillerConfig `json:"tillerConfig"` EtcdConfig EtcdConfig `json:"etcdConfig"` SshConfig SshConfig `json:"sshConfig"` PrometheusConfig PrometheusConfig `json:"prometheusConfig"` ClusterCheckConfig ClusterCheckConfig `json:"clusterCheckConfig"` Node node.Node `json:"node"` CloudAccountID string `json:"cloudAccountId" valid:"required, length(1|32)"` CloudAccountName string `json:"cloudAccountName" valid:"required, length(1|32)"` Timeout time.Duration `json:"timeout"` Runner runner.Runner `json:"-"` Masters Map `json:"masters"` Nodes Map `json:"nodes"` ReadyForBootstrapLatch *sync.WaitGroup // contains filtered or unexported fields }
func (*Config) AddMaster ¶
AddMaster to map of master, map is used because it is reference and can be shared among goroutines that run multiple tasks of cluster deployment
func (*Config) KubeStateChan ¶
type DOConfig ¶
type DOConfig struct { Name string `json:"name" valid:"required"` // These come from UI select Region string `json:"region" valid:"required"` Size string `json:"size" valid:"required"` Image string `json:"image" valid:"required"` // These come from cloud account Fingerprint string `json:"fingerprint" valid:"required"` AccessToken string `json:"accessToken" valid:"required"` }
type DockerConfig ¶
type DownloadK8sBinary ¶
type EtcdConfig ¶
type EtcdConfig struct { Name string `json:"name"` Version string `json:"version"` AdvertiseHost string `json:"advertiseHost"` Host string `json:"host"` DataDir string `json:"dataDir"` ServicePort string `json:"servicePort"` ManagementPort string `json:"managementPort"` Timeout time.Duration `json:"timeout"` StartTimeout string `json:"startTimeout"` RestartTimeout string `json:"restartTimeout"` ClusterToken string `json:"clusterToken"` }
type FlannelConfig ¶
type GCEConfig ¶
type GCEConfig struct { PrivateKey string `json:"privateKey"` ImageFamily string `json:"imageFamily"` ProjectID string `json:"projectId"` Region string `json:"region"` AvailabilityZone string `json:"availabilityZone"` Size string `json:"size"` InstanceGroup string `json:"instanceGroup"` ClientEmail string `json:"clientEmail"` TokenURI string `json:"tokenURI"` AuthURI string `json:"authURI"` }
type KubeletConfig ¶
type ManifestConfig ¶
type ManifestConfig struct { IsMaster bool `json:"isMaster"` K8SVersion string `json:"k8sVersion"` KubernetesConfigDir string `json:"kubernetesConfigDir"` RBACEnabled bool `json:"rbacEnabled"` ProviderString string `json:"providerString"` MasterHost string `json:"masterHost"` MasterPort string `json:"masterPort"` Password string `json:"password"` }
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) MarshalJSON ¶
func (*Map) UnmarshalJSON ¶
type NetworkConfig ¶
type NetworkConfig struct { EtcdRepositoryUrl string `json:"etcdRepositoryUrl"` EtcdVersion string `json:"etcdVersion"` EtcdHost string `json:"etcdHost"` Arch string `json:"arch"` OperatingSystem string `json:"operatingSystem"` Network string `json:"network"` NetworkType string `json:"networkType"` }
type PacketConfig ¶
type PacketConfig struct{}
type PostStartConfig ¶
type PrometheusConfig ¶
Click to show internal directories.
Click to hide internal directories.