Skip to content

Commit 8125bba

Browse files
authored
Timeout for getting ydb token increased from 1s to 10s (ydb-platform#256)
1 parent fb2ebe4 commit 8125bba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

deploy/ydb-operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.5.29
18+
version: 0.5.30
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.5.29"
24+
appVersion: "0.5.30"

internal/connection/connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

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

2222
db, err := ydb.Open(

internal/controllers/storage/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (r *Reconciler) createOrUpdateOperatorTokenSecret(
328328
storage *resources.StorageClusterBuilder,
329329
creds ydbCredentials.Credentials,
330330
) error {
331-
ydbCtx, cancel := context.WithTimeout(ctx, time.Second)
331+
ydbCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
332332
defer cancel()
333333
token, err := creds.Token(
334334
metadata.AppendToOutgoingContext(ydbCtx, "x-ydb-database", storage.Spec.Domain),

0 commit comments

Comments
 (0)