-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support match in TransportServer health checks #1633
Conversation
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.
Can you add a test to the python test suite that confirms the functionality of this change?
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 need to leave a comment to request changes.
@@ -407,3 +408,121 @@ def test_tcp_request_load_balanced_method( | |||
client.close() | |||
|
|||
assert len(endpoints) is 3 | |||
|
|||
@pytest.mark.skip_for_nginx_oss | |||
def test_tcp_passing_healthcheck_with_match( |
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.
@pleshakov these tests also looks like a decent candidates to use parameterization to pass various ts/cases, see: https://github.com/nginxinc/kubernetes-ingress/blob/master/tests/suite/test_ingress_mtls.py#L82
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.
makes sense. let me know about this https://github.com/nginxinc/kubernetes-ingress/pull/1633/files#r643518158
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.
Yeah that's fine for now that its added and working but we don't need to verify all the attribs as nginx plus is doing lb and the UI is provided by the same.
@@ -526,10 +526,13 @@ func TestGenerateUnixSocket(t *testing.T) { | |||
|
|||
func TestGenerateTransportServerHealthChecks(t *testing.T) { | |||
upstreamName := "dns-tcp" | |||
generatedUpsteamName := "ts_namespace_name_dns-tcp" |
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.
is there one for dns-udp too?
699597d
to
123003b
Compare
Proposed changes
Support match in TransportServer health checks
Based on the original work from @soneillf5