Skip to content

Commit 49ea03d

Browse files
author
Nicholas Thomson
committed
Generate against latest code-gen
1 parent 16a827e commit 49ea03d

24 files changed

+173
-93
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ GO_LDFLAGS=-ldflags "-X main.version=$(VERSION) \
1111
-X main.buildHash=$(GITCOMMIT) \
1212
-X main.buildDate=$(BUILDDATE)"
1313

14+
AUTHENTICATED_ACCOUNT_ID=$(shell aws sts get-caller-identity --output text --query "Account")
15+
1416
.PHONY: all test
1517

1618
all: test
1719

20+
local-run-controller: ## Run a controller image locally for SERVICE
21+
@go run ./cmd/controller/main.go \
22+
--aws-account-id=$(AUTHENTICATED_ACCOUNT_ID) \
23+
--aws-region=us-west-2 \
24+
--enable-development-logging \
25+
--log-level=debug
26+
1827
test: ## Run code tests
1928
go test -v ./...
2029

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ack_generate_info:
2-
build_date: "2021-06-24T18:34:06Z"
3-
build_hash: cd53dbcae95beea0fd107f7b0f3cb5043a73b18d
2+
build_date: "2021-06-25T00:19:22Z"
3+
build_hash: 37371d2b1f8e8cca7a4e574ac540ce03a582d21a
44
go_version: go1.15.6 linux/amd64
55
version: v0.2.3
6-
api_directory_checksum: 30886439ac37c2e7a1f00d256131da8824269c96
6+
api_directory_checksum: 1b18bc46518a735fafb777be5ceebee9dea3105f
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.38.67
99
generator_config_info:
10-
file_checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709
10+
file_checksum: 36b2ba6c8033a1347b35c6ce04f0d4dc246068a0
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-06-24 18:34:10.756099257 +0000 UTC
14+
timestamp: 2021-06-25 00:19:26.134150106 +0000 UTC

apis/v1alpha1/cluster.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

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

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/common/bases/services.k8s.aws_adoptedresources.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ spec:
4040
description: AWSIdentifiers provide all unique ways to reference an
4141
AWS resource.
4242
properties:
43-
additionalKeys:
44-
additionalProperties:
45-
type: string
46-
description: AdditionalKeys represents any additional arbitrary
47-
identifiers used when describing the target resource.
48-
type: object
4943
arn:
5044
description: ARN is the AWS Resource Name for the resource. It
5145
is a globally unique identifier.

generator.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
resources:
2+
Cluster:
3+
exceptions:
4+
errors:
5+
404:
6+
code: ResourceNotFoundException
7+
message_prefix: No cluster found
8+
terminal_codes:
9+
- ResourceLimitExceeded
10+
- ResourceNotFound
11+
- ResourceInUse
12+
- OptInRequired
13+
- InvalidParameterCombination
14+
- InvalidParameterValue
15+
- InvalidParameterException
16+
- InvalidQueryParameter
17+
- MalformedQueryString
18+
- MissingAction
19+
- MissingParameter
20+
- ValidationError

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ github.com/aws-controllers-k8s/runtime v0.2.3 h1:pDDSXOJj5QLlC9OcgnGujeocQEg5U1o
2727
github.com/aws-controllers-k8s/runtime v0.2.3/go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw=
2828
github.com/aws/aws-sdk-go v1.37.4 h1:tWxrpMK/oRSXVnjUzhGeCWLR00fW0WF4V4sycYPPrJ8=
2929
github.com/aws/aws-sdk-go v1.37.4/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
30+
github.com/aws/aws-sdk-go v1.38.67 h1:OCeXMKiiM8X7HAKPCE5yD+t+sEsRaj8EwDs2tlgvX2c=
31+
github.com/aws/aws-sdk-go v1.38.67/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
3032
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
3133
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
3234
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=

pkg/resource/addon/manager.go

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

pkg/resource/addon/manager_factory.go

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

0 commit comments

Comments
 (0)