Commit Graph

705 Commits

Author SHA1 Message Date
k8s-ci-robot 923118eee0
Merge pull request #4166 from mrballcb/interactive_cli_opt
Interactive cli opt
2018-01-26 12:25:33 -08:00
k8s-ci-robot b02a73fa2c
Merge pull request #4184 from chrislovecnm/rbac-default
Switching the default for kops to create a cluster with RBAC enabled.
2018-01-26 10:52:33 -08:00
k8s-ci-robot 9ddc915e8e
Merge pull request #4332 from justinsb/default_gcp_project
GCE: Get default project from gcloud CLI
2018-01-25 10:53:16 -08:00
Justin Santa Barbara d3082167c6 Add UX hint when project not set 2018-01-25 13:14:40 -05:00
k8s-ci-robot 3c2d9409b7
Merge pull request #4334 from justinsb/gce_no_need_for_ssh_public_key
GCE: Don't require SSH public key
2018-01-25 08:48:16 -08:00
k8s-ci-robot 069c36d7bb
Merge pull request #4305 from georgebuckerfield/master
Handle NotFound error when creating instance group
2018-01-25 07:47:18 -08:00
Justin Santa Barbara e2109c42f4 GCE: Don't require SSH public key
We also pull a bit of logic out of the mega-function.

Fix #4210
2018-01-24 10:48:31 -05:00
Justin Santa Barbara c633ab62c5 bazel: expose version as in Makefile
This means that bazel build should stamp kops with the same version as
the Makefile does, given the same env vars.
2018-01-24 09:43:30 -05:00
Justin Santa Barbara 5e49b6f831 GCE: Get default project from gcloud CLI
This means we don't have to specify a project for the common use case,
when gcloud is already configured with a project.
2018-01-24 09:43:05 -05:00
georgebuckerfield 95c4b6b728 Handle NotFound error when checking if the instance group exists 2018-01-20 16:11:39 +00:00
Maciej Kwiek 47590720ce Move net mode log after it is known in create
Signed-off-by: Maciej Kwiek <maciej@covalent.io>
2018-01-18 14:29:56 +01:00
Rohith 4cb8318ac5 Kops Replace Force
This PR fixes the `kops replace --force` flag which was introduce in [#PR3099](https://github.com/kubernetes/kops/pull/3089). The `--force` stopped working when 65aea59418 was merged and the api started returning an actual error for NotFound
2018-01-15 14:18:33 +00:00
Peter Rifel 9b3f0c17ea Fix typo in --target description 2018-01-08 12:10:03 -08:00
k8s-ci-robot b8a701b2da
Merge pull request #4107 from chrislovecnm/validate-ouput
kops validate cluster can output YAML or JSON
2018-01-08 02:47:11 -08:00
k8s-ci-robot 5a85abdeee
Merge pull request #4193 from justinsb/bundle
Initial implementation of bundle command
2018-01-04 17:23:12 -08:00
Justin Santa Barbara ec8db8b78c Initial implementation of bundle command
The bundle command will support enrollment of a machine via SSH.
2018-01-04 18:55:28 -05:00
k8s-ci-robot b45dd32259
Merge pull request #4179 from chrislovecnm/etdversion-override
Adding override for setting etcd version
2018-01-04 15:22:12 -08:00
chrislovecnm b5bb3f983f Adding overide for setting etcd version
Added new overide capability to set all etcd version dynamically.  This
is needed for HA testing. For example following flag can now be used with
create cluster.

--override "cluster.spec.etcdClusters*.version=3.0.17"
2018-01-04 08:59:04 -07:00
chrislovecnm 120cd93c26 Switching the default for kops to create a cluster with RBAC enabled.
When kops creates a cluster RBAC is enabled by default.
2018-01-03 00:31:05 -07:00
chrislovecnm 4dd3bb1dea Updating bazel BUILD files with new go_rules version 2017-12-29 15:03:14 -07:00
Todd Lyons 40eed60dd8 Interactive cli arg framework
Just builds, haven't tested yet.
2017-12-28 10:54:17 -08:00
chrislovecnm c8670155ca backing out unit test because fixing lifecycle creates a failure
Will put unit test back in when we have lifecycle overrides in place
2017-12-27 13:55:23 -07:00
Justin Santa Barbara 5cc5a936f9 Force nodeup to use the bundle
We disable fallback entirely for nodeup, so we can still share code, but
won't accidentally be using the wrong code path.
2017-12-21 16:06:11 -05:00
Justin Santa Barbara e981e708e4 Use bundles when loading keysets
This avoids the need to list directories, which is problematic on GCE.

It also makes for a more consistent experience; we can move nodeup to
use the bundle always, and we can move writing to the Mirror task, so
that VFS & kops-server are more similar.
2017-12-21 12:58:26 -05:00
chrislovecnm 18ea92f696 updating bazel files 2017-12-20 00:26:28 -07:00
chrislovecnm 7cb9384d70 kops validate clsuter can output YAML or JSON
Adding the capbility for kops validate cluster command to output YAML or JSON.
The validate.ValidationCluster struct is used as body of the JSON or
YAML document.
2017-12-19 23:07:55 -07:00
Justin Santa Barbara 7f3d3544c4 Refactor: clean up SecretStore to not use KeystoreItem
More moving to use API objects, except in this case we eventually want
to deprecate SecretStore entirely.
2017-12-19 11:43:43 -05:00
Kubernetes Submit Queue e88496a248
Merge pull request #4061 from meringu/create-subnets
Automatic merge from submit-queue.

Add --subnets and --utility-subnets to kops create cluster

This change adds two new options to `kops create cluster`

When specifying `--vpc`, `--subnets` can be specified as an unordered array of subnet ids. Kops will then look up the zones of the subnets to find which zone to add the subnet id to.

If `--topology private` is also specified, `--utility-subnets` can similarly be specified.

~If a zone was specified but a subnet wasn't given that matches the zone, then the subnet will be allocated a CIDR with the current behaviour.~ This case fails validation here 7bd0a6a703/pkg/apis/kops/validation/validation.go (L151)

I can add unit tests and docs changes if required, but I am keen to get feedback before I proceed much further.

I have only added support for AWS.

I have tested this by running a command similar to this:

```bash
kops create cluster \
  --zones=us-east-1a,us-east-1b,us-east-1c \
  --topology private \
  --master-zones=us-east-1a,us-east-1b,us-east-1c  \
  --vpc $vpc_id \
  --subnets subnet-111111,subnet-222222,subnet-333333 \
  --utility-subnets subnet-444444,subnet-555555,subnet-666666 \
  $cluster_hosted_zone_name
```

And the cluster spec was as expected.
2017-12-18 21:12:59 -08:00
Kubernetes Submit Queue ca0a720a7e
Merge pull request #3833 from justinsb/cleanup_ssh_2
Automatic merge from submit-queue.

Refactor CAStore to use API types

We now return KeySet objects


Builds on #3832
2017-12-18 20:08:41 -08:00
Kubernetes Submit Queue 15c7d61dfb
Merge pull request #3997 from aledbf/amazon-vpc-cni
Automatic merge from submit-queue.

Add support for Amazon VPC CNI plugin

TODO:
- [x] IAM perms so that the CNI provider only has perms for the nodes in the cluster
- [x] Cleanup of security groups
- [ ] Replace image aledbf/k8s-ec2-srcdst:v0.1.0-5 with the official after https://github.com/ottoyiu/k8s-ec2-srcdst/pull/5 and https://github.com/ottoyiu/k8s-ec2-srcdst/pull/6
2017-12-17 21:41:13 -08:00
Justin Santa Barbara bf74133fd4 Refactor CAStore to use API types
We now return KeySet objects
2017-12-17 20:09:00 -05:00
Kubernetes Submit Queue dd49d69399
Merge pull request #3254 from chrislovecnm/file-assets
Automatic merge from submit-queue.

work on using files assets

Basic MVP for file assests.

- using file assest builder
- able to upload files
- using URL structs instead of strings everywhere
2017-12-17 16:10:23 -08:00
Kubernetes Submit Queue 7768729cf2
Merge pull request #3832 from justinsb/cleanup_ssh
Automatic merge from submit-queue.

Refactor: separate out SSHCredentials from Keyset stores
2017-12-17 15:05:09 -08:00
chrislovecnm 7057aaf1bb Enabling the file assets
File assets and the SHA files are uploaded to the new location. Files
when are users uses s3 are upload public read only. The copyfile task
uses only the existing SHA value.

This PR include major refactoring of the use of URLs.  Strings are no
longer categnated, but converted into a URL struct and path.Join is
utlilized.

A new values.go file is included so that we can start refactoring more
code out of the "fi" package.

A
2017-12-17 15:26:57 -07:00
Henry Muru Paenga 0491530b6e Lookup vpc if not given to create cluster 2017-12-18 11:12:57 +13:00
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Kubernetes Submit Queue fb7c42cb4d
Merge pull request #3987 from justinsb/default_subnets_on_create_ig
Automatic merge from submit-queue.

Use default subnet when creating IG
2017-12-15 09:23:14 -08:00
Henry Muru Paenga 6fcd970191 create cluster only use --subnets in AWS 2017-12-15 18:59:12 +13:00
Henry Muru Paenga afc1b58722 Tests for create cluster in shared vpc 2017-12-15 18:29:20 +13:00
Justin Santa Barbara 3e236283f3 Tag 1.8.0 2017-12-13 22:13:27 -05:00
Justin Santa Barbara 65bcbe7729 Use default subnet when creating IG
We had this logic before, but I accidentally bypassed it in #2124.
2017-12-13 22:01:44 -05:00
Justin Santa Barbara 509b83ac7a Refactor: separate out SSHCredentials from Keyset stores
We've done this in the API already, but we had a single CAStore
interface that did Keysets and SSHCredentials.  Separate out
SSHCredentials into SSHCredentialStore, and start using API objects as
our primary representation.
2017-12-13 20:16:59 -05:00
Henry Muru Paenga 48d4a7cb1a Add --subnets and --utility-subnets to kops create cluster 2017-12-14 13:57:54 +13:00
Rohith 6b2f4a4c74 Bastion Username
- cleaning up the bastion username line
2017-12-13 13:09:22 +00:00
Kubernetes Submit Queue bfd747a873
Merge pull request #3933 from justinsb/lazy_ssh_keystore
Automatic merge from submit-queue.

SSH keys - be lazier about keystore creation
2017-12-03 20:40:42 -08:00
Justin Santa Barbara 33b7432d6a Fix segfault when updating non-existent object
Fix #3935
2017-12-01 11:00:46 -05:00
Justin Santa Barbara 2ada501c65 Fix typo in kops get cluster --full hint 2017-11-29 21:04:28 -05:00
Justin Santa Barbara b8b7287e4a Bump versions to 1.8.0-beta.2 2017-11-28 13:27:58 -05:00
Justin Santa Barbara ad60069d71 SSH keys - be lazier about keystore creation 2017-11-26 23:35:58 -05:00
Kashif Saadat 79eef3cc6c Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00:00