Commit Graph

815 Commits

Author SHA1 Message Date
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
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Joel Bastos 58854a3e9c
Fix minor typo 2017-12-14 14:18:14 +00:00
Kubernetes Submit Queue d533714aa8
Merge pull request #4036 from almariah/feature-api-elb-security-groups
Automatic merge from submit-queue.

Allow additional SGs to be added to API loadbalancer

Allow adding precreated additional security groups to the API loadbalancer using cluster spec:
```yaml
spec:
  api:
    loadBalancer:
      type: Public
      additionalSecurityGroups:
      - sg-exampleid3
      - sg-exampleid4
```

- [x] Adding additionalSecurityGroups cluster spec
- [x] Adding validation for repeated security groups
- [x] Adding validation for API loadbalancer security groups
- [x] Integration test for API loadbalancer and its security groups
- [x] Update API docs and cluster.spec docs
2017-12-14 02:25:40 -08:00
Kubernetes Submit Queue 7bd0a6a703
Merge pull request #3898 from rdrgmnzs/additional_cidr
Automatic merge from submit-queue.

Add additionalNetworkCIDRs to support VPCs with multiple CIDRs in AWS

Add additionalNetworkCIDRs to support VPCs with multiple CIDRs in AWS.

@justinsb I cannot find anywhere that does a check on an existing VPC to see if the networkCIDR matches what is on the VPC defined, I was looking for that so I can add a similar check for this. Am I missing something or is there really no check like that?
2017-12-13 18:25:41 -08:00
Rodrigo Menezes be85dfc438 Fix typo 2017-12-13 15:48:14 -08:00
Abdullah Almariah 2746b88808 Update cluster.spec docs 2017-12-13 02:05:42 +01:00
krogon-dp f248a3b2fe Documentation fix for watchIngress flag in externalDns ClusterSpec 2017-12-12 15:52:50 +01:00
Abdullah Almariah 6e76277c1b Revert "gen-cli-docs"
This reverts commit 60a90bfd36.
2017-12-12 11:15:14 +01:00
Kubernetes Submit Queue d931c229f7
Merge pull request #4020 from rifelpet/fix_shared_igw_rename
Automatic merge from submit-queue.

Fix spurious shared InternetGateway renaming

This fixes the original issue described in #476 where `kops update cluster` would continuously report renaming a shared IGW even though it never actually renames it. I also added tests to confirm the behavior change.

I removed the bug mention from the docs although if you would prefer to keep it and instead say `In kops versions before X, ...` I can do that too
2017-12-11 08:15:05 -08:00
Abdullah Almariah 60a90bfd36 Allow additional SGs to be added to API loadbalancer 2017-12-11 15:49:53 +01:00
Kubernetes Submit Queue 05cde9e3ed
Merge pull request #4008 from ysim/docs-aws-minor-command-syntax-update
Automatic merge from submit-queue.

Minor update to docs/aws.md

Updates the backtick syntax to `$(...)`, plus a minor grammar fix. 

I wasn't sure if I needed to fill out a CLA for just a documentation update. Let me know if I should! 

_Update:_ Never mind, I've signed the agreement now!
2017-12-07 03:49:08 -08:00
Peter Rifel 2400091a0e Remove now-unnecessary note about spurious resource renaming 2017-12-06 16:36:42 -08:00
Sellers, Chris G 267590397d
Fixed minor typo in 1.8-NOTES.md file
Change 'or' to 'for' in line ... kube-router & romana...
2017-12-05 14:49:04 -05:00
Rodrigo Menezes 3942185698 Merge remote-tracking branch 'upstream/master' into additional_cidr 2017-12-04 12:53:20 -08:00
Yi Qing Sim f796777fe0 docs/aws.md: minor grammar fix 2017-12-04 15:52:00 -05:00
Yi Qing Sim e78f9f54c8 docs/aws.md: change `...` to $(...) as backticks are deprecated 2017-12-04 15:48:34 -05:00
Justin Santa Barbara 442c0093ca Release notes for 1.8.0 2017-12-03 16:23:51 -05:00
Justin Santa Barbara f2373c8847 Add list of PRs for 1.8.0 release 2017-12-03 02:04:01 -05:00
Justin Santa Barbara 33b7432d6a Fix segfault when updating non-existent object
Fix #3935
2017-12-01 11:00:46 -05:00
Kubernetes Submit Queue fd7acd1ce6
Merge pull request #3948 from chrislovecnm/openapi-updates
Automatic merge from submit-queue.

openapi doc updates
2017-11-29 09:49:26 -08:00
Mike Splain 71a32f2cf9 Fix brew docs typo 2017-11-28 13:41:43 -05:00
chrislovecnm da10075d5c openapi doc updates 2017-11-28 11:37:49 -07:00
Rodrigo Menezes 2594d382ae Merge remote-tracking branch 'upstream/master' into additional_cidr 2017-11-27 23:30:42 -08:00
Rodrigo Menezes f908dcb3bf Check and docs 2017-11-26 20:37:16 -08:00
Justin Santa Barbara 660c45a01c Add initial docs on the kops side of authentication 2017-11-26 23:28:33 -05:00
Kubernetes Submit Queue ee6762dbbe
Merge pull request #3908 from KashifSaadat/canal-calico-upgrade-steps
Automatic merge from submit-queue.

Updated 1.8 release notes to cover Canal manual upgrade steps.
2017-11-22 09:40:34 -08:00
Kubernetes Submit Queue 7a4ea8829a
Merge pull request #3826 from mikesplain/add_brew_devel_docs
Automatic merge from submit-queue.

Add homebrew devel and HEAD notes to docs.
2017-11-22 08:30:04 -08:00
Kashif Saadat 5ebde989be Updated 1.8 release notes to cover Canal manual upgrade steps. 2017-11-22 15:25:34 +00:00
Kubernetes Submit Queue 3f2e537789
Merge pull request #3897 from Moshe-Immerman/patch-1
Automatic merge from submit-queue.

fix: paths in cluster_template.md
2017-11-21 15:32:01 -08:00
Kashif Saadat 79eef3cc6c Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00:00
Moshe-Immerman a245e88c01
fix: paths in cluster_template.md 2017-11-21 06:25:54 +02:00
Mike Splain ef30f0ea49 Add homebrew devel/HEAD notes to docs and cleanup
Added to brew in https://github.com/Homebrew/homebrew-core/pull/20464
2017-11-16 16:29:09 -05:00
Serge Ohl d3254f47ed Reload bot 2017-11-16 14:06:21 -05:00
Serge Ohl 414d907629 Add Exemple for instance group tagging 2017-11-16 13:46:51 -05:00
Kubernetes Submit Queue e85abf06d7
Merge pull request #3856 from chrislovecnm/openapi-updates
Automatic merge from submit-queue.

updating api docs

/assign @justinsb @geojaz @andrewsykim
/approve
2017-11-14 20:48:45 -08:00
chrislovecnm 6c2caedfc0 updating api docs 2017-11-14 16:07:50 -07:00
Dan Murphy f0c5b6a868
Update Additional user-data example
Looking at https://godoc.org/k8s.io/kops/pkg/apis/kops#InstanceGroupSpec and https://github.com/kubernetes/kops/pull/3633, the field is `AdditionalUserData` not `ExtraUserData`
2017-11-14 18:27:20 +00:00
Justin Santa Barbara 3ab71d19ab Tweak kops create ig flag to edit, not editor
As EDITOR is the env var used to configure the editor, which will be
confusing.
2017-11-14 03:17:19 -05:00
Kubernetes Submit Queue ad50149769
Merge pull request #3787 from jchanam/master
Automatic merge from submit-queue.

Add edit flag so create instancegroup command is usable on scripts

Until now, the opening of an interactive editor when creating a new instance group was mandatory.

This this commit, a new flag is added, so this is now optional.

This commit is backwards compatible.
2017-11-13 21:47:37 -08:00
Kubernetes Submit Queue 83c54fb6dc
Merge pull request #3827 from chrislovecnm/openapi-updates
Automatic merge from submit-queue.

Updating API documentation

User data API values generatation
2017-11-13 21:12:47 -08:00
Kubernetes Submit Queue ef08265e56
Merge pull request #3847 from discordianfish/add-horizontal-pod-autoscaler-delay
Automatic merge from submit-queue.

Add HPA up/downscale delay

Still need to test these changes.
2017-11-13 17:55:05 -08:00
Johannes 'fish' Ziemke 917e9dec38 Add HPA up/downscale delay 2017-11-13 15:50:37 +01:00
Julio Chana 9ca5f9ac98
Change no-edit flag to edit 2017-11-13 11:32:24 +01:00
Justin Santa Barbara 148a65e1ad Fix CNI CPU allocations
* Limit each CNI provider to 100m

* Remove CPU limits - they cause serious problems
(https://github.com/kubernetes/kubernetes/issues/51135), but this also
makes the CPU allocation less problematic.

* Bump versions and start introducing the `-kops.1` suffix preemptively.

* Upgrade flannel to 0.9.0 as it fixes a lot.
2017-11-13 01:28:40 -05:00
Justin Santa Barbara aff2e6a114 Fix resources for etcd-events
etcd-events only requests 100m, otherwise we run out of cpu on a 1
core master.
2017-11-13 00:34:39 -05:00
Shashank Tomar e1b5c291d1
Fixed the broken link for aws doc. 2017-11-11 19:04:54 +05:30
chrislovecnm cd37a85dcd Updating api documentation 2017-11-10 11:41:41 -07:00
Julio Chana a32da0748d
Generate cli docs 2017-11-10 14:06:38 +01:00