Skip to content

Commit 3e22825

Browse files
TiberiuGCmichaelhtm
authored andcommitted
generate controller with aws-sdk-go-v2
1 parent 28ee6bd commit 3e22825

17 files changed

+313
-246
lines changed

Diff for: apis/v1alpha1/ack-generate-metadata.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-01-23T02:21:19Z"
3-
build_hash: 2442aa071c05fcdf54841e63abd5f91d1951e152
2+
build_date: "2025-02-04T23:20:53Z"
3+
build_hash: d2d639403dd853736e63c2bc1e3ca51251fd1bd1
44
go_version: go1.23.5
5-
version: v0.41.0
6-
api_directory_checksum: b055cc57ac2cc8b07e374803c280b65d1a72f3bf
5+
version: v0.41.0-16-gd2d6394-dirty
6+
api_directory_checksum: 78a5d23ba8b0c12225d1afd2506d5524d9a7aa68
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.49.0
8+
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: df0b4d7fe83a679c01131dc4af1844b5ff8105b3
10+
file_checksum: 38b3144fc024675b7bdccb9141fc36779effb946
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

Diff for: apis/v1alpha1/certificate.go

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

Diff for: apis/v1alpha1/enums.go

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

Diff for: apis/v1alpha1/generator.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,23 @@ resources:
3232
# Unfortunately, because fields in the "ignore" configuration list are
3333
# now deleted from the aws-sdk-go private/model/api.Shape object,
3434
# setting `override_values` above does not work :(
35-
code: input.SetValidationMethod("DNS")
35+
code: input.ValidationMethod = "DNS"
3636
sdk_read_one_pre_set_output:
3737
template_path: hooks/certificate/sdk_read_one_pre_set_output.go.tpl
3838
sdk_file_end:
3939
template_path: hooks/certificate/sdk_file_end.go.tpl
4040
late_initialize_post_read_one:
4141
template_path: hooks/certificate/late_initialize_post_read_one.go.tpl
4242
exceptions:
43+
errors:
44+
404:
45+
code: ResourceNotFoundException
4346
terminal_codes:
44-
- InvalidParameter
45-
- InvalidDomainValidationOptionsException
47+
- InvalidParameterException
48+
- InvalidDomainValidationOptionsException
4649
- InvalidTagException
4750
- TagPolicyException
48-
- TooManyTagsException
51+
- TooManyTagsException
4952
- InvalidArnException
5053
reconcile:
5154
requeue_on_success_seconds: 60

Diff for: cmd/controller/main.go

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

Diff for: config/crd/bases/acm.services.k8s.aws_certificates.yaml

+20-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,26 @@ spec:
146146
uses to encrypt data. RSA is the default key algorithm for ACM certificates.
147147
Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering
148148
security comparable to RSA keys but with greater computing efficiency. However,
149-
ECDSA is not supported by all network clients. Some AWS services may require
150-
RSA keys, or only support ECDSA keys of a particular size, while others allow
151-
the use of either RSA and ECDSA keys to ensure that compatibility is not
152-
broken. Check the requirements for the AWS service where you plan to deploy
153-
your certificate.
149+
ECDSA is not supported by all network clients. Some Amazon Web Services services
150+
may require RSA keys, or only support ECDSA keys of a particular size, while
151+
others allow the use of either RSA and ECDSA keys to ensure that compatibility
152+
is not broken. Check the requirements for the Amazon Web Services service
153+
where you plan to deploy your certificate. For more information about selecting
154+
an algorithm, see Key algorithms (https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms).
155+
156+
Algorithms supported for an ACM certificate request include:
157+
158+
* RSA_2048
159+
160+
* EC_prime256v1
161+
162+
* EC_secp384r1
163+
164+
Other listed algorithms are for imported certificates only.
165+
166+
When you request a private PKI certificate signed by a CA from Amazon Web
167+
Services Private CA, the specified signing algorithm family (RSA or ECDSA)
168+
must match the algorithm family of the CA's secret key.
154169
155170
Default: RSA_2048
156171
type: string

Diff for: generator.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,23 @@ resources:
3232
# Unfortunately, because fields in the "ignore" configuration list are
3333
# now deleted from the aws-sdk-go private/model/api.Shape object,
3434
# setting `override_values` above does not work :(
35-
code: input.SetValidationMethod("DNS")
35+
code: input.ValidationMethod = "DNS"
3636
sdk_read_one_pre_set_output:
3737
template_path: hooks/certificate/sdk_read_one_pre_set_output.go.tpl
3838
sdk_file_end:
3939
template_path: hooks/certificate/sdk_file_end.go.tpl
4040
late_initialize_post_read_one:
4141
template_path: hooks/certificate/late_initialize_post_read_one.go.tpl
4242
exceptions:
43+
errors:
44+
404:
45+
code: ResourceNotFoundException
4346
terminal_codes:
44-
- InvalidParameter
45-
- InvalidDomainValidationOptionsException
47+
- InvalidParameterException
48+
- InvalidDomainValidationOptionsException
4649
- InvalidTagException
4750
- TagPolicyException
48-
- TooManyTagsException
51+
- TooManyTagsException
4952
- InvalidArnException
5053
reconcile:
5154
requeue_on_success_seconds: 60

0 commit comments

Comments
 (0)