Commit Graph

5044 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 7d15b5be05
Merge pull request #3837 from justinsb/avoid_list_for_keypairs_2
Automatic merge from submit-queue.

Refactor VFS CA store to reuse keyset from clientset

This ensures the two behave more similarly, but also will help us parse a
serialized keyset.

Builds on #3836
2017-12-21 09:26:46 -08:00
Kubernetes Submit Queue 2ed09a0142
Merge pull request #4122 from spiffxp/update-code-of-conduct
Automatic merge from submit-queue.

Update code-of-conduct.md

Refer to kubernetes/community as authoritative source for code of conduct

ref: kubernetes/community#1527
2017-12-20 20:56:32 -08:00
Thomas Peitz cd8d5f7bec Improve explanation of KubernetesCluster tag 2017-12-20 22:51:06 +01:00
Thomas Peitz 1eb1fdf163 Improve formatting of run_in_existing_vpc.md 2017-12-20 22:48:29 +01:00
Thomas Peitz 91fc6a83ba Move tagging infos of vpc into proper section 2017-12-20 22:46:35 +01:00
Thomas Peitz bf7e072f16 Improve formatting of shared resource tag docs 2017-12-20 22:41:31 +01:00
Thomas Peitz 56e82faedb Update shared resource tag infos regarding kops 1.8 2017-12-20 22:36:13 +01:00
Steve Ruckdashel 8da42b7ce7
Moved paragraph relating to runtimeConfig
This paragraph makes more sense under the runtimeConfig section than under the serviceNodePortRange section
2017-12-20 14:54:48 -06:00
Aaron Crickenberger aac4da1f66 Update code-of-conduct.md
Refer to kubernetes/community as authoritative source for code of conduct
2017-12-20 14:06:36 -05:00
Kashif Saadat 0b9a1116ad Fix null pointer issues when custom PROTOKUBE_IMAGE is specified. 2017-12-20 12:28:40 +00:00
Kubernetes Submit Queue 4f05a694d0
Merge pull request #4116 from bitfusionio/f1-instance-types
Automatic merge from submit-queue.

added instance types for f1 family
2017-12-20 04:15:18 -08:00
Kubernetes Submit Queue a00a0775f1
Merge pull request #4117 from chrislovecnm/gazelle-updates
Automatic merge from submit-queue.

updating bazel files
2017-12-20 03:37:51 -08:00
Kubernetes Submit Queue 173bafb6ba
Merge pull request #3836 from justinsb/avoid_list_for_keypairs
Automatic merge from submit-queue.

Remove use of deprecated create-if-missing functions

Generally tightening up the interface to make it easier to remove list
operations.

Builds on #3835
2017-12-20 00:13:56 -08:00
chrislovecnm 18ea92f696 updating bazel files 2017-12-20 00:26:28 -07:00
chrislovecnm ab4058d37d updating docs 2017-12-19 23:07:55 -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 ad82cd24eb Refactor VFS CA store to reuse keyset from clientset
This ensures the two behave more similarly, but also will help us parse
a serialized keyset.
2017-12-20 00:54:47 -05:00
Justin Santa Barbara f3e68c954c Remove use of deprecated create-if-missing functions
Generally tightening up the interface to make it easier to remove list
operations.
2017-12-20 00:54:47 -05:00
Justin Santa Barbara 9e5c086c5b Remove use of deprecated create-if-missing functions
Generally tightening up the interface to make it easier to remove list
operations.
2017-12-20 00:52:18 -05:00
Kubernetes Submit Queue 2737bef0b6
Merge pull request #3835 from justinsb/avoid_list_for_secrets
Automatic merge from submit-queue.

Avoid ListSecrets call in nodeup

This helps up with GCE permissions, but also helps us get rid of auth
tokens.

Builds on #3834
2017-12-19 20:50:54 -08:00
Peter Whitesell 7b10093082 added instance types for f1 family 2017-12-19 16:25:29 -06:00
Kubernetes Submit Queue e43ac18590
Merge pull request #3834 from justinsb/cleanup_ssh_3
Automatic merge from submit-queue.

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.

Builds on #3833
2017-12-19 10:29:15 -08:00
Kubernetes Submit Queue dc8c0ba470
Merge pull request #4109 from aledbf/update-image
Automatic merge from submit-queue.

Update ottoyiu/k8s-ec2-srcdst docker image

This new image contains https://github.com/ottoyiu/k8s-ec2-srcdst/pull/5 and https://github.com/ottoyiu/k8s-ec2-srcdst/pull/6
2017-12-19 09:43:47 -08:00
Justin Santa Barbara bf24a6443c Avoid ListSecrets call in nodeup
This helps up with GCE permissions, but also helps us get rid of auth
tokens.
2017-12-19 11:45:04 -05:00
Justin Santa Barbara 86ca778da3 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:45:04 -05: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
Manuel de Brito Fontes cb9859719d Update ottoyiu/k8s-ec2-srcdst docker image 2017-12-19 09:46:09 -03: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 78b61a5b6e
Merge pull request #4106 from justinsb/fix_comment_onPhaseiam
Automatic merge from submit-queue.

Fix code comment on PhaseSecurity
2017-12-18 20:38:33 -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
Justin Santa Barbara be9d15b565 Fix code comment on PhaseSecurity 2017-12-18 22:33:05 -05:00
Kubernetes Submit Queue cac47e7a74
Merge pull request #4096 from chrislovecnm/goimports
Automatic merge from submit-queue.

fixing goimports formatting
2017-12-18 11:18:41 -08:00
Kubernetes Submit Queue 3311020d38
Merge pull request #4101 from maciaszczykm/patch-1
Automatic merge from submit-queue.

Add Dashboard v1.8.1

https://github.com/kubernetes/dashboard/releases/tag/v1.8.1
2017-12-18 10:49:13 -08:00
Kubernetes Submit Queue 43b79a29b5
Merge pull request #4102 from rcuza/patch-1
Automatic merge from submit-queue.

make it go to f
2017-12-18 10:13:42 -08:00
chrislovecnm 509b8e285f fixing goimports formatting 2017-12-18 11:09:04 -07:00
Kubernetes Submit Queue 2eae62d460
Merge pull request #4085 from xoen/ag-oidc-prefixes-config
Automatic merge from submit-queue.

Support for OIDC 'username-prefix' and 'groups-prefix' flags

### What
Added support for `--oidc-username-prefix` and `--oidc-groups-prefix`.
By passing these it's possible to override the default prefixes used to map the OIDC user with the username in kubernetes.

### See
See: https://kubernetes.io/docs/admin/authentication/#configuring-the-api-server

### IMPORTANT
I'm far from a kubernetes/KOPS, this is not tested so someone needs to have a look and see if something is missing or if this can cause troubles! (don't want to accidentally cause the destruction of the universe 💥 )

It's basically the same done in this other PR: https://github.com/kubernetes/kops/pull/1438/files

I did **not** change the `zz_generated.conversion.go` files as according to comment at the top of them they're autogenerated:
```go
// This file was autogenerated by conversion-gen. Do not edit it manually!
```
(I wonder if they should be `.gitignore`d)

### Fixes
This should fix [#4007: field oidcUsernamePrefix is not recognized in cluster configuration file](https://github.com/kubernetes/kops/issues/4007)
2017-12-18 09:37:31 -08:00
Aldo "xoen" Giambelluca 9e30999d06 Support for OIDC 'username-prefix' and 'groups-prefix' flags
See: https://kubernetes.io/docs/admin/authentication/#configuring-the-api-server

This is very similar to this other PR: https://github.com/kubernetes/kops/pull/1438/files

I also updated the format of the documentation for the OIDC API Server fields
to follow the Go Style guide: https://blog.golang.org/godoc-documenting-go-code

Fixes: https://github.com/kubernetes/kops/issues/4007
2017-12-18 15:34:37 +00:00
Raúl Cuza cd442b3560
make it go to f
`aws ec2 describe-availability-zones` returns 1a-1f for my account. This change allows me to provision things in the 1f availability zone.
2017-12-18 10:05:41 -05:00
Marcin Maciaszczyk 339363dbd0
Rename v1.8.1 to v1.8.1.yaml 2017-12-18 10:08:10 +01:00
Marcin Maciaszczyk 005f845cf3
Update addon.yaml 2017-12-18 10:07:31 +01:00
Marcin Maciaszczyk b5934bd593
Add Dashboard v1.8.1 2017-12-18 10:06:08 +01: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
Kubernetes Submit Queue ff857218df
Merge pull request #4098 from chrislovecnm/gazelle-updates
Automatic merge from submit-queue.

fixing bazel

man we need a ci test for this :(
2017-12-17 17:36: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
chrislovecnm c0da5e7fbb fixing bazel 2017-12-17 17:03:58 -07:00
Kubernetes Submit Queue 0bfb273f72
Merge pull request #4095 from reactiveops/fix_3883
Automatic merge from submit-queue.

Adds permissions for ELB and NLB req'd by 1.9

Adds appropriate IAM permissions to Masters (in restrictive mode) for ELB and NLB.

Closes https://github.com/kubernetes/kops/issues/3883
2017-12-17 15:38:32 -08:00
Henry Muru Paenga 9f3382f072
Add docs for create cluster --subnets option 2017-12-18 12:33:06 +13: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