@@ -26,7 +26,7 @@ import (
2626
2727 "github.com/ydb-platform/ydb-kubernetes-operator/api/v1alpha1"
2828 testobjects "github.com/ydb-platform/ydb-kubernetes-operator/e2e/tests/test-objects"
29- "github.com/ydb-platform/ydb-kubernetes-operator/internal/annotations"
29+ ydbannotations "github.com/ydb-platform/ydb-kubernetes-operator/internal/annotations"
3030 . "github.com/ydb-platform/ydb-kubernetes-operator/internal/controllers/constants"
3131 "github.com/ydb-platform/ydb-kubernetes-operator/internal/controllers/database"
3232 "github.com/ydb-platform/ydb-kubernetes-operator/internal/controllers/databasenodeset"
@@ -529,25 +529,25 @@ var _ = Describe("RemoteDatabaseNodeSet controller tests", func() {
529529 return err
530530 }
531531
532- primaryResourceStorage , exist := remoteSecret .Annotations [annotations .PrimaryResourceStorage ]
532+ primaryResourceStorage , exist := remoteSecret .Annotations [ydbannotations .PrimaryResourceStorage ]
533533 if ! exist {
534- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .PrimaryResourceStorage , remoteSecret .Name )
534+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .PrimaryResourceStorage , remoteSecret .Name )
535535 }
536536 if primaryResourceStorage != foundRemoteStorageNodeSet .Spec .StorageRef .Name {
537537 return fmt .Errorf ("primaryResourceName %s does not equal storageRef name %s" , primaryResourceStorage , foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name )
538538 }
539539
540- primaryResourceDatabase , exist := remoteSecret .Annotations [annotations .PrimaryResourceDatabase ]
540+ primaryResourceDatabase , exist := remoteSecret .Annotations [ydbannotations .PrimaryResourceDatabase ]
541541 if ! exist {
542- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .PrimaryResourceDatabase , remoteSecret .Name )
542+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .PrimaryResourceDatabase , remoteSecret .Name )
543543 }
544544 if primaryResourceDatabase != foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name {
545545 return fmt .Errorf ("primaryResourceName %s does not equal databaseRef name %s" , primaryResourceDatabase , foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name )
546546 }
547547
548- remoteRV , exist := remoteSecret .Annotations [annotations .RemoteResourceVersion ]
548+ remoteRV , exist := remoteSecret .Annotations [ydbannotations .RemoteResourceVersion ]
549549 if ! exist {
550- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .RemoteResourceVersion , remoteSecret .Name )
550+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .RemoteResourceVersion , remoteSecret .Name )
551551 }
552552 if localSecret .GetResourceVersion () != remoteRV {
553553 return fmt .Errorf ("localRV %s does not equal remoteRV %s" , localSecret .GetResourceVersion (), remoteRV )
@@ -620,22 +620,22 @@ var _ = Describe("RemoteDatabaseNodeSet controller tests", func() {
620620 return err
621621 }
622622
623- _ , exist := remoteSecret .Annotations [annotations .PrimaryResourceStorage ]
623+ _ , exist := remoteSecret .Annotations [ydbannotations .PrimaryResourceStorage ]
624624 if exist {
625- return fmt .Errorf ("annotation %s still exist on remoteSecret %s" , annotations .PrimaryResourceStorage , remoteSecret .Name )
625+ return fmt .Errorf ("annotation %s still exist on remoteSecret %s" , ydbannotations .PrimaryResourceStorage , remoteSecret .Name )
626626 }
627627
628- primaryResourceDatabase , exist := remoteSecret .Annotations [annotations .PrimaryResourceDatabase ]
628+ primaryResourceDatabase , exist := remoteSecret .Annotations [ydbannotations .PrimaryResourceDatabase ]
629629 if ! exist {
630- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .PrimaryResourceDatabase , remoteSecret .Name )
630+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .PrimaryResourceDatabase , remoteSecret .Name )
631631 }
632632 if primaryResourceDatabase != foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name {
633633 return fmt .Errorf ("primaryResourceName %s does not equal databaseRef name %s" , primaryResourceDatabase , foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name )
634634 }
635635
636- remoteRV , exist := remoteSecret .Annotations [annotations .RemoteResourceVersion ]
636+ remoteRV , exist := remoteSecret .Annotations [ydbannotations .RemoteResourceVersion ]
637637 if ! exist {
638- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .RemoteResourceVersion , remoteSecret .Name )
638+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .RemoteResourceVersion , remoteSecret .Name )
639639 }
640640 if localSecret .GetResourceVersion () != remoteRV {
641641 return fmt .Errorf ("localRV %s does not equal remoteRV %s" , localSecret .GetResourceVersion (), remoteRV )
@@ -686,17 +686,17 @@ var _ = Describe("RemoteDatabaseNodeSet controller tests", func() {
686686 return err
687687 }
688688
689- primaryResourceDatabase , exist := remoteSecret .Annotations [annotations .PrimaryResourceDatabase ]
689+ primaryResourceDatabase , exist := remoteSecret .Annotations [ydbannotations .PrimaryResourceDatabase ]
690690 if ! exist {
691- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .PrimaryResourceDatabase , remoteSecret .Name )
691+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .PrimaryResourceDatabase , remoteSecret .Name )
692692 }
693693 if primaryResourceDatabase != foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name {
694694 return fmt .Errorf ("primaryResourceName %s does not equal databaseRef name %s" , primaryResourceDatabase , foundRemoteDatabaseNodeSet .Spec .DatabaseRef .Name )
695695 }
696696
697- remoteRV , exist := remoteSecret .Annotations [annotations .RemoteResourceVersion ]
697+ remoteRV , exist := remoteSecret .Annotations [ydbannotations .RemoteResourceVersion ]
698698 if ! exist {
699- return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , annotations .RemoteResourceVersion , remoteSecret .Name )
699+ return fmt .Errorf ("annotation %s does not exist on remoteSecret %s" , ydbannotations .RemoteResourceVersion , remoteSecret .Name )
700700 }
701701 if localSecret .GetResourceVersion () != remoteRV {
702702 return fmt .Errorf ("localRV %s does not equal remoteRV %s" , localSecret .GetResourceVersion (), remoteRV )
0 commit comments