Skip to content
Snippets Groups Projects
Commit 8d2fc883 authored by jwfang's avatar jwfang
Browse files

add ci test for rbac

parent 092bf07c
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ before_script: ...@@ -62,6 +62,7 @@ before_script:
KUBELET_DEPLOYMENT: "docker" KUBELET_DEPLOYMENT: "docker"
VAULT_DEPLOYMENT: "docker" VAULT_DEPLOYMENT: "docker"
WEAVE_CPU_LIMIT: "100m" WEAVE_CPU_LIMIT: "100m"
AUTHORIZATION_MODES: "{ 'authorization_modes': ['AlwaysAllow'] }"
MAGIC: "ci check this" MAGIC: "ci check this"
.gce: &gce .gce: &gce
...@@ -132,6 +133,7 @@ before_script: ...@@ -132,6 +133,7 @@ before_script:
-e local_release_dir=${PWD}/downloads -e local_release_dir=${PWD}/downloads
-e resolvconf_mode=${RESOLVCONF_MODE} -e resolvconf_mode=${RESOLVCONF_MODE}
-e vault_deployment_type=${VAULT_DEPLOYMENT} -e vault_deployment_type=${VAULT_DEPLOYMENT}
-e "${AUTHORIZATION_MODES}"
--limit "all:!fake_hosts" --limit "all:!fake_hosts"
cluster.yml cluster.yml
...@@ -373,6 +375,15 @@ before_script: ...@@ -373,6 +375,15 @@ before_script:
CLUSTER_MODE: separate CLUSTER_MODE: separate
STARTUP_SCRIPT: "" STARTUP_SCRIPT: ""
.ubuntu_calico_rbac_variables: &ubuntu_calico_rbac_variables
# stage: deploy-gce-special
AUTHORIZATION_MODES: "{ 'authorization_modes': [ 'RBAC' ] }"
KUBE_NETWORK_PLUGIN: calico
CLOUD_IMAGE: ubuntu-1604-xenial
CLOUD_REGION: europe-west1-b
CLUSTER_MODE: separate
STARTUP_SCRIPT: ""
# Builds for PRs only (premoderated by unit-tests step) and triggers (auto) # Builds for PRs only (premoderated by unit-tests step) and triggers (auto)
coreos-calico-sep: coreos-calico-sep:
stage: deploy-gce-part1 stage: deploy-gce-part1
...@@ -598,6 +609,17 @@ ubuntu-vault-sep: ...@@ -598,6 +609,17 @@ ubuntu-vault-sep:
except: ['triggers'] except: ['triggers']
only: ['master', /^pr-.*$/] only: ['master', /^pr-.*$/]
ubuntu-calico-rbac-sep:
stage: deploy-gce-special
<<: *job
<<: *gce
variables:
<<: *gce_variables
<<: *ubuntu_calico_rbac_variables
when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
# Premoderated with manual actions # Premoderated with manual actions
ci-authorized: ci-authorized:
<<: *job <<: *job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment