Skip to content

Commit dcd55e0

Browse files
authored
Add Vpc resource (#1)
Issue: [#489](aws-controllers-k8s/community#489) * Adding create/delete VPC functionality with smoke tests * Adding Makefile * Adding metadata file
1 parent 222fe1f commit dcd55e0

33 files changed

+18420
-9
lines changed

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SHELL := /bin/bash # Use bash syntax
2+
3+
# Set up variables
4+
GO111MODULE=on
5+
6+
# Build ldflags
7+
VERSION=$(shell git describe --tags --always --dirty)
8+
GITCOMMIT=$(shell git rev-parse HEAD)
9+
BUILDDATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
10+
GO_LDFLAGS=-ldflags "-X main.version=$(VERSION) \
11+
-X main.buildHash=$(GITCOMMIT) \
12+
-X main.buildDate=$(BUILDDATE)"
13+
14+
.PHONY: all test local-test
15+
16+
all: test
17+
18+
test: ## Run code tests
19+
go test -v ./...
20+
21+
local-test: ## Run code tests using go.local.mod file
22+
go test -modfile=go.local.mod -v ./...
23+
24+
help: ## Show this help.
25+
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
26+
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'
27+
28+
version:
29+
@echo ${VERSION}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ack_generate_info:
2-
build_date: "2021-07-22T16:09:21Z"
3-
build_hash: a5d6be11386f1b78a3be46baf92f6c1bc10b91a3
4-
go_version: go1.15.5 linux/amd64
2+
build_date: "2021-08-02T19:38:09Z"
3+
build_hash: cae7cb2cccda567eab55c01873f89274c8f82b60
4+
go_version: go1.16.6 darwin/amd64
55
version: v0.7.0
6-
api_directory_checksum: da435c214f9d9b6d71e7b5fd9e60d9e8b17ba01f
6+
api_directory_checksum: 9cd4d78dbe7428ecfbcbc9d8c9e5436a9fc41106
77
api_version: v1alpha1
8-
aws_sdk_go_version: ""
8+
aws_sdk_go_version: v1.37.4
99
generator_config_info:
10-
file_checksum: f0d2276c494d0e8e923c228d5dca2d40aeec822e
10+
file_checksum: 1f3aeac46cdaa715d51800603f4072753861d569
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-07-22 16:09:27.899087754 +0000 UTC
14+
timestamp: 2021-08-02 19:38:28.179956 +0000 UTC

apis/v1alpha1/generator.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
ignore:
2+
field_paths:
3+
- CreateVpcInput.DryRun
24
resource_names:
35
- AccountAttribute
46
- CapacityReservation
@@ -52,9 +54,17 @@ ignore:
5254
- VpcEndpointConnectionNotification
5355
- VpcEndpointServiceConfiguration
5456
- VpcEndpoint
55-
- Vpc
57+
#- Vpc
5658
- VpcCidrBlock
5759
- VpcPeeringConnection
5860
- VpnConnectionRoute
5961
- VpnConnection
6062
- VpnGateway
63+
64+
resources:
65+
Vpc:
66+
hooks:
67+
sdk_read_many_pre_build_request:
68+
template_path: hooks/vpc/sdk_read_many_pre_build_request.go.tpl
69+
sdk_read_many_post_build_request:
70+
template_path: hooks/vpc/sdk_read_many_post_build_request.go.tpl

0 commit comments

Comments
 (0)