diff --git a/kubernetes/api-pipeline-deploy.sh b/kubernetes/api-pipeline-deploy.sh index c97e363..0562f72 100755 --- a/kubernetes/api-pipeline-deploy.sh +++ b/kubernetes/api-pipeline-deploy.sh @@ -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 diff --git a/kubernetes/api-production-update.sh b/kubernetes/api-production-update.sh index 78906b2..8ca6b0e 100755 --- a/kubernetes/api-production-update.sh +++ b/kubernetes/api-production-update.sh @@ -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 \ @@ -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"