Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wait for tekton resources to be available #96

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading