Skip to content

Commit 3404f2b

Browse files
authored
operatorToken field compatibility with disabled token requirement option (#251)
1 parent 170361a commit 3404f2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/v1alpha1/storage_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (r *Storage) ValidateCreate() error {
248248
}
249249
}
250250

251-
if (authEnabled && r.Spec.OperatorConnection == nil) || (!authEnabled && r.Spec.OperatorConnection != nil) {
251+
if authEnabled && r.Spec.OperatorConnection == nil {
252252
return fmt.Errorf("field 'spec.operatorConnection' does not satisfy with config option `enforce_user_token_requirement: %t`", authEnabled)
253253
}
254254

@@ -362,7 +362,7 @@ func (r *Storage) ValidateUpdate(old runtime.Object) error {
362362
}
363363
}
364364

365-
if (authEnabled && r.Spec.OperatorConnection == nil) || (!authEnabled && r.Spec.OperatorConnection != nil) {
365+
if authEnabled && r.Spec.OperatorConnection == nil {
366366
return fmt.Errorf("field 'spec.operatorConnection' does not align with config option `enforce_user_token_requirement: %t`", authEnabled)
367367
}
368368

deploy/ydb-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
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.27
18+
version: 0.5.28
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.27"
24+
appVersion: "0.5.28"

0 commit comments

Comments
 (0)