Skip to content

Commit e1c439c

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 e1c439c

36 files changed

+3101
-49
lines changed
+6-6
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-07T21:52:10Z"
3+
build_hash: b74f41dae816d0038170066823283cfc0f981bbd
4+
go_version: go1.20.3
5+
version: v0.26.1-5-gb74f41d
6+
api_directory_checksum: 663bbb02f38358e8b44bc349d17ce432ac4e4fca
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: cc2c6590c6e77a6125d5eec82ff5f693109d4f99
10+
file_checksum: 542d8a5fa4c5e03e7c79e76e09c1bd966cde8b3a
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/flow_log.go

+153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

+33-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ignore:
77
- AllocateAddressInput.TagSpecifications
88
- CreateDhcpOptionsInput.DryRun
99
- CreateDhcpOptionsInput.TagSpecifications
10+
- CreateFlowLogsInput.DryRun
11+
- CreateFlowLogsInput.ClientToken
1012
- CreateInternetGatewayInput.DryRun
1113
- CreateInternetGatewayInput.TagSpecifications
1214
- CreateNatGatewayInput.ClientToken
@@ -141,6 +143,14 @@ operations:
141143
operation_type:
142144
- Delete
143145
resource_name: VpcEndpoint
146+
CreateFlowLogs:
147+
operation_type:
148+
- Create
149+
resource_name: FlowLog
150+
DeleteFlowLogs:
151+
operation_type:
152+
- Delete
153+
resource_name: FlowLog
144154
RunInstances:
145155
#ouput shape: Reservation
146156
output_wrapper_field_path: Instances
@@ -268,6 +278,28 @@ resources:
268278
template_path: hooks/elastic_ip_address/sdk_file_end.go.tpl
269279
update_operation:
270280
custom_method_name: customUpdateElasticIP
281+
FlowLog:
282+
exceptions:
283+
terminal_codes:
284+
- InvalidParameter
285+
- InvalidParameterValue
286+
is_arn_primary_key: true
287+
fields:
288+
Tags:
289+
from:
290+
operation: CreateTags
291+
path: Tags
292+
compare:
293+
is_ignored: True
294+
hooks:
295+
delta_pre_compare:
296+
code: compareTags(delta, a, b)
297+
sdk_create_post_build_request:
298+
template_path: hooks/flow_log/sdk_create_post_build_request.go.tpl
299+
sdk_file_end:
300+
template_path: hooks/flow_log/sdk_file_end.go.tpl
301+
update_operation:
302+
custom_method_name: customUpdateFlowLogs
271303
InternetGateway:
272304
fields:
273305
Tags:
@@ -649,4 +681,4 @@ resources:
649681
template_path: hooks/vpc_endpoint/sdk_file_end.go.tpl
650682
update_operation:
651683
custom_method_name: customUpdateVPCEndpoint
652-
684+

apis/v1alpha1/types.go

+46-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)