Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FromConfig = func(file string) (*Cluster, error) { c := &Cluster{ SecretDir: "./clusters", Config: &Config{}, } if err := DecodeConfigFromFile(c.Config, file); err != nil { return nil, fmt.Errorf("couldn't unmarshal config file: %v", err) } c.TLSFiles = &TLSFiles{ CACertFile: c.getSecretPath("ca.pem"), APIServerCertFile: c.getSecretPath("apiserver.pem"), APIServerKeyFile: c.getSecretPath("apiserver-key.pem"), WorkerCertFile: c.getSecretPath("worker.pem"), WorkerKeyFile: c.getSecretPath("worker-key.pem"), AdminCertFile: c.getSecretPath("admin.pem"), AdminKeyFile: c.getSecretPath("admin-key.pem"), } return c, nil }
Functions ¶
func DecodeConfigFromFile ¶
func GenerateKubeconfig ¶
Types ¶
type Cluster ¶
func (*Cluster) GetStackTemplate ¶
type Config ¶
type Config struct { AWSCoreOS corecluster.Config `yaml:"awsCoreOS"` ArtifactBucket string `yaml:"artifactBucket"` }
Click to show internal directories.
Click to hide internal directories.