Skip to content

Commit d797f20

Browse files
author
Nishant Burte
committed
VPC Flowlogs feature implementation
This change implements flowlogs in ec2 operator. It adds e2e tests for the flowlogs feature.
1 parent 5d460db commit d797f20

36 files changed

+2956
-28
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2023-05-15T23:06:36Z"
3-
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
4-
go_version: go1.19
5-
version: v0.26.1
6-
api_directory_checksum: 6e86aa4f26729ce014485b1096286db654459af7
2+
build_date: "2023-06-09T17:25:06Z"
3+
build_hash: b74f41dae816d0038170066823283cfc0f981bbd
4+
go_version: go1.20.3
5+
version: v0.26.1-5-gb74f41d-dirty
6+
api_directory_checksum: 0d2de5d9033e26b19979c3a6c241be79799fa70b
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: cc2c6590c6e77a6125d5eec82ff5f693109d4f99
10+
file_checksum: 76dcde78892beabe82dc24e0f46b63c0763ef863
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/flow_log.go

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

apis/v1alpha1/generator.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ignore:
77
- AllocateAddressInput.TagSpecifications
88
- CreateDhcpOptionsInput.DryRun
99
- CreateDhcpOptionsInput.TagSpecifications
10+
- CreateFlowLogsInput.DryRun
11+
- CreateFlowLogsInput.ClientToken
12+
- CreateFlowLogsInput.TagSpecifications
1013
- CreateInternetGatewayInput.DryRun
1114
- CreateInternetGatewayInput.TagSpecifications
1215
- CreateNatGatewayInput.ClientToken
@@ -141,6 +144,14 @@ operations:
141144
operation_type:
142145
- Delete
143146
resource_name: VpcEndpoint
147+
CreateFlowLogs:
148+
operation_type:
149+
- Create
150+
resource_name: FlowLog
151+
DeleteFlowLogs:
152+
operation_type:
153+
- Delete
154+
resource_name: FlowLog
144155
RunInstances:
145156
#ouput shape: Reservation
146157
output_wrapper_field_path: Instances
@@ -268,6 +279,28 @@ resources:
268279
template_path: hooks/elastic_ip_address/sdk_file_end.go.tpl
269280
update_operation:
270281
custom_method_name: customUpdateElasticIP
282+
FlowLog:
283+
exceptions:
284+
terminal_codes:
285+
- InvalidParameter
286+
- InvalidParameterValue
287+
is_arn_primary_key: true
288+
fields:
289+
Tags:
290+
from:
291+
operation: CreateTags
292+
path: Tags
293+
compare:
294+
is_ignored: True
295+
hooks:
296+
delta_pre_compare:
297+
code: compareTags(delta, a, b)
298+
sdk_create_post_build_request:
299+
template_path: hooks/flow_log/sdk_create_post_build_request.go.tpl
300+
sdk_file_end:
301+
template_path: hooks/flow_log/sdk_file_end.go.tpl
302+
update_operation:
303+
custom_method_name: customUpdateFlowLog
271304
InternetGateway:
272305
fields:
273306
Tags:
@@ -649,4 +682,4 @@ resources:
649682
template_path: hooks/vpc_endpoint/sdk_file_end.go.tpl
650683
update_operation:
651684
custom_method_name: customUpdateVPCEndpoint
652-
685+

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)