Skip to content

Commit b56ab1b

Browse files
committed
completely ignore sdkUpdate output setting for spec
1 parent ed1a046 commit b56ab1b

File tree

6 files changed

+19
-32
lines changed

6 files changed

+19
-32
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-05-13T05:10:16Z"
2+
build_date: "2025-05-13T22:48:25Z"
33
build_hash: 55bf57b2806c33a7fcd074be403f26ce3f8e58db
4-
go_version: go1.24.2
4+
go_version: go1.24.3
55
version: v0.46.2
66
api_directory_checksum: 52968d74358773de28be65be320d1bfb9c91e0bf
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: a631c487e47b31b1b7eb3242b48efa8950322f3c
10+
file_checksum: a84060264f0186147ecf4328bdc4e0f484b91268
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ resources:
310310
template_path: hooks/db_instance/sdk_update_pre_build_request.go.tpl
311311
sdk_update_post_build_request:
312312
template_path: hooks/db_instance/sdk_update_post_build_request.go.tpl
313-
sdk_update_post_set_output:
314-
template_path: hooks/db_instance/sdk_update_post_set_output.go.tpl
313+
sdk_update_pre_set_output:
314+
template_path: hooks/db_instance/sdk_update_pre_set_output.go.tpl
315315
sdk_delete_pre_build_request:
316316
template_path: hooks/db_instance/sdk_delete_pre_build_request.go.tpl
317317
sdk_delete_post_build_request:

generator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ resources:
310310
template_path: hooks/db_instance/sdk_update_pre_build_request.go.tpl
311311
sdk_update_post_build_request:
312312
template_path: hooks/db_instance/sdk_update_post_build_request.go.tpl
313-
sdk_update_post_set_output:
314-
template_path: hooks/db_instance/sdk_update_post_set_output.go.tpl
313+
sdk_update_pre_set_output:
314+
template_path: hooks/db_instance/sdk_update_pre_set_output.go.tpl
315315
sdk_delete_pre_build_request:
316316
template_path: hooks/db_instance/sdk_delete_pre_build_request.go.tpl
317317
sdk_delete_post_build_request:

pkg/resource/db_instance/sdk.go

Lines changed: 6 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/hooks/db_instance/sdk_update_post_set_output.go.tpl

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ko.Status = latest.ko.Status
2+
setLastAppliedSecretReferenceAnnotation(&resource{ko})
3+
// Setting resource synced condition to false will trigger a requeue of
4+
// the resource. No need to return a requeue error here.
5+
ackcondition.SetSynced(&resource{ko}, corev1.ConditionFalse, nil, nil)
6+
return &resource{ko}, nil

0 commit comments

Comments
 (0)