Skip to content

Commit

Permalink
Merge pull request #96 from vprashar2929/add-wait-tek
Browse files Browse the repository at this point in the history
fix: wait for tekton resources to be available
  • Loading branch information
SamYuan1990 authored Nov 2, 2024
2 parents 60ff8c9 + 1932796 commit 1d295f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,24 @@ declare -r RESTARTCONTAINERRUNTIME=${RESTARTCONTAINERRUNTIME:-false}
declare -r REDHAT_SUB=${REDHAT_SUB:-false}
declare -r CLUSTER_CONFIG=${CLUSTER_CONFIG:-true}

declare -r TEKTON_INSTALL_URL="https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml"

source "$PROJECT_ROOT/lib/utils.sh"

config_cluster() {
info "start config cluster"
export KUBECONFIG="${KUBECONFIG_ROOT_DIR}/$KEPLER_KUBECONFIG"
info "finish load kubeconfig"

if is_set "$PROMETHEUS_ENABLE" || is_set "$GRAFANA_ENABLE"; then
source "$PROJECT_ROOT/lib/prometheus.sh"
deploy_prometheus_operator
fi

if is_set "$TEKTON_ENABLE"; then
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
rollout_ns_status tekton-pipelines
rollout_ns_status tekton-pipelines-resolvers
kubectl apply --filename "$TEKTON_INSTALL_URL"
wait_for_resource 10 20 deployment Available tekton-pipelines-controller -n tekton-pipelines
wait_for_resource 10 20 deployment Available tekton-pipelines-webhook -n tekton-pipelines
fi

# install kubevirt per https://kubevirt.io/quickstart_kind/
Expand Down

0 comments on commit 1d295f6

Please sign in to comment.