Skip to content

Conversation

vijtrip2
Copy link
Contributor

@vijtrip2 vijtrip2 commented Mar 9, 2022

Description of changes:

  • Use a set of referenced service names for generating import statements inside references.go.tpl

  • Use sorted fieldnames inside iteration for generating consistent code for references.go.tpl. Earlier the generated code was similar but not identical to previous generation. This will reduce cognitive load when reviewing auto-generated PRs

  • Added cross service reference manifests for unit testing.

  • Manually generated apigatewayv2 controller to test as well.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-bot ack-bot requested a review from brycahta March 9, 2022 19:32
@vijtrip2 vijtrip2 changed the title BugFix: References duplicate import BugFix: fixes duplicate import inside references.go Mar 9, 2022
Copy link
Contributor

@RedbackThomson RedbackThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally makes sense. Good catch!

/lgtm

Comment on lines +38 to +39
// Sorted fieldnames are used for consistent code-generation
for _, fieldName := range crd.SortedFieldNames() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Mar 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RedbackThomson, vijtrip2

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:
  • OWNERS [RedbackThomson,vijtrip2]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 06d1e50 into aws-controllers-k8s:main Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants