From 954f6ef747b7ffa4cc08d71f77e90aa4660b4677 Mon Sep 17 00:00:00 2001 From: Tim Usner Date: Thu, 28 Jul 2022 11:42:55 +0200 Subject: [PATCH] Increase wait timeout for StatefulSet --- pkg/component/etcd/statefulset/statefulset.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/component/etcd/statefulset/statefulset.go b/pkg/component/etcd/statefulset/statefulset.go index 1553a3633..d3a379bb0 100644 --- a/pkg/component/etcd/statefulset/statefulset.go +++ b/pkg/component/etcd/statefulset/statefulset.go @@ -22,6 +22,7 @@ import ( "time" druidv1alpha1 "github.com/gardener/etcd-druid/api/v1alpha1" + gardenercomponent "github.com/gardener/gardener/pkg/operation/botanist/component" kutil "github.com/gardener/gardener/pkg/utils/kubernetes" "github.com/gardener/gardener/pkg/utils/retry" @@ -107,7 +108,7 @@ const ( // defaultInterval is the default interval for retry operations. defaultInterval = 5 * time.Second // defaultTimeout is the default timeout for retry operations. - defaultTimeout = 1 * time.Minute + defaultTimeout = 90 * time.Second ) func (c *component) Wait(ctx context.Context) error { @@ -297,9 +298,11 @@ func (c *component) fetchPVCEventsFor(ctx context.Context, ss *appsv1.StatefulSe // New creates a new statefulset deployer instance. func New(c client.Client, logger logr.Logger, values Values) Interface { + objectLogger := logger.WithValues("sts", client.ObjectKey{Name: values.Name, Namespace: values.Namespace}) + return &component{ client: c, - logger: logger, + logger: objectLogger, values: values, } }