Skip to content

Conversation

@solmonk
Copy link
Contributor

@solmonk solmonk commented Jul 5, 2023

What type of PR is this?

bug

Which issue does this PR fix:

Follow-up to a fix of #282 - also partially fixes #277

What does this PR do / Why do we need it:

Total rework of conditions update - now conditions are handled individually, and got rid of infinite loop and missing updates

If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:

Testing done on this change:

Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Does this PR introduce any user-facing change?:


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

@coveralls
Copy link

coveralls commented Jul 5, 2023

Pull Request Test Coverage Report for Build 5459465247

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 32.692%

Totals Coverage Status
Change from base Build 5425923024: 0.0%
Covered Lines: 3382
Relevant Lines: 10345

💛 - Coveralls

Copy link
Contributor

@liwenwu-amazon liwenwu-amazon left a comment

Choose a reason for hiding this comment

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

LGTM, had some minor comments that we should keep some debugging msgs for trouble shooting.


func (r *GatewayReconciler) updateGatewayStatus(ctx context.Context, serviceNetworkStatus *latticestore.ServiceNetwork, gw *gateway_api.Gateway) error {

glog.V(6).Infof("updateGatewayStatus: updating last transition time \n")
Copy link
Contributor

Choose a reason for hiding this comment

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

can we leave this for debugging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updateGatewayStatus is only called in a single place and there is a log beforehand, so it is a duplicate IMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set status condition on HTTPRoute resources

3 participants