Commit Graph

733 Commits

Author SHA1 Message Date
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
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