Skip to content

Fix AdoptedResource functionality for FlowLogs #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2023-12-06T21:00:34Z"
build_hash: 1cc9b5172d3d1676af578a3411e8672698ec29ce
go_version: go1.21.0
version: 1cc9b51
api_directory_checksum: d452bf19bfd1496aacdc215bf7cc9ea86c55c122
build_date: "2023-12-06T21:43:43Z"
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
go_version: go1.21.1
version: v0.27.1
api_directory_checksum: 6e2d850d97f2f72db31c9bef522eca4ab95b3fcd
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: 86b3e3aa1ff4769894d475244d0cc5902bcb258f
file_checksum: d10a62517f87bacf988184f8c454b90b42dee732
original_file_name: generator.yaml
last_modification:
reason: API generation
2 changes: 2 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ resources:
template_path: hooks/flow_log/sdk_read_many_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/flow_log/sdk_file_end.go.tpl
post_set_resource_identifiers:
template_path: hooks/flow_log/post_set_resource_identifiers.go.tpl
update_operation:
custom_method_name: customUpdateFlowLog
InternetGateway:
Expand Down
2 changes: 2 additions & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ resources:
template_path: hooks/flow_log/sdk_read_many_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/flow_log/sdk_file_end.go.tpl
post_set_resource_identifiers:
template_path: hooks/flow_log/post_set_resource_identifiers.go.tpl
update_operation:
custom_method_name: customUpdateFlowLog
InternetGateway:
Expand Down
7 changes: 7 additions & 0 deletions pkg/resource/flow_log/resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions templates/hooks/flow_log/post_set_resource_identifiers.go.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if resourceID, ok := identifier.AdditionalKeys["resourceID"]; ok {
r.ko.Spec.ResourceID = &resourceID
}

if resourceType, ok := identifier.AdditionalKeys["resourceType"]; ok {
r.ko.Spec.ResourceType = &resourceType
}