Skip to content

Commit c839a26

Browse files
authored
ISSUE-2337 IAM service linked role support (#134)
Issue [#2337](aws-controllers-k8s/community#2337), if available: Description of changes: By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Tested this E2E . The test TestServiceLinkedRole passed , however 2 other unrelated tests failed, probably because of my setup. <img width="1007" alt="Screenshot 2025-05-03 at 7 26 59 AM" src="https://github.com/user-attachments/assets/44b2a179-6255-42ab-b9d6-c14fde205889" />
1 parent d689e9a commit c839a26

30 files changed

+2462
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-05-24T00:20:59Z"
2+
build_date: "2025-05-27T23:55:15Z"
33
build_hash: 66a58d259146834e61b211a9a01609beaa58ef77
44
go_version: go1.24.2
55
version: v0.47.1
6-
api_directory_checksum: 0791ed331a435043f515ff3beb1387626883f04d
6+
api_directory_checksum: fcb205ac280ed1b0f107a291e5ea43d93c0991e9
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 41d31ed2f36d33ae7877a9cd2c85d1e293f37cfe
10+
file_checksum: 9e30795ffa094ac7b68fe2bcb6913b0a2d7bccba
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ignore:
1010
- PolicyVersion
1111
#- Role
1212
- SAMLProvider
13-
- ServiceLinkedRole
13+
#- ServiceLinkedRole
1414
- ServiceSpecificCredential
1515
#- User
1616
- VirtualMFADevice
@@ -342,3 +342,23 @@ resources:
342342
Tags:
343343
compare:
344344
is_ignored: true
345+
ServiceLinkedRole:
346+
tags:
347+
ignore: true
348+
hooks:
349+
post_set_resource_identifiers:
350+
template_path: hooks/service_linked_role/post_set_resource_identifiers.go.tpl
351+
post_populate_resource_from_annotation:
352+
template_path: hooks/service_linked_role/post_populate_resource_from_annotation.go.tpl
353+
fields:
354+
AWSServiceName:
355+
is_immutable: true
356+
CustomSuffix:
357+
is_immutable: true
358+
find_operation:
359+
custom_method_name: customGetServiceLinkedRole
360+
update_operation:
361+
custom_method_name: customUpdateServiceLinkedRole
362+
exceptions:
363+
terminal_codes:
364+
- InvalidInput

apis/v1alpha1/service_linked_role.go

Lines changed: 149 additions & 0 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: 170 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 1 addition & 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)