Skip to content

Commit

Permalink
ci: make the lines in the pipeline make sense
Browse files Browse the repository at this point in the history
- update istio deploy script to not require istio
  to be downloaded since it uses `istioctl`

Co-authored-by: Tim Downey <[email protected]>
Co-authored-by: Rodolfo Sanchez <[email protected]>
  • Loading branch information
3 people committed Feb 24, 2020
1 parent 6fef4ef commit 6b29399
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
23 changes: 12 additions & 11 deletions ci/cf-k8s-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ jobs:
resource: cf-deployment-concourse-tasks
- get: cf-deployment
resource: cf-deployment
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [eirini-dev-1-bbl-up]
Expand Down Expand Up @@ -655,7 +654,6 @@ jobs:
resource: cf-deployment-concourse-tasks
- get: cf-deployment
resource: cf-deployment
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [eirini-dev-2-bbl-up]
Expand Down Expand Up @@ -962,7 +960,6 @@ jobs:
resource: cf-deployment-concourse-tasks
- get: cf-deployment
resource: cf-deployment
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [eirini-dev-3-bbl-up]
Expand Down Expand Up @@ -1214,7 +1211,6 @@ jobs:
resource: cf-deployment-concourse-tasks
- get: cf-deployment
resource: cf-deployment
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [dont-smoke-bbl-up]
Expand Down Expand Up @@ -1286,9 +1282,8 @@ jobs:
- in_parallel:
- get: istio
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: cf-k8s-networking-istio-values
trigger: true
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [dont-smoke-deploy-cf]
trigger: true
Expand Down Expand Up @@ -1417,8 +1412,11 @@ jobs:
- get: cf-deployment-concourse-tasks
- get: cf-k8s-networking-ci
- get: cf-k8s-networking
passed: [dont-smoke-smoke-tests]
trigger: true
- get: networking-oss-deployments
passed: [dont-smoke-smoke-tests]
trigger: true
- task: updated-integration-configs
file: cf-deployment-concourse-tasks/update-integration-configs/task.yml
input_mapping:
Expand Down Expand Up @@ -1463,7 +1461,6 @@ jobs:
- in_parallel:
- get: cf-deployment-concourse-tasks
resource: cf-deployment-concourse-tasks
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
- get: bosh-deployment
Expand Down Expand Up @@ -1527,7 +1524,6 @@ jobs:
resource: cf-deployment-concourse-tasks
- get: cf-deployment
resource: cf-deployment
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [good-acceptance-bbl-up]
Expand Down Expand Up @@ -1598,9 +1594,9 @@ jobs:
- in_parallel:
- get: istio
- get: cf-k8s-networking
- get: cf-k8s-networking-ci
- get: cf-k8s-networking-istio-values
passed: [dont-smoke-networking-acceptance-tests]
trigger: true
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
passed: [good-acceptance-deploy-cf]
trigger: true
Expand Down Expand Up @@ -1666,7 +1662,7 @@ jobs:
plan:
- in_parallel:
- get: cf-k8s-networking
passed: [dont-smoke-networking-acceptance-tests]
passed: [good-acceptance-deploy-istio]
trigger: true
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
Expand Down Expand Up @@ -1694,7 +1690,10 @@ jobs:
- get: cf-deployment-concourse-tasks
- get: cf-k8s-networking-ci
- get: cf-k8s-networking
trigger: true
passed: [good-acceptance-install-cf-networking]
- get: networking-oss-deployments
trigger: true
passed: [good-acceptance-install-cf-networking]
- task: updated-integration-configs
file: cf-deployment-concourse-tasks/update-integration-configs/task.yml
Expand Down Expand Up @@ -1743,6 +1742,8 @@ jobs:
trigger: true
- get: cf-k8s-networking-ci
- get: networking-oss-deployments
trigger: true
passed: [good-acceptance-networking-acceptance-tests]
- task: updated-integration-configs
file: cf-deployment-concourse-tasks/update-integration-configs/task.yml
input_mapping:
Expand Down
16 changes: 7 additions & 9 deletions ci/tasks/istio/deploy-istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ function install_istio() {
export KUBECONFIG="${PWD}/kubeconfig/config"
generate_script="${PWD}/cf-k8s-networking/config/istio/generate.sh"

pushd istio > /dev/null
kubectl config use-context ${KUBECONFIG_CONTEXT}
kubectl config use-context ${KUBECONFIG_CONTEXT}

# Install Istio with its dependencies (--dangerous-allow-all-symlink-destinations is required for process substitution on Linux)
# fixed in https://github.com/k14s/ytt/commit/7e1876698b4ea633ac44368168b43f51d55f5645
# removed when ytt is upgraded
ytt --dangerous-allow-all-symlink-destinations \
-f istio.yaml=<("${generate_script}" --set values.grafana.enabled=true) \
| kubectl apply -f -
# Install Istio with its dependencies (--dangerous-allow-all-symlink-destinations is required for process substitution on Linux)
# fixed in https://github.com/k14s/ytt/commit/7e1876698b4ea633ac44368168b43f51d55f5645
# removed when ytt is upgraded
ytt --dangerous-allow-all-symlink-destinations \
-f istio.yaml=<("${generate_script}" --set values.grafana.enabled=true) \
| kubectl apply -f -

popd
}

function configure_dns() {
Expand Down
1 change: 0 additions & 1 deletion ci/tasks/istio/deploy-istio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ image_resource:
inputs:
- name: cf-k8s-networking
- name: cf-k8s-networking-ci
- name: istio
- name: kubeconfig

run:
Expand Down

0 comments on commit 6b29399

Please sign in to comment.