Skip to content

Commit

Permalink
Increase wait timeout for StatefulSet
Browse files Browse the repository at this point in the history
  • Loading branch information
timuthy committed Jul 28, 2022
1 parent b8500a1 commit 954f6ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/component/etcd/statefulset/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 954f6ef

Please sign in to comment.