generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 59
Add support for adoption of existing Flow Logs and Security Groups #160
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
Closed
Closed
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
3084e82
Adding support for custom additionalKeys for Flowlogs
pcolazurdo ccd7cf2
Adding support for custom additionalKeys for Security Groups
pcolazurdo c13188c
updated generated files to support FlowLogs and Security Group additi…
pcolazurdo 9194960
renamed variables to add clarity
pcolazurdo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| ack_generate_info: | ||
| build_date: "2023-09-18T23:03:44Z" | ||
| build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d | ||
| go_version: go1.20.3 | ||
| version: v0.27.1 | ||
| build_date: "2023-12-05T11:20:59Z" | ||
| build_hash: 3653329ceeb20015851b8776a6061a3fb0ec2935 | ||
| go_version: go1.21.4 | ||
| version: v0.27.1-6-g3653329-dirty | ||
| api_directory_checksum: 6e2d850d97f2f72db31c9bef522eca4ab95b3fcd | ||
| api_version: v1alpha1 | ||
| aws_sdk_go_version: v1.44.93 | ||
| generator_config_info: | ||
| file_checksum: c474e6cdec9622afad4b4cef415483a7bd0eda41 | ||
| file_checksum: e900e7783872dcd15c10fd4efb10d069047e3db4 | ||
| original_file_name: generator.yaml | ||
| last_modification: | ||
| reason: API generation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
templates/hooks/flow_log/post_set_resource_identifiers.go.tpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| f6, f6ok := identifier.AdditionalKeys["resourceID"] | ||
| if f6ok { | ||
| r.ko.Spec.ResourceID = &f6 | ||
| } | ||
| f7, f7ok := identifier.AdditionalKeys["resourceType"] | ||
| if f7ok { | ||
| r.ko.Spec.ResourceType = &f7 | ||
| } | ||
4 changes: 4 additions & 0 deletions
4
templates/hooks/security_group/post_set_resource_identifiers.go.tpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| f6, f6ok := identifier.AdditionalKeys["name"] | ||
| if f6ok { | ||
| r.ko.Spec.Name = &f6 | ||
| } | ||
pcolazurdo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.