8
8
RemoteResourceVersionAnnotation = "ydb.tech/remote-resource-version"
9
9
ConfigurationChecksum = "ydb.tech/configuration-checksum"
10
10
RemoteFinalizerKey = "ydb.tech/remote-finalizer"
11
- LastAppliedAnnotation = "ydb.tech/last-applied"
11
+ LastApplied = "ydb.tech/last-applied"
12
12
)
13
13
14
14
func GetYdbTechAnnotations (annotations map [string ]string ) map [string ]string {
@@ -23,31 +23,13 @@ func GetYdbTechAnnotations(annotations map[string]string) map[string]string {
23
23
24
24
func GetLastAppliedAnnotation (annotations map [string ]string ) string {
25
25
for key , value := range annotations {
26
- if key == LastAppliedAnnotation {
26
+ if key == LastApplied {
27
27
return value
28
28
}
29
29
}
30
30
return ""
31
31
}
32
32
33
- func CompareMaps (map1 , map2 map [string ]string ) bool {
34
- if len (map1 ) != len (map2 ) {
35
- return false
36
- }
37
- for key1 , value1 := range map1 {
38
- if value2 , ok := map2 [key1 ]; ! ok || value2 != value1 {
39
- return false
40
- }
41
- }
42
- return true
43
- }
44
-
45
- func CompareYdbTechAnnotations (map1 , map2 map [string ]string ) bool {
46
- map1 = GetYdbTechAnnotations (map1 )
47
- map2 = GetYdbTechAnnotations (map2 )
48
- return CompareMaps (map1 , map2 )
49
- }
50
-
51
33
func CompareLastAppliedAnnotation (map1 , map2 map [string ]string ) bool {
52
34
value1 := GetLastAppliedAnnotation (map1 )
53
35
value2 := GetLastAppliedAnnotation (map2 )
0 commit comments