Commit e2bb3b11 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'increase-certmanager-install-timeout' into 'master'

Increase certmanager install timeout

See merge request gitlab-org/gitlab!19447
parents 18fe4a29 c06e89bb
...@@ -65,7 +65,7 @@ module Clusters ...@@ -65,7 +65,7 @@ module Clusters
end end
def retry_command(command) def retry_command(command)
"for i in $(seq 1 30); do #{command} && s=0 && break || s=$?; sleep 1s; echo \"Retrying ($i)...\"; done; (exit $s)" "for i in $(seq 1 90); do #{command} && s=0 && break || s=$?; sleep 1s; echo \"Retrying ($i)...\"; done; (exit $s)"
end end
def post_delete_script def post_delete_script
......
---
title: Increase the timeout for GitLab-managed cert-manager installation to 90 seconds
(was 30 seconds)
merge_request: 19447
author:
type: fixed
...@@ -54,7 +54,7 @@ describe Clusters::Applications::CertManager do ...@@ -54,7 +54,7 @@ describe Clusters::Applications::CertManager do
'kubectl label --overwrite namespace gitlab-managed-apps certmanager.k8s.io/disable-validation=true' 'kubectl label --overwrite namespace gitlab-managed-apps certmanager.k8s.io/disable-validation=true'
]) ])
expect(subject.postinstall).to eq([ expect(subject.postinstall).to eq([
"for i in $(seq 1 30); do kubectl apply -f /data/helm/certmanager/config/cluster_issuer.yaml && s=0 && break || s=$?; sleep 1s; echo \"Retrying ($i)...\"; done; (exit $s)" "for i in $(seq 1 90); do kubectl apply -f /data/helm/certmanager/config/cluster_issuer.yaml && s=0 && break || s=$?; sleep 1s; echo \"Retrying ($i)...\"; done; (exit $s)"
]) ])
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment