From 79c6dd28a978d716f225a29b6bbe717d9062055c Mon Sep 17 00:00:00 2001 From: tarasov-egor Date: Thu, 28 Dec 2023 16:30:21 +0300 Subject: [PATCH] fix: PR suggestions --- api/v1alpha1/storage_types.go | 4 ++-- e2e/tests/test-objects/objects.go | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api/v1alpha1/storage_types.go b/api/v1alpha1/storage_types.go index 39f848aa..61a75439 100644 --- a/api/v1alpha1/storage_types.go +++ b/api/v1alpha1/storage_types.go @@ -44,7 +44,7 @@ type StorageSpec struct { // `false` means the default state of the system, all Pods running. // +kubebuilder:default:=false // +optional - Pause bool `json:"pause,omitempty"` + Pause bool `json:"pause"` // Enables or disables operator's reconcile loop. // `false` means all the Pods are running, but the reconcile is effectively turned off. @@ -52,7 +52,7 @@ type StorageSpec struct { // to specification change of this Storage resource. // +kubebuilder:default:=true // +optional - OperatorSync bool `json:"operatorSync,omitempty"` + OperatorSync bool `json:"operatorSync"` // (Optional) Name of the root storage domain // Default: root diff --git a/e2e/tests/test-objects/objects.go b/e2e/tests/test-objects/objects.go index b980c16f..0322d905 100644 --- a/e2e/tests/test-objects/objects.go +++ b/e2e/tests/test-objects/objects.go @@ -55,6 +55,7 @@ func DefaultStorage(storageYamlConfigPath string) *v1alpha1.Storage { }, Spec: v1alpha1.StorageSpec{ Nodes: 8, + OperatorSync: true, Configuration: string(storageConfig), Erasure: "block-4-2", DataStore: []corev1.PersistentVolumeClaimSpec{}, @@ -103,7 +104,8 @@ func StorageWithStaticCredentials(storageYamlConfigPath string) *v1alpha1.Storag Namespace: YdbNamespace, }, Spec: v1alpha1.StorageSpec{ - Nodes: 8, + Nodes: 8, + OperatorSync: true, OperatorConnection: &v1alpha1.ConnectionOptions{ StaticCredentials: &v1alpha1.StaticCredentialsAuth{ Username: "root", @@ -154,7 +156,8 @@ func DefaultDatabase() *v1alpha1.Database { Namespace: YdbNamespace, }, Spec: v1alpha1.DatabaseSpec{ - Nodes: 8, + Nodes: 8, + OperatorSync: true, Resources: &v1alpha1.DatabaseResources{ StorageUnits: []v1alpha1.StorageUnit{ {