charts/tools/utils/harbor-tekton-aio.sh
Tin Lam de63cdf6d4 chore(gate): adds and fixes zuul jobs
This patch adds in a tekton zuul job and fixes/adjusts the existing
linting and building, which currently does not perform the advertised
checks. This is the final patch of the chain of patches in order:

0. https://review.opendev.org/#/c/759865/ : tekton-pipelines
1. https://review.opendev.org/#/c/759598/ : tekton-triggers
2. https://review.opendev.org/#/c/759764/ : tektnon-dashboard

Change-Id: Ie7bd9efd42fd13fe8e5e83f290f72ed00ba9dea1
Signed-off-by: Tin Lam <tin@irrational.io>
2020-12-10 16:24:37 +00:00

36 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -ex
# NOTE(lamt): Runs this script in the root directory of this repo.
: ${NAMESPACE:="tekton-pipelines"}
: ${CHART_ROOT_PATH:="./charts"}
# deploys a Kubernetes cluster
# ./tools/gate/deploy-k8s.sh
# creates namespace
kubectl create namespace $NAMESPACE || true
# TODO(lamt): Needs an PV/C provider - NFS
# deploys harbor
helm upgrade --install harbor ${CHART_ROOT_PATH}/harbor \
--namespace=$NAMESPACE \
${EXTRA_HELM_ARGS_TEKTON_HARBOR}
# deploys tekton
helm upgrade --install tekton-pipelines ${CHART_ROOT_PATH}/tekton-pipelines \
--namespace=$NAMESPACE \
${EXTRA_HELM_ARGS_TEKTON_PIPELINES}
helm upgrade --install tekton-triggers ${CHART_ROOT_PATH}/tekton-triggers \
--namespace=$NAMESPACE \
${EXTRA_HELM_ARGS_TEKTON_TRIGGERS}
helm upgrade --install tekton-dashboard ${CHART_ROOT_PATH}/tekton-dashboard \
--namespace=$NAMESPACE \
${EXTRA_HELM_ARGS_TEKTON_DASHBOARD}
# waits for the pods to get ready
kubectl --namespace $NAMESPACE wait --for=condition=ready pod --timeout=600s --all