-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
APIGW: Update how status conditions for certificates are handled #17115
APIGW: Update how status conditions for certificates are handled #17115
Conversation
that is using the certificate
refs, added tests
@@ -3625,7 +4020,7 @@ func TestAPIGatewayController(t *testing.T) { | |||
require.NoError(t, err) | |||
ppExpected, err := json.MarshalIndent(expectedStatus, "", " ") | |||
require.NoError(t, err) | |||
require.True(t, statusEqual, fmt.Sprintf("statuses are unequal: %+v != %+v", string(ppActual), string(ppExpected))) | |||
require.True(t, statusEqual, fmt.Sprintf("statuses are unequal (actual != expected): %+v != %+v", string(ppActual), string(ppExpected))) |
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.
this was a small QoL change, I can remove it if we think it's unnecessary
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.
LGTM -- I do eventually want to circle back and think about whether we want to handle the Accepted
status differently than we do now (since a single ResolvedRefs == False
listener makes Accepted == False
), but as that likely will require a decent amount of additional internal plumbing to handle appropriately, I'm cool doing it later.
…handled into release/1.15.x (#17170) * APIGW: Update how status conditions for certificates are handled (#17115) * Move status condition for invalid certifcate to reference the listener that is using the certificate * Fix where we set the condition status for listeners and certificate refs, added tests * Add changelog * Remove unused code from backport * Revert go mod changes --------- Co-authored-by: John Maguire <john.maguire@hashicorp.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
Description
This changes how status conditions for invalid certifcates on listeners are reported so that the status condition is on the listener and mentions which certificate is invalid in the message.
Testing & Reproduction steps
Run unit tests
Links
N/A
PR Checklist