|
|
@ -47,7 +47,6 @@ before_script: |
|
|
|
GS_ACCESS_KEY_ID: $GS_KEY |
|
|
|
GS_SECRET_ACCESS_KEY: $GS_SECRET |
|
|
|
ANSIBLE_KEEP_REMOTE_FILES: "1" |
|
|
|
CLUSTER_MODE: default |
|
|
|
BOOTSTRAP_OS: none |
|
|
|
LOG_LEVEL: "-vv" |
|
|
|
|
|
|
@ -129,33 +128,127 @@ before_script: |
|
|
|
-e inventory_path=${PWD}/inventory/inventory.ini |
|
|
|
-e cloud_region=${CLOUD_REGION} |
|
|
|
|
|
|
|
# Test matrix. Leave the comments for markup scripts. |
|
|
|
.coreos_calico_sep_variables: &coreos_calico_sep_variables |
|
|
|
# stage: deploy-gce-part1 |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: coreos-stable |
|
|
|
CLOUD_REGION: us-west1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
BOOTSTRAP_OS: coreos |
|
|
|
|
|
|
|
.debian8_canal_ha_variables: &debian8_canal_ha_variables |
|
|
|
# stage: deploy-gce-part1 |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: debian-8-kubespray |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: ha |
|
|
|
|
|
|
|
.rhel7_weave_variables: &rhel7_weave_variables |
|
|
|
# stage: deploy-gce-part1 |
|
|
|
KUBE_NETWORK_PLUGIN: weave |
|
|
|
CLOUD_IMAGE: rhel-7 |
|
|
|
CLOUD_REGION: europe-west1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
|
|
|
|
.centos7_flannel_variables: ¢os7_flannel_variables |
|
|
|
# stage: deploy-gce-part2 |
|
|
|
KUBE_NETWORK_PLUGIN: flannel |
|
|
|
CLOUD_IMAGE: centos-7 |
|
|
|
CLOUD_REGION: us-west1-a |
|
|
|
CLUSTER_MODE: default |
|
|
|
|
|
|
|
.debian8_calico_variables: &debian8_calico_variables |
|
|
|
# stage: deploy-gce-part2 |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: debian-8-kubespray |
|
|
|
CLOUD_REGION: us-central1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
|
|
|
|
.coreos_canal_variables: &coreos_canal_variables |
|
|
|
# stage: deploy-gce-part2 |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: coreos-stable |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
BOOTSTRAP_OS: coreos |
|
|
|
|
|
|
|
.rhel7_canal_sep_variables: &rhel7_canal_sep_variables |
|
|
|
# stage: deploy-gce-special |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: rhel-7 |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
|
|
|
|
.ubuntu_weave_sep_variables: &ubuntu_weave_sep_variables |
|
|
|
# stage: deploy-gce-special |
|
|
|
KUBE_NETWORK_PLUGIN: weave |
|
|
|
CLOUD_IMAGE: ubuntu-1604-xenial |
|
|
|
CLOUD_REGION: us-central1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
|
|
|
|
.centos7_calico_ha_variables: ¢os7_calico_ha_variables |
|
|
|
# stage: deploy-gce-special |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: centos-7 |
|
|
|
CLOUD_REGION: europe-west1-b |
|
|
|
CLUSTER_MODE: ha |
|
|
|
|
|
|
|
# Builds for PRs only (auto) |
|
|
|
coreos-calico-sep: |
|
|
|
stage: deploy-gce-part1 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: coreos-stable |
|
|
|
CLOUD_REGION: us-west1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
BOOTSTRAP_OS: coreos |
|
|
|
<<: *coreos_calico_sep_variables |
|
|
|
when: on_success |
|
|
|
except: ['triggers'] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
|
|
|
|
centos7-flannel: |
|
|
|
stage: deploy-gce-part2 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *centos7_flannel_variables |
|
|
|
when: on_success |
|
|
|
except: ['triggers'] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
|
|
|
|
ubuntu-weave-sep: |
|
|
|
stage: deploy-gce-special |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *ubuntu_weave_sep_variables |
|
|
|
when: on_success |
|
|
|
except: ['triggers'] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
|
|
|
|
# More builds for PRs/merges (manual) and triggers (auto) |
|
|
|
debian8-canal-ha: |
|
|
|
stage: deploy-gce-part1 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: debian-8-kubespray |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: ha |
|
|
|
<<: *debian8_canal_ha_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/] |
|
|
|
|
|
|
|
debian8-canal-ha-triggers: |
|
|
|
stage: deploy-gce-part1 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *debian8_canal_ha_variables |
|
|
|
when: on_success |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
rhel7-weave: |
|
|
|
stage: deploy-gce-part1 |
|
|
@ -163,26 +256,20 @@ rhel7-weave: |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: weave |
|
|
|
CLOUD_IMAGE: rhel-7 |
|
|
|
CLOUD_REGION: europe-west1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
<<: *rhel7_weave_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/] |
|
|
|
|
|
|
|
centos7-flannel: |
|
|
|
stage: deploy-gce-part2 |
|
|
|
rhel7-weave-triggers: |
|
|
|
stage: deploy-gce-part1 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: flannel |
|
|
|
CLOUD_IMAGE: centos-7 |
|
|
|
CLOUD_REGION: us-west1-a |
|
|
|
CLUSTER_MODE: default |
|
|
|
<<: *rhel7_weave_variables |
|
|
|
when: on_success |
|
|
|
except: ['triggers'] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
debian8-calico: |
|
|
|
stage: deploy-gce-part2 |
|
|
@ -190,12 +277,20 @@ debian8-calico: |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: debian-8-kubespray |
|
|
|
CLOUD_REGION: us-central1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
<<: *debian8_calico_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/] |
|
|
|
|
|
|
|
debian8-calico-triggers: |
|
|
|
stage: deploy-gce-part2 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *debian8_calico_variables |
|
|
|
when: on_success |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
coreos-canal: |
|
|
|
stage: deploy-gce-part2 |
|
|
@ -203,13 +298,20 @@ coreos-canal: |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: coreos-stable |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: default |
|
|
|
BOOTSTRAP_OS: coreos |
|
|
|
<<: *coreos_canal_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/] |
|
|
|
|
|
|
|
coreos-canal-triggers: |
|
|
|
stage: deploy-gce-part2 |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *coreos_canal_variables |
|
|
|
when: on_success |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
rhel7-canal-sep: |
|
|
|
stage: deploy-gce-special |
|
|
@ -217,26 +319,20 @@ rhel7-canal-sep: |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: canal |
|
|
|
CLOUD_IMAGE: rhel-7 |
|
|
|
CLOUD_REGION: us-east1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
<<: *rhel7_canal_sep_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/,] |
|
|
|
|
|
|
|
ubuntu-weave-sep: |
|
|
|
rhel7-canal-sep-triggers: |
|
|
|
stage: deploy-gce-special |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: weave |
|
|
|
CLOUD_IMAGE: ubuntu-1604-xenial |
|
|
|
CLOUD_REGION: us-central1-b |
|
|
|
CLUSTER_MODE: separated |
|
|
|
<<: *rhel7_canal_sep_variables |
|
|
|
when: on_success |
|
|
|
except: ['triggers'] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
centos7-calico-ha: |
|
|
|
stage: deploy-gce-special |
|
|
@ -244,12 +340,22 @@ centos7-calico-ha: |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
KUBE_NETWORK_PLUGIN: calico |
|
|
|
CLOUD_IMAGE: centos-7 |
|
|
|
CLOUD_REGION: europe-west1-b |
|
|
|
CLUSTER_MODE: ha |
|
|
|
<<: *centos7_calico_ha_variables |
|
|
|
when: manual |
|
|
|
only: ['master', /^pr-.*$/, 'triggers'] |
|
|
|
except: ['triggers'] |
|
|
|
only: ['master', /^pr-.*$/] |
|
|
|
|
|
|
|
centos7-calico-ha-triggers: |
|
|
|
stage: deploy-gce-special |
|
|
|
<<: *job |
|
|
|
<<: *gce |
|
|
|
variables: |
|
|
|
<<: *gce_variables |
|
|
|
<<: *centos7_calico_ha_variables |
|
|
|
when: on_success |
|
|
|
only: ['triggers'] |
|
|
|
|
|
|
|
#TODO(bogdando) add coreos-weave and *triggers |
|
|
|
|
|
|
|
syntax-check: |
|
|
|
<<: *job |
|
|
|