Skip to content

Commit

Permalink
Generate Security Group using ACK Runtime v0.15.2 (#20)
Browse files Browse the repository at this point in the history
Issue #, if available: aws-controllers-k8s/community#489

Description of changes:
* Adds Create/Delete functionality and tests for Security Group resource using ACK runtime `v0.15.2` at [this commit](aws-controllers-k8s/code-generator@6ce1a67)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
brycahta authored Nov 9, 2021
1 parent 318a159 commit 4927448
Show file tree
Hide file tree
Showing 25 changed files with 2,153 additions and 74 deletions.
10 changes: 5 additions & 5 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: "2021-10-27T21:06:25Z"
build_hash: d2b063806d25cfcae4f2d4eb44f8e3f713b23e8e
go_version: go1.15
build_date: "2021-11-08T20:16:44Z"
build_hash: 6ce1a672eabd3908bdaa4ace356e1b58ee3e80ba
go_version: go1.17
version: v0.15.2
api_directory_checksum: c42ae0549361b86a2d5c112b556b6a715ee976ab
api_directory_checksum: 231335e65c729f31ac368b1483a38c2964b3219a
api_version: v1alpha1
aws_sdk_go_version: v1.37.10
generator_config_info:
file_checksum: ed3e48785dc25e784dee76fa7b20248fdc1a170d
file_checksum: 438c2600566029a9ab883076d641246f0a8fbb88
original_file_name: generator.yaml
last_modification:
reason: API generation
44 changes: 37 additions & 7 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ ignore:
- ModifyTransitGateway
- ModifyVpcEndpoint
field_paths:
- CreateVpcEndpointInput.DryRun
- CreateVpcInput.DryRun
- CreateSubnetInput.DryRun
- CreateRouteTableInput.DryRun
- CreateInternetGatewayInput.DryRun
- CreateRouteTableInput.DryRun
- CreateSecurityGroupInput.DryRun
- CreateSubnetInput.DryRun
- CreateTransitGatewayInput.DryRun
- CreateVpcInput.DryRun
- CreateVpcEndpointInput.DryRun
# support EC2-VPC only
- DeleteSecurityGroupInput.GroupName
resource_names:
- AccountAttribute
- CapacityReservation
Expand Down Expand Up @@ -41,7 +44,7 @@ ignore:
- ReservedInstancesListing
#- RouteTable
- Route
- SecurityGroup
#- SecurityGroup
- Snapshot
- SpotDatafeedSubscription
#- Subnet
Expand Down Expand Up @@ -78,12 +81,39 @@ operations:
resource_name: VpcEndpoint

resources:
Subnet:
RouteTable:
exceptions:
terminal_codes:
- InvalidVpcID.Malformed
- InvalidVpcID.NotFound
RouteTable:
SecurityGroup:
fields:
# support EC2-VPC only
Id:
is_primary_key: true
VpcId:
is_required: true
renames:
operations:
CreateSecurityGroup:
input_fields:
GroupName: Name
output_fields:
GroupId: Id
DeleteSecurityGroup:
input_fields:
GroupId: Id
GroupName: Name
DescribeSecurityGroups:
input_fields:
GroupIds: Ids
GroupNames: Names
exceptions:
terminal_codes:
- InvalidVpcID.Malformed
- InvalidVpcID.NotFound
- VPCIdNotSpecified
Subnet:
exceptions:
terminal_codes:
- InvalidVpcID.Malformed
Expand Down
93 changes: 93 additions & 0 deletions apis/v1alpha1/security_group.go

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

55 changes: 31 additions & 24 deletions apis/v1alpha1/types.go

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

Loading

0 comments on commit 4927448

Please sign in to comment.