Skip to content

Commit b69fad6

Browse files
authored
Generate AccessEntry resource. (#84)
This commit upgrades the aws-sdk to version 1.49.13, enabling the generation of the new `AccessEntry` resource. The primary enhancements include: - Integration of `AccessEntry` generation from sdk 1.49.13 - Introduction of the `AccessPolicies` field within `AccessEntry.Spec` - Implementation of custom hooks to handle policy [dis]associations and tag updates. - Addition of exhaustive e2e tests covering diverse create and update scenarios Signed-off-by: Amine Hilaly <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 39bc2f6 commit b69fad6

36 files changed

+3134
-18
lines changed

apis/v1alpha1/access_entry.go

Lines changed: 137 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-01-02T04:11:25Z"
3-
build_hash: 00e081fb541587f33970ad80c99f2ac02e9c2525
2+
build_date: "2024-01-16T04:34:04Z"
3+
build_hash: 1c24ff7816c71b9510556c8c4f120a84f0f2d242
44
go_version: go1.21.5
5-
version: v0.28.0-8-g00e081f
6-
api_directory_checksum: e3ab17e79de95c932895a4372c0b01e976aec4cb
5+
version: v0.28.0-12-g1c24ff7
6+
api_directory_checksum: 56d4e625c425c581f44a2832df7029be02ee13be
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.13
99
generator_config_info:
10-
file_checksum: 95f5a8da41f547e5d9c7f207d5405b64ed866196
10+
file_checksum: 66e3285863ee60ad17b182cf2d54b4d1defddc7f
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,29 @@ resources:
229229
service_name: iam
230230
resource: Role
231231
path: Status.ACKResourceMetadata.ARN
232+
AccessEntry:
233+
fields:
234+
ClusterName:
235+
references:
236+
resource: Cluster
237+
path: Spec.Name
238+
is_primary_key: true
239+
AccessPolicies:
240+
custom_field:
241+
list_of: AssociateAccessPolicyInput
242+
AccessPolicies.AccessScope.Type:
243+
go_tag: json:"type,omitempty"
244+
Type:
245+
go_tag: json:"type,omitempty"
246+
hooks:
247+
sdk_read_one_post_set_output:
248+
template_path: hooks/access_entry/sdk_read_one_post_set_output.go.tpl
249+
sdk_update_pre_build_request:
250+
template_path: hooks/access_entry/sdk_update_pre_build_request.go.tpl
232251
ignore:
233252
resource_names:
234-
- EksAnywhereSubscription
235-
- AccessEntry
253+
- EksAnywhereSubscription
254+
field_paths:
255+
- CreateAccessEntryInput.ClientRequestToken
256+
- AssociateAccessPolicyInput.PrincipalArn
257+
- AssociateAccessPolicyInput.ClusterName

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)