Skip to content

Commit

Permalink
Merge pull request #34 from weaveworks/initial-release
Browse files Browse the repository at this point in the history
Initial release
  • Loading branch information
errordeveloper authored Jun 5, 2018
2 parents d7cb478 + 981f8e3 commit c0e28a3
Show file tree
Hide file tree
Showing 538 changed files with 71,646 additions and 1,541 deletions.
193 changes: 187 additions & 6 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ required = [

[[override]]
name = "github.com/aws/aws-sdk-go"
source = "[email protected]:weaveworks/aws-sdk-go-temp"
revision = "b3a630f1fab8d2a944e59d6d1b82cfaec22ab64a"
version = "v1.14.0"

[[constraint]]
name = "github.com/ghodss/yaml"
Expand All @@ -21,7 +20,7 @@ required = [

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.3"
branch = "master"

[[constraint]]
branch = "master"
Expand All @@ -36,7 +35,7 @@ required = [
version = "1.9.1"

[[constraint]]
branch = "master"
version = "v0.3.0"
name = "github.com/heptio/authenticator"

[[constraint]]
Expand Down
8 changes: 6 additions & 2 deletions cmd/eksctl/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func createClusterCmd() *cobra.Command {
fs.IntVarP(&cfg.Nodes, "nodes", "N", DEFAULT_NODE_COUNT, "total number of nodes (for a static ASG)")

// TODO: https://github.com/weaveworks/eksctl/issues/28
fs.IntVarP(&cfg.MinNodes, "nodes-min", "m", 0, "maximum nodes in ASG")
fs.IntVarP(&cfg.MaxNodes, "nodes-max", "M", 0, "minimum nodes in ASG")
fs.IntVarP(&cfg.MinNodes, "nodes-min", "m", 0, "minimum nodes in ASG")
fs.IntVarP(&cfg.MaxNodes, "nodes-max", "M", 0, "maximum nodes in ASG")

fs.StringVar(&cfg.SSHPublicKeyPath, "ssh-public-key", DEFAULT_SSH_PUBLIC_KEY, "SSH public key to use for nodes (import from local path, or use existing EC2 key pair)")

Expand All @@ -94,6 +94,10 @@ func doCreateCluster(cfg *eks.ClusterConfig) error {
return fmt.Errorf("--ssh-public-key must be non-empty string")
}

if cfg.Region != DEFAULT_EKS_REGION {
return fmt.Errorf("only --region=%s is supported in this version")
}

if err := ctl.LoadSSHPublicKey(); err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions cmd/eksctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ func addCommands() {
rootCmd.AddCommand(createCmd())
rootCmd.AddCommand(deleteCmd())
rootCmd.AddCommand(getCmd())
rootCmd.AddCommand(utilsCmd())
}
Loading

0 comments on commit c0e28a3

Please sign in to comment.