Skip to content

Commit 6b9d0c1

Browse files
authored
Add tests for cross namespace resource reference (#112)
Issue [#1777](aws-controllers-k8s/community#1777) Description of changes: * Adding new e2e test suites to validate our recently introduced feature ["cross namespace resource references"](aws-controllers-k8s/code-generator#532). In order to test this feature, we added a new feature to allow new namespace creation, from which resources will be referenced (Policy in this case). By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 224e6e9 commit 6b9d0c1

23 files changed

+205
-29
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2024-07-19T22:53:13Z"
3-
build_hash: f0a0f42d507c550c2b063a192b3b43e4522bdd9c
2+
build_date: "2024-07-29T23:59:41Z"
3+
build_hash: 49afe38983d285f926b51b6d34e39a4d9aeffb85
44
go_version: go1.22.5
5-
version: v0.35.0
5+
version: v0.35.0-2-g49afe38
66
api_directory_checksum: 761a2c708651b0273bf39d98dddaf029de23d337
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0

config/crd/bases/iam.services.k8s.aws_groups.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ spec:
104104
properties:
105105
name:
106106
type: string
107+
namespace:
108+
type: string
107109
type: object
108110
type: object
109111
type: array

config/crd/bases/iam.services.k8s.aws_instanceprofiles.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ spec:
100100
properties:
101101
name:
102102
type: string
103+
namespace:
104+
type: string
103105
type: object
104106
type: object
105107
tags:

config/crd/bases/iam.services.k8s.aws_roles.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ spec:
162162
properties:
163163
name:
164164
type: string
165+
namespace:
166+
type: string
165167
type: object
166168
type: object
167169
policies:
@@ -182,6 +184,8 @@ spec:
182184
properties:
183185
name:
184186
type: string
187+
namespace:
188+
type: string
185189
type: object
186190
type: object
187191
type: array

config/crd/bases/iam.services.k8s.aws_users.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ spec:
116116
properties:
117117
name:
118118
type: string
119+
namespace:
120+
type: string
119121
type: object
120122
type: object
121123
policies:
@@ -136,6 +138,8 @@ spec:
136138
properties:
137139
name:
138140
type: string
141+
namespace:
142+
type: string
139143
type: object
140144
type: object
141145
type: array

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.0
55
toolchain go1.22.5
66

77
require (
8-
github.com/aws-controllers-k8s/runtime v0.35.0
8+
github.com/aws-controllers-k8s/runtime v0.35.1-0.20240719172343-a132c887e8d4
99
github.com/aws/aws-sdk-go v1.49.0
1010
github.com/go-logr/logr v1.4.1
1111
github.com/micahhausler/aws-iam-policy v0.4.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/a-hilaly/aws-iam-policy v0.0.0-20231121054900-2c56e839ca53 h1:2uNM0nR2WUDN88EYFxjEaroH+PZJ6k/h9kl+KO0dWVc=
22
github.com/a-hilaly/aws-iam-policy v0.0.0-20231121054900-2c56e839ca53/go.mod h1:Ojgst9ZFn+VEEJpqtuw/LxVGqEf2+hwWBlkYWvF/XWM=
3-
github.com/aws-controllers-k8s/runtime v0.35.0 h1:kLRLFOAcaFJRv/aEiWtb0qhlxFpwvmx6shCWNc1Tuas=
4-
github.com/aws-controllers-k8s/runtime v0.35.0/go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew=
3+
github.com/aws-controllers-k8s/runtime v0.35.1-0.20240719172343-a132c887e8d4 h1:CW58T4qFJpoF37hCPlV1NHCc6mdxNf6jdvLobVolSY0=
4+
github.com/aws-controllers-k8s/runtime v0.35.1-0.20240719172343-a132c887e8d4/go.mod h1:gI2pWb20UGLP2SnHf1a1VzTd7iVVy+/I9VAzT0Y+Dew=
55
github.com/aws/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY=
66
github.com/aws/aws-sdk-go v1.49.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
77
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=

helm/crds/iam.services.k8s.aws_groups.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ spec:
104104
properties:
105105
name:
106106
type: string
107+
namespace:
108+
type: string
107109
type: object
108110
type: object
109111
type: array

helm/crds/iam.services.k8s.aws_instanceprofiles.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ spec:
100100
properties:
101101
name:
102102
type: string
103+
namespace:
104+
type: string
103105
type: object
104106
type: object
105107
tags:

helm/crds/iam.services.k8s.aws_roles.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ spec:
162162
properties:
163163
name:
164164
type: string
165+
namespace:
166+
type: string
165167
type: object
166168
type: object
167169
policies:
@@ -182,6 +184,8 @@ spec:
182184
properties:
183185
name:
184186
type: string
187+
namespace:
188+
type: string
185189
type: object
186190
type: object
187191
type: array

0 commit comments

Comments
 (0)