Skip to content

Commit

Permalink
operatorToken field compatibility with disabled token requirement opt…
Browse files Browse the repository at this point in the history
…ion (#251)
  • Loading branch information
kobzonega authored Oct 3, 2024
1 parent 170361a commit 3404f2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/storage_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (r *Storage) ValidateCreate() error {
}
}

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

Expand Down Expand Up @@ -362,7 +362,7 @@ func (r *Storage) ValidateUpdate(old runtime.Object) error {
}
}

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

Expand Down
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.27
version: 0.5.28

# 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.27"
appVersion: "0.5.28"

0 comments on commit 3404f2b

Please sign in to comment.