k3s/cluster/gce
Kubernetes Submit Queue 1e879c69ec Merge pull request #43544 from liggitt/legacy-abac-kube-up
Automatic merge from submit-queue (batch tested with PRs 43546, 43544)

Default to enabling legacy ABAC policy in non-test kube-up.sh environments

Fixes https://github.com/kubernetes/kubernetes/issues/43541

In 1.5, we unconditionally stomped the abac policy file if KUBE_USER was set, and unconditionally used ABAC mode pointing to that file.

In 1.6, unless the user opts out (via `ENABLE_LEGACY_ABAC=false`), we want the same legacy policy included as a fallback to RBAC.

This PR:
* defaults legacy ABAC **on** in normal deployments
* defaults legacy ABAC **on** in upgrade E2Es (ensures combination of ABAC and RBAC works properly for upgraded clusters)
* defaults legacy ABAC **off** in non-upgrade E2Es (ensures e2e tests 1.6+ run with tightened permissions, and that default RBAC roles cover the required core components)

GKE changes to drive the `ENABLE_LEGACY_ABAC` envvar were made by @cjcullen out of band

```release-note
`kube-up.sh` using the `gce` provider enables both RBAC authorization and the permissive legacy ABAC policy that makes all service accounts superusers. To opt out of the permissive ABAC policy, export the environment variable `ENABLE_LEGACY_ABAC=false` before running `cluster/kube-up.sh`.
```
2017-03-23 14:13:18 -07:00
..
container-linux Merge pull request #43544 from liggitt/legacy-abac-kube-up 2017-03-23 14:13:18 -07:00
debian remove support for debian masters in GCE 2017-02-28 09:54:07 -08:00
gci Merge pull request #43544 from liggitt/legacy-abac-kube-up 2017-03-23 14:13:18 -07:00
BUILD remove trusty GCE kube-up.sh 2017-02-28 10:08:17 -08:00
OWNERS adding vishh to gce cluster owners 2017-02-27 10:58:43 -08:00
config-common.sh
config-default.sh Default to enabling legacy ABAC policy in non-test GCE kube-up.sh environments 2017-03-22 22:20:09 -04:00
config-test.sh Default to enabling legacy ABAC policy in non-test GCE kube-up.sh environments 2017-03-22 22:20:09 -04:00
configure-vm.sh Force create symlinks. 2017-03-15 14:03:46 -07:00
cos Symlink cluster/gce/cos to cluster/gce/gci 2017-03-15 15:31:51 -07:00
delete-stranded-load-balancers.sh
list-resources.sh Don't fail if the grep fails to match any resources 2017-02-22 14:55:57 -08:00
upgrade.sh Handle NPD during cluster upgrade. 2017-03-09 13:45:46 -08:00
util.sh remove support for debian masters in GCE 2017-02-28 09:54:07 -08:00