Skip to content

Generate Reservation CRD #52

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
wants to merge 6 commits into from
Closed
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: "2022-04-15T17:13:39Z"
build_hash: 50c64871bcaf88b9ee200eb8d6b8245fa8f675eb
go_version: go1.17.5
version: v0.18.4
api_directory_checksum: 35ef0e4da69ded8c1fa7a4a6029510864a1069af
build_date: "2022-05-03T19:26:03Z"
build_hash: 95f81d38b4dcdb28193e1f8b04c1c6f995c26cb9
go_version: go1.18.1
version: v0.18.4-7-g95f81d3-dirty
api_directory_checksum: 4721a2b09c125750c8bd7e6e9449e4c6ef9c9b54
api_version: v1alpha1
aws_sdk_go_version: v1.42.0
generator_config_info:
file_checksum: 32301fc646db64b7beb3541310c727da6b6d8dc5
file_checksum: e96b0305d488b1c0a3f9eff5dce5e54ae6958477
original_file_name: generator.yaml
last_modification:
reason: API generation
26 changes: 25 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ ignore:
# support EC2-VPC only
- AllocateAddressInput.Domain
- AllocateAddressOutput.Domain
- RunInstancesInput.ClientToken
- RunInstancesInput.DryRun
resource_names:
- AccountAttribute
- CapacityReservation
Expand All @@ -38,7 +40,7 @@ ignore:
- Fleet
- FpgaImage
- Image
- Instance
#- Instance
- InstanceEventWindow
- InstanceExportTask
#- InternetGateway
Expand All @@ -56,6 +58,7 @@ ignore:
- NetworkInterface
- PlacementGroup
- ReplaceRootVolumeTask
#- Reservation
- ReservedInstancesListing
- RestoreImageTask
#- RouteTable
Expand Down Expand Up @@ -111,6 +114,18 @@ operations:
operation_type:
- Delete
resource_name: VpcEndpoint
RunInstances:
operation_type:
- Create
resource_name: Reservation
DescribeInstances:
operation_type:
- List
resource_name: Reservation
TerminateInstances:
operation_type:
- Delete
resource_name: Reservation
resources:
DhcpOptions:
fields:
Expand Down Expand Up @@ -224,6 +239,15 @@ resources:
- path: Status.State
in:
- available
Reservation:
fields:
ReservationId:
is_primary_key: true
hooks:
sdk_delete_post_build_request:
template_path: hooks/reservation/sdk_delete_post_build_request.go.tpl
sdk_read_many_post_build_request:
template_path: hooks/reservation/sdk_read_many_post_build_request.go.tpl
SecurityGroup:
fields:
# support EC2-VPC only
Expand Down
286 changes: 286 additions & 0 deletions apis/v1alpha1/reservation.go

Large diffs are not rendered by default.

Loading