Skip to content

Commit 0b29c3f

Browse files
Merge pull request #16287 from jim-minter/ti_timeout
Automatic merge from submit-queue (batch tested with PRs 15927, 16283, 16239, 16271, 16287) ignore API server timeout errors in templateinstance controller readiness checking Saw this issue in https://bugzilla.redhat.com/show_bug.cgi?id=1489748
2 parents db350be + 90acf16 commit 0b29c3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: pkg/template/controller/templateinstance_controller.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ func (c *TemplateInstanceController) sync(key string) error {
157157

158158
if !templateInstance.HasCondition(templateapi.TemplateInstanceInstantiateFailure, kapi.ConditionTrue) {
159159
ready, err := c.checkReadiness(templateInstance, time.Now())
160-
if err != nil {
160+
if err != nil && !kerrors.IsTimeout(err) {
161+
// NB: kerrors.IsTimeout() is true in the case of an API server
162+
// timeout, not the timeout caused by readinessTimeout expiring.
161163
glog.V(4).Infof("TemplateInstance controller: checkReadiness %s returned %v", key, err)
162164

163165
templateInstance.SetCondition(templateapi.TemplateInstanceCondition{

0 commit comments

Comments
 (0)