Skip to content

Commit 9124f38

Browse files
committed
enable all tests
1 parent 3d10da0 commit 9124f38

16 files changed

+1046
-1634
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-07-17T22:31:47Z"
2+
build_date: "2025-07-22T19:09:38Z"
33
build_hash: c6808295bbb03aac999713ecf1f3aa5cd698a17e
44
go_version: go1.24.5
55
version: v0.49.0
66
api_directory_checksum: cd3855ca5e9598e4a45cdc8b295054981b08dbb7
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 9117fa2304f39ed8d41be54313f82c80cc8a8ab3
10+
file_checksum: 9162cf8894e424431dfd9b048c7a4024d518c4ae
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ resources:
300300
update_operation:
301301
custom_method_name: customUpdateServerlessCache
302302
fields:
303-
ServerlessCacheName:
304-
is_primary_key: true
305303
SecurityGroupIDs:
306304
references:
307305
resource: SecurityGroup

generator.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ resources:
300300
update_operation:
301301
custom_method_name: customUpdateServerlessCache
302302
fields:
303-
ServerlessCacheName:
304-
is_primary_key: true
305303
SecurityGroupIDs:
306304
references:
307305
resource: SecurityGroup

pkg/resource/serverless_cache/hooks.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,24 @@ import (
3030
corev1 "k8s.io/api/core/v1"
3131
)
3232

33+
const (
34+
ServerlessCacheStatusCreating = "CREATING"
35+
ServerlessCacheStatusDeleting = "DELETING"
36+
ServerlessCacheStatusModifying = "MODIFYING"
37+
)
38+
3339
var (
3440
ErrServerlessCacheDeleting = fmt.Errorf(
3541
"serverless cache in '%v' state, cannot be modified or deleted",
36-
"deleting",
42+
ServerlessCacheStatusDeleting,
3743
)
3844
ErrServerlessCacheCreating = fmt.Errorf(
3945
"serverless cache in '%v' state, cannot be modified or deleted",
40-
"creating",
46+
ServerlessCacheStatusCreating,
4147
)
4248
ErrServerlessCacheModifying = fmt.Errorf(
4349
"serverless cache in '%v' state, cannot be further modified",
44-
"modifying",
50+
ServerlessCacheStatusModifying,
4551
)
4652
)
4753

@@ -84,21 +90,21 @@ func isServerlessCacheCreating(r *resource) bool {
8490
if r.ko.Status.Status == nil {
8591
return false
8692
}
87-
return *r.ko.Status.Status == "creating"
93+
return *r.ko.Status.Status == ServerlessCacheStatusCreating
8894
}
8995

9096
func isServerlessCacheDeleting(r *resource) bool {
9197
if r.ko.Status.Status == nil {
9298
return false
9399
}
94-
return *r.ko.Status.Status == "deleting"
100+
return *r.ko.Status.Status == ServerlessCacheStatusDeleting
95101
}
96102

97103
func isServerlessCacheModifying(r *resource) bool {
98104
if r.ko.Status.Status == nil {
99105
return false
100106
}
101-
return *r.ko.Status.Status == "modifying"
107+
return *r.ko.Status.Status == ServerlessCacheStatusModifying
102108
}
103109

104110
// customUpdateServerlessCache handles updates in a phased approach similar to DynamoDB table updates

pkg/tags/sync.go

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)