-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cross namespace resource reference support in code generator #532
Add cross namespace resource reference support in code generator #532
Conversation
/retest |
29a44dc
to
b75b3fa
Compare
/retest |
1 similar comment
/retest |
f8f2534
to
4ba58ad
Compare
/hold |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this Michael!! i'll wait for your rebase and a runtime release before we proceed on merging this.
@@ -117,7 +116,6 @@ func validateReferenceFields(ko *svcapitypes.{{ .CRD.Names.Camel }}) error { | |||
func (rm *resourceManager) resolveReferenceFor{{ $field.FieldPathWithUnderscore }}( | |||
ctx context.Context, | |||
apiReader client.Reader, | |||
namespace string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that we're getting rid of unnecessary parameters!
|
||
require ( | ||
github.com/aws-controllers-k8s/pkg v0.0.12 | ||
github.com/aws-controllers-k8s/runtime v0.34.0 | ||
github.com/aws-controllers-k8s/runtime v0.35.1-0.20240719172343-a132c887e8d4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time to make v0.36.0 release :)
.gitignore
Outdated
path/ | ||
.vscode/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep only the ones that are somewhat related to ACK
* Added ability to reference resources cross namespace * Needs more testing
4ba58ad
to
391d445
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this @michaelhtm
/lgtm
/unhold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, michaelhtm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue #1777
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.