Commit Graph

842 Commits

Author SHA1 Message Date
k8s-ci-robot 6741158c97
Merge pull request #5056 from povilasv/gce-ssh
Add public ssh keys for GCE
2018-06-03 10:59:53 -07:00
Justin Santa Barbara 4cea00ea75 Use HomeDir from client-go to get home directory
Works on windows & linux

Fixes #4523
2018-06-02 15:17:23 -04:00
k8s-ci-robot 1157789a63
Merge pull request #4723 from sroylance/testing-windows
hacks for tests on windows
2018-06-02 11:22:57 -07:00
Ian Hoegen 88b8fd46b5 Add proper autoloading for kops autocomplete 2018-05-31 09:53:12 -07:00
k8s-ci-robot 195dee380b
Merge pull request #5150 from ihoegen/master
Add stdin support for create -f and replace -f
2018-05-26 15:09:31 -07:00
k8s-ci-robot f7243a933b
Merge pull request #5123 from justinsb/harmonize_override_and_set_cluster
Unify create-create overrides and set-cluster fields
2018-05-19 12:56:50 -07:00
Ian Hoegen ae8bdf08c5 Add stdin support for create -f and replace -f 2018-05-14 13:29:37 -07:00
k8s-ci-robot cbf7b0886e
Merge pull request #5122 from justinsb/rolling_update_by_role
Allow rolling-update to filter on roles
2018-05-11 10:50:30 -07:00
k8s-ci-robot 2644e6c0eb
Merge pull request #4991 from AliyunContainerService/network
Implement network task for AlibabaCloud
2018-05-11 10:09:28 -07:00
Justin Santa Barbara bc79f0a69b tests: failing test when multiple egress
Also requires that the subnets be out of order, which is likely why we
didn't hit it in practice.
2018-05-10 13:28:05 -04:00
k8s-ci-robot 02ab1f90be
Merge pull request #5133 from relu/support-ec2-instance-nat-egresses
Add ability to use ec2 nat instance as egress
2018-05-10 08:22:53 -07:00
k8s-ci-robot 7d3bcb3260
Merge pull request #5112 from AdamDang/patch-31
Typo fix in returned message: formated->formatted
2018-05-09 19:26:04 -07:00
Aurel Canciu cc8371cb31
Add ability to use ec2 nat instance as egress 2018-05-09 23:04:54 +03:00
Justin Santa Barbara ffd57062aa Allow rolling-update to filter on roles
This is important for the e2e upgrade tests
2018-05-09 12:00:12 -04:00
Justin Santa Barbara 81d5f06a58 Unify create-create overrides and set-cluster fields
Supports e2e upgrade tests
2018-05-09 11:55:44 -04:00
AdamDang ad8de4abd3
Update validate.go 2018-05-09 23:33:48 +08:00
AdamDang a7f89416b6
Typo fix: formated->formatted
formated->formatted
2018-05-06 23:22:44 +08:00
AdamDang d8bf642e0d
Update create_cluster.go 2018-05-03 20:20:46 +08:00
k8s-ci-robot 7ff94b6f6a
Merge pull request #4668 from usabilla/deep-merge
Perform deep merge for template values
2018-05-02 12:23:17 -07:00
Julien SENON 1408fc9aca
Remove unecessary println, add comment for /Users/julien and windows, update docs 2018-04-22 16:50:14 +02:00
Julien SENON 6425032795
Add feature with config file, flags, and env order 2018-04-22 16:45:46 +02:00
Julien SENON 9c9a65c53e
Add feature state store 2018-04-22 16:45:45 +02:00
Povilas Versockas 8bfa93c304 Add public ssh keys for GCE 2018-04-21 20:15:29 +03:00
Mike Splain ccb688c468 Add Replace and delete for SSH Secret YAML 2018-04-19 21:39:39 -04:00
xh4n3 2bdb9ede97 add user-agent for statistic purpose, add dep 2018-04-19 20:57:56 +08:00
LilyFaFa ad9cf7d3e2 init ALICloud and add network Model 2018-04-19 20:48:40 +08:00
mahuihuang 42a7606cf8 fix typo 2018-04-09 11:26:18 +08:00
Gijs Kunze 50f411f51a Removes unneccessary if block 2018-04-03 11:04:26 +02:00
sunlintong dc388698a0 Ouput --> Output 2018-04-03 16:07:52 +08:00
k8s-ci-robot fc1bed4353
Merge pull request #4224 from nebril/cilium-support
Add Cilium as CNI plugin
2018-03-26 07:49:02 -07:00
Gijs Kunze adf12b516a Added new file to bazel and ran gofmt 2018-03-26 10:13:34 +02:00
Gijs Kunze 821cdf32ab Updated copyright header and added link to original source 2018-03-26 10:13:34 +02:00
Gijs Kunze 0ae059227a Perform deep merge for template values 2018-03-26 10:13:34 +02:00
Justin Santa Barbara a34792d3a5 Add lifecycle tests for legacy tags 2018-03-25 16:21:29 -04:00
Justin Santa Barbara afa0577749 Check tags in lifecycle tests
We want to make sure that everything owned is tagged as such, and that
some shared resources (in particular subnets) are tagged as such.
2018-03-25 15:55:44 -04:00
Justin Santa Barbara 1edd7d49fa Add deletion to lifecycle test 2018-03-24 16:30:40 -04:00
k8s-ci-robot bc56319d35
Merge pull request #4739 from szemek/fix/typos
Fixed typos
2018-03-21 08:59:03 -07:00
Przemysław Dąbek a94eee33c8 cluser => cluster 2018-03-21 07:35:12 +01:00
Justin Santa Barbara 63e51337c0 Validation: treat as error if insufficient nodes
We switch to use the rolling update logic, which gives us nodes by
InstanceGroup.
2018-03-20 23:28:27 -04:00
Justin Santa Barbara 3f8edb34a9 Validation: simplify output rendering 2018-03-20 22:01:47 -04:00
Justin Santa Barbara 02d9819785 Move DNS validation into validation 2018-03-20 19:56:36 -04:00
k8s-ci-robot 717eb4f6c5
Merge pull request #4734 from justinsb/int_validation_fix_3
Validation: Take a cluster object, not just the name
2018-03-20 13:25:02 -07:00
k8s-ci-robot 963eb0d512
Merge pull request #4733 from justinsb/int_validation_fix_2
Validation: clean up unused node status functions
2018-03-20 11:01:02 -07:00
Maciej Kwiek bca52dede9 Add Cilium as CNI plugin
Signed-off-by: Maciej Kwiek <maciej@covalent.io>
2018-03-20 13:07:26 +01:00
Justin Santa Barbara 1b0f5a4101 Validation: clean up unused node status functions 2018-03-20 01:16:48 -04:00
Justin Santa Barbara 55e3a5f212 Validation: Take a cluster object, not just the name 2018-03-20 01:12:07 -04:00
Justin Santa Barbara 07309d4824 Validation: start to differentiate between validation failure and errors during validation 2018-03-20 00:55:59 -04:00
Stephen Roylance 70815ebaf9 hacks for tests on windows 2018-03-19 16:34:36 -04:00
Justin Santa Barbara 6ff56e2f05 Fix shared network objects
RouteTables should be created (and owned) only for non-shared subnets.
2018-03-18 17:09:30 -04:00
Justin Santa Barbara 8a476a6981 Fix cluster name for phases test 2018-03-15 20:11:54 -04:00
Justin Santa Barbara 342bb766c9 Enable some shared tests scenarios 2018-03-15 20:11:54 -04:00
Justin Santa Barbara 7af6f42e8b Tests: create vpc-12345678 & nat-12345678 2018-03-15 20:11:54 -04:00
k8s-ci-robot 4ad014647b
Merge pull request #4654 from justinsb/private_topology_roundtrip_test
More mocks - sufficient for privatecalico to roundtrip
2018-03-12 22:59:11 -07:00
Justin Santa Barbara 5d36f9e37d Update kops version in tests
We need to satisfy the new minimum supported version.
2018-03-12 02:17:49 -04:00
Justin Santa Barbara ab7439b360 More mocks - sufficient for privatecalico to roundtrip 2018-03-11 23:12:22 -04:00
Justin Santa Barbara 85b972bc28 Fill out cloudmock to do a basic lifecycle test 2018-03-11 17:04:30 -04:00
Justin Santa Barbara c121e7f14e Create lifecycle test against AWS mocks
We create a cluster, run kops update, then run kops update again.  We
expect no changes on the second update.
2018-03-11 17:04:30 -04:00
Kyle Rockman b80cab6d87 change based on PR feedback 2018-03-09 10:17:18 -06:00
Kyle Rockman 3b9384a23c Add cluster name environment variable
- Add an environment variable to configure cluster name
- Expose envionrment variable in CLI documentation
2018-03-09 10:14:00 -06:00
chrislovecnm 1927d2be7e Updates for Bazel tests and cleaning up go sdk
Enabling sharded tests for our slower tests, and removing the go
commands to download a specific sdk.
2018-03-01 17:14:10 -07:00
k8s-ci-robot 1c75f47510
Merge pull request #4526 from mad01/custom-ca
custom ca new implementation of #2924
2018-03-01 12:52:28 -08:00
Alexander Brandstedt 62ab65e8e3 implementation custom ca cert and key #2924
- implementing as new subcommand keypair to secret
- rename of LoadPEMCertificate to ParsePEMCertificate to have
  the same naming of parsing of certificate/private key bytes in
  the same package result is
    pki.ParsePEMPrivateKey(privateKeyBytes)
    pki.ParsePEMCertificate(certBytes)
2018-03-01 09:50:04 +01:00
k8s-ci-robot 0ff7d4de99
Merge pull request #4452 from duboisf/support-bastion-user-data
Add support for bastion aws user-data
2018-02-28 03:54:45 -08:00
k8s-ci-robot 0ab8b57c2a
Merge pull request #4493 from justinsb/vfs_streaming
VFS: WriteFile takes an io.ReadSeeker
2018-02-26 15:50:45 -08:00
chrislovecnm 222dec0b9a Refactoring to camel case variable names
Follow-up PR to remove variables with snake case, and replace them with
camel case.
2018-02-26 13:40:43 -07:00
k8s-ci-robot e317a5ab00
Merge pull request #4381 from justinsb/kops_set_cluster_1
Experimental kops set cluster command
2018-02-26 10:58:45 -08:00
Mike Splain 45a57915e2 Fix bazel deprecation notice 2018-02-26 09:36:13 -05:00
Justin Santa Barbara 6f52996c2a Experimental kops set cluster command
Introduce an experimental kops set cluster command, for setting
individual fields in the same style as the kops create cluster
--override flags.

For now, feature flag gated by the same SpecOverrideFlag feature flag.

Also split out pkg/commands package to facilitate testing.
2018-02-26 09:33:16 -05:00
Justin Santa Barbara 412cf377c2 VFS: WriteFile takes an io.ReadSeeker
Means we don't have to buffer big files in memory, in combination with
WriteTo for reading.
2018-02-26 09:09:17 -05:00
Justin Santa Barbara b68f58d746 Change NewAssetBuilder to take a kops.Cluseter 2018-02-22 21:42:40 -08:00
chrislovecnm 71c8fa4b3a Updating variables to use Camel Case
I am fixing the work where I used snake case variables instead of camel
case.  Go likes camel case much better.  This commit is only a refactor
of names.
2018-02-19 20:57:58 -07:00
chrislovecnm 64439b4846 updating cli documentation for override-lifecycles 2018-02-19 13:27:08 -07:00
chrislovecnm 13ff0875e5 adding flag options to update_cluster for the user to pass in overrides 2018-02-19 13:27:07 -07:00
Fred Dubois 6b38b2c3a6
Add support for bastion aws user-data
Fixes #4444
2018-02-19 08:52:10 -05:00
k8s-ci-robot 2bf86134a3
Merge pull request #4240 from gambol99/calico_tls
Kubernetes Calico TLS
2018-02-15 09:25:38 -08:00
Rohith c8e4a1caf8 Kubernetes Calico TLS
The current implementation when Etcd TLS was added does not support using calico as the configuration and client certificates are not present. This PR updates the calico manifests and adds the distribution of the client certificate
2018-02-14 23:41:45 +00:00
klaus993 4ea6623933 Add clarification in instance group deletion
It can happen that, if one is accustomed to target the configuration to
terraform (for example), one does not expect it to be applied automatically,
but perform a `kops update cluster --target=terraform` followed by a `terraform
apply`. It's a disruption of common flow and it should be clarified.
2018-02-14 16:31:01 -03:00
klaus993 43251fbb60 Change example in create ig --help
Add another subnet to the first example to show how to pass multiple subnets.

And run `make gen-cli-docs`.
2018-02-13 19:12:31 -03:00
k8s-ci-robot ee18003b96
Merge pull request #4426 from yank1/fix-a-typo-in-tool_template.go
fix a typo in tool_template.go
2018-02-12 14:25:53 -08:00
yank1 4652619e52 fix a typo in tool_template.go 2018-02-12 18:55:25 +08:00
Kashif Saadat ac25853cd5 - Add etcdClusterSpec Image & Version in bootstrap data for Master nodes
- Reuse execWithTee fn for ETCD Command (tee & mkfifo in different path for newer image versions)
2018-02-10 12:14:36 +00:00
k8s-ci-robot ff22c13392
Merge pull request #4378 from justinsb/update_bazel_2
Update gazelle
2018-02-03 15:57:04 -08:00
Justin Santa Barbara 7dfca05c09 Remove federation support
As it has been removed from upstream kubernetes, in favor of the
multicluster revamp.
2018-02-03 16:53:39 -05:00
Justin Santa Barbara 8ef705353e Update gazelle 2018-02-03 13:27:23 -05:00
k8s-ci-robot dbc81d2be1
Merge pull request #4199 from dictvm/patch-1
Extend examples of subnet parameter
2018-02-02 02:27:24 -08:00
Daniel Heitmann ae16b8ce13 Fix formatting 2018-01-29 15:39:05 +01:00
Daniel Heitmann 3a34895e71 Improve Instance Group subnet creation CLI parameter description
Make it more obvious which input is expected.
2018-01-29 14:20:56 +01:00
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