Skip to content

Commit dc119f8

Browse files
authored
Add reference PodIdentityAssociation RoleARN (#81)
Regenerate the code to support RoleARN references By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 89d0a03 commit dc119f8

File tree

11 files changed

+155
-15
lines changed

11 files changed

+155
-15
lines changed
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: "2023-11-28T06:48:22Z"
3-
build_hash: 1cc9b5172d3d1676af578a3411e8672698ec29ce
2+
build_date: "2023-12-12T20:01:34Z"
3+
build_hash: 2cc7afebf2d80513f9ed3aba95b9a2bd8dfe3d6a
44
go_version: go1.21.1
5-
version: v0.27.1-5-g1cc9b51-dirty
6-
api_directory_checksum: 433e9e9292aad74a6cb9f7e9fc99947a1d7904d3
5+
version: v0.27.1-7-g2cc7afe
6+
api_directory_checksum: a543a43cd1b4533a3bb3abb15a960b6358035ecc
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.48.4
99
generator_config_info:
10-
file_checksum: 2c7fa0da1035aad73be2cd537e68cc2aa956f9bc
10+
file_checksum: c5c0aeda28af64e2b7ead52aa3563fe6e35d6cf8
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ resources:
216216
resource: Cluster
217217
path: Spec.Name
218218
is_primary_key: true
219+
RoleARN:
220+
references:
221+
service_name: iam
222+
resource: Role
223+
path: Status.ACKResourceMetadata.ARN
219224
ignore:
220225
resource_names:
221226
- EksAnywhereSubscription

apis/v1alpha1/pod_identity_association.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.

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/eks.services.k8s.aws_podidentityassociations.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ spec:
7171
to assume this role for applications in the containers in the pods
7272
that use this service account.
7373
type: string
74+
roleRef:
75+
description: "AWSResourceReferenceWrapper provides a wrapper around
76+
*AWSResourceReference type to provide more user friendly syntax
77+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
78+
properties:
79+
from:
80+
description: AWSResourceReference provides all the values necessary
81+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
82+
properties:
83+
name:
84+
type: string
85+
type: object
86+
type: object
7487
serviceAccount:
7588
description: The name of the Kubernetes service account inside the
7689
cluster to associate the IAM credentials with.
@@ -98,7 +111,6 @@ spec:
98111
type: object
99112
required:
100113
- namespace
101-
- roleARN
102114
- serviceAccount
103115
type: object
104116
status:

generator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ resources:
216216
resource: Cluster
217217
path: Spec.Name
218218
is_primary_key: true
219+
RoleARN:
220+
references:
221+
service_name: iam
222+
resource: Role
223+
path: Status.ACKResourceMetadata.ARN
219224
ignore:
220225
resource_names:
221226
- EksAnywhereSubscription

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/aws-controllers-k8s/eks-controller
33
go 1.19
44

55
require (
6-
github.com/aws-controllers-k8s/ec2-controller v0.0.10
7-
github.com/aws-controllers-k8s/iam-controller v0.0.8
6+
github.com/aws-controllers-k8s/ec2-controller v1.1.0
7+
github.com/aws-controllers-k8s/iam-controller v1.3.1
88
github.com/aws-controllers-k8s/runtime v0.27.1
99
github.com/aws/aws-sdk-go v1.48.4
1010
github.com/go-logr/logr v1.2.3

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy
3838
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
3939
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
4040
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
41-
github.com/aws-controllers-k8s/ec2-controller v0.0.10 h1:RVGezMt5aySJZSj+h77SrHZnMjE8Gki2UI0tqLqdgEQ=
42-
github.com/aws-controllers-k8s/ec2-controller v0.0.10/go.mod h1:N8vii7yTsYHmMjOhs4kl8MpJlBWIEHQFm11HO16J9C4=
43-
github.com/aws-controllers-k8s/iam-controller v0.0.8 h1:7F4W45I7l30jZZGS8FEesScJmOcnPASCoa1sHBcTLNI=
44-
github.com/aws-controllers-k8s/iam-controller v0.0.8/go.mod h1:IibRVHZc+MEISws4FXQVC0rGwTeePm/O1Pk4kpXq5x0=
41+
github.com/aws-controllers-k8s/ec2-controller v1.1.0 h1:SSutBopBi2nYWqNNZfkVgv7k4VPcGFdWab39uMK75xw=
42+
github.com/aws-controllers-k8s/ec2-controller v1.1.0/go.mod h1:PvsQehgncHgcu9FiY13M45+GkVsKI98g7G83SrgH7vY=
43+
github.com/aws-controllers-k8s/iam-controller v1.3.1 h1:/3yH3tAtSVAAt2ulIqsmutjWXhbKWXSaEZ1pph358GE=
44+
github.com/aws-controllers-k8s/iam-controller v1.3.1/go.mod h1:7nZzMtEN8xEL5fYhL9FKkBhqoP4QMmMp5x5dXDGwfYM=
4545
github.com/aws-controllers-k8s/runtime v0.27.1 h1:tvJRQDioBFkob0kF4DwgS7MsoXZKwkG5QCHWxFEh+2o=
4646
github.com/aws-controllers-k8s/runtime v0.27.1/go.mod h1:oSCqCzbzJLUrzv+cx4TIxCuSUvL75ABJmhxBc87IRqc=
4747
github.com/aws/aws-sdk-go v1.48.4 h1:HS2L7ynVhkcRrQRro9CLJZ/xLRb4UOzDEfPzgevZwXM=

helm/crds/eks.services.k8s.aws_podidentityassociations.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ spec:
7171
to assume this role for applications in the containers in the pods
7272
that use this service account.
7373
type: string
74+
roleRef:
75+
description: "AWSResourceReferenceWrapper provides a wrapper around
76+
*AWSResourceReference type to provide more user friendly syntax
77+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
78+
properties:
79+
from:
80+
description: AWSResourceReference provides all the values necessary
81+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
82+
properties:
83+
name:
84+
type: string
85+
type: object
86+
type: object
7487
serviceAccount:
7588
description: The name of the Kubernetes service account inside the
7689
cluster to associate the IAM credentials with.
@@ -98,7 +111,6 @@ spec:
98111
type: object
99112
required:
100113
- namespace
101-
- roleARN
102114
- serviceAccount
103115
type: object
104116
status:

pkg/resource/pod_identity_association/delta.go

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