Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions kubernetes/api-pipeline-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ function deploy_pipeline {
echo "Deploying pipeline-regression..."
kubectl --context=${CONTEXT} apply -f kernelci-pipeline/kube/aks/regression.yaml --namespace=${NS_PIPELINE}

# Deploy cron
echo "Deploying cron..."
kubectl --context=${CONTEXT} apply -f kernelci-pipeline/kube/aks/cron.yaml --namespace=${NS_PIPELINE}

sleep 5

# wait until ingress is ready
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/api-production-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ build_kci2_docker_images() {
echo "./kci docker build ${rev_arg} --prefix=kernelci/ -v --push kernelci api" >> kernelci-core/dockerbuilds.sh
echo "./kci docker build ${rev_arg} --prefix=kernelci/ -v --push kernelci pipeline" >> kernelci-core/dockerbuilds.sh
echo "./kci docker build ${rev_arg} --prefix=kernelci/ -v --push kernelci lava-callback" >> kernelci-core/dockerbuilds.sh
echo "./kci docker build ${rev_arg} --prefix=kernelci/ -v --push kernelci pipeline-cron" >> kernelci-core/dockerbuilds.sh
chmod +x kernelci-core/dockerbuilds.sh
# map also host docker and docker credentials
docker run -v $PWD/kernelci-core:/kernelci-core -w /kernelci-core --rm --privileged \
Expand Down Expand Up @@ -146,6 +147,8 @@ apply_manifests() {
kubectl --context=$CONTEXT apply --namespace kernelci-pipeline -f kernelci-pipeline/kube/aks/tarball.yaml
echo "[DEPLOY] Applying configmap"
kubectl --context=$CONTEXT apply --namespace kernelci-pipeline -f kernelci-pipeline/kube/aks/pipeline-kcidb.yaml
echo "[DEPLOY] Applying cron"
kubectl --context=$CONTEXT apply --namespace kernelci-pipeline -f kernelci-pipeline/kube/aks/cron.yaml

# BUG/FIXME: trigger need some delay, otherwise if other components are not ready, it will waste the job
echo "Sleeping 10 seconds before applying trigger"
Expand Down