Skip to content

Commit

Permalink
Timeout for getting ydb token increased from 1s to 10s (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
bma13 authored Oct 24, 2024
1 parent fb2ebe4 commit 8125bba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/ydb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.29
version: 0.5.30

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.5.29"
appVersion: "0.5.30"
2 changes: 1 addition & 1 deletion internal/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func Open(ctx context.Context, endpoint string, opts ...ydb.Option) (*ydb.Driver, error) {
ctx, cancel := context.WithTimeout(ctx, time.Second)
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()

db, err := ydb.Open(
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/storage/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (r *Reconciler) createOrUpdateOperatorTokenSecret(
storage *resources.StorageClusterBuilder,
creds ydbCredentials.Credentials,
) error {
ydbCtx, cancel := context.WithTimeout(ctx, time.Second)
ydbCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
token, err := creds.Token(
metadata.AppendToOutgoingContext(ydbCtx, "x-ydb-database", storage.Spec.Domain),
Expand Down

0 comments on commit 8125bba

Please sign in to comment.