Enable RBAC by default

Change special rbac job to norbac to compensate.
This commit is contained in:
Matthew Mosesohn 2017-08-30 07:13:43 +01:00
parent 72a0d78b3c
commit ce7c9cfc52
3 changed files with 8 additions and 5 deletions

View file

@ -371,9 +371,9 @@ before_script:
CLUSTER_MODE: separate
STARTUP_SCRIPT: ""
.ubuntu_flannel_rbac_variables: &ubuntu_flannel_rbac_variables
.ubuntu_flannel_norbac_variables: &ubuntu_flannel_norbac_variables
# stage: deploy-gce-special
AUTHORIZATION_MODES: "{ 'authorization_modes': [ 'RBAC' ] }"
AUTHORIZATION_MODES: "{ 'authorization_modes': [] }"
KUBE_NETWORK_PLUGIN: flannel
CLOUD_IMAGE: ubuntu-1604-xenial
CLOUD_REGION: europe-west1-b
@ -605,13 +605,13 @@ ubuntu-vault-sep:
except: ['triggers']
only: ['master', /^pr-.*$/]
ubuntu-flannel-rbac-sep:
ubuntu-flannel-norbac-sep:
stage: deploy-gce-special
<<: *job
<<: *gce
variables:
<<: *gce_variables
<<: *ubuntu_flannel_rbac_variables
<<: *ubuntu_flannel_norbac_variables
when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]

View file

@ -25,6 +25,9 @@ kube_api_anonymous_auth: false
## Change this to use another Kubernetes version, e.g. a current beta release
kube_version: v1.7.3
# Disable RBAC by setting this to an empty list. Other choices: AlwaysAllow, AlwaysDeny
authorization_modes: ['RBAC']
# Where the binaries will be downloaded.
# Note: ensure that you've enough disk space (about 1G)
local_release_dir: "/tmp/releases"

View file

@ -129,7 +129,7 @@ openstack_lbaas_monitor_max_retries: false
## List of authorization modes that must be configured for
## the k8s cluster. Only 'AlwaysAllow','AlwaysDeny', and
## 'RBAC' modes are tested.
authorization_modes: []
authorization_modes: ['RBAC']
rbac_enabled: "{{ 'RBAC' in authorization_modes }}"
## List of key=value pairs that describe feature gates for