Skip to content

Commit 89d0a03

Browse files
authored
Generate PodIdentityAssociation resource. (#77)
aws-controllers-k8s/community#1944 This patch regenerates the controller with new instructions that brings the `PodIdentityAssociation` resource. Example resource CR: ```yaml apiVersion: v1 items: - apiVersion: eks.services.k8s.aws/v1alpha1 kind: PodIdentityAssociation metadata: name: test-pia namespace: default spec: clusterName: test-cluster namespace: ns roleARN: arn:aws:iam::$ACCOUNT_ID:role/pod-role serviceAccount: serviceaccount-1 ``` The patch also adds e2e tests and utility functions to manage service accounts. TODO(@a-hilaly) move this utility to `acktest` library. 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 cb1337d commit 89d0a03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3503
-93
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2023-09-14T23:29:54Z"
3-
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
4-
go_version: go1.21.0
5-
version: v0.27.1
6-
api_directory_checksum: 1f80f5565b681614b1bef5950ba11a1df0b8b486
2+
build_date: "2023-11-28T06:48:22Z"
3+
build_hash: 1cc9b5172d3d1676af578a3411e8672698ec29ce
4+
go_version: go1.21.1
5+
version: v0.27.1-5-g1cc9b51-dirty
6+
api_directory_checksum: 433e9e9292aad74a6cb9f7e9fc99947a1d7904d3
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.44.195
8+
aws_sdk_go_version: v1.48.4
99
generator_config_info:
10-
file_checksum: 5f43816010007fa46c7804e1ad4e9493b2820744
10+
file_checksum: 2c7fa0da1035aad73be2cd537e68cc2aa956f9bc
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/addon.go

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

apis/v1alpha1/enums.go

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

apis/v1alpha1/generator.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,14 @@ resources:
208208
sdk_file_end:
209209
template_path: hooks/nodegroup/sdk_file_end.go.tpl
210210
update_operation:
211-
custom_method_name: customUpdate
211+
custom_method_name: customUpdate
212+
PodIdentityAssociation:
213+
fields:
214+
ClusterName:
215+
references:
216+
resource: Cluster
217+
path: Spec.Name
218+
is_primary_key: true
219+
ignore:
220+
resource_names:
221+
- EksAnywhereSubscription

apis/v1alpha1/pod_identity_association.go

Lines changed: 126 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)