From 70f6b0f94373b07211acd63c4a066d9a17089ba0 Mon Sep 17 00:00:00 2001 From: kobzonega Date: Fri, 27 Sep 2024 16:45:29 +0700 Subject: [PATCH 1/4] Update storage_webhook.go --- api/v1alpha1/storage_webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/storage_webhook.go b/api/v1alpha1/storage_webhook.go index 3a4119f3..7cd51129 100644 --- a/api/v1alpha1/storage_webhook.go +++ b/api/v1alpha1/storage_webhook.go @@ -241,7 +241,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) } @@ -355,7 +355,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) } From 907de0c064765cc8f06aef1e9ebffa818fc0b909 Mon Sep 17 00:00:00 2001 From: kobzonega Date: Fri, 27 Sep 2024 16:46:33 +0700 Subject: [PATCH 2/4] Update Chart.yaml --- deploy/ydb-operator/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/ydb-operator/Chart.yaml b/deploy/ydb-operator/Chart.yaml index 8c23d714..95ef2f11 100644 --- a/deploy/ydb-operator/Chart.yaml +++ b/deploy/ydb-operator/Chart.yaml @@ -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.26 +version: 0.5.27 # 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.26" +appVersion: "0.5.27" From 537ecef5587302ac013a0ca4bcf93a7f45bdfbd8 Mon Sep 17 00:00:00 2001 From: kobzonega Date: Fri, 27 Sep 2024 17:15:29 +0700 Subject: [PATCH 3/4] fix lint --- api/v1alpha1/storage_webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/storage_webhook.go b/api/v1alpha1/storage_webhook.go index 7cd51129..48a1353a 100644 --- a/api/v1alpha1/storage_webhook.go +++ b/api/v1alpha1/storage_webhook.go @@ -241,7 +241,7 @@ func (r *Storage) ValidateCreate() error { } } - if (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) } @@ -355,7 +355,7 @@ func (r *Storage) ValidateUpdate(old runtime.Object) error { } } - if (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) } From 6d23ae61c85a5d5707162c54658780a88ec7acce Mon Sep 17 00:00:00 2001 From: Aleksei Kobzev Date: Wed, 2 Oct 2024 21:03:46 +0700 Subject: [PATCH 4/4] bump helm chart version --- deploy/ydb-operator/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/ydb-operator/Chart.yaml b/deploy/ydb-operator/Chart.yaml index 95ef2f11..1213173b 100644 --- a/deploy/ydb-operator/Chart.yaml +++ b/deploy/ydb-operator/Chart.yaml @@ -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"