optimize destinationRule generate (#782)

This commit is contained in:
澄潭
2024-01-19 18:06:19 +08:00
committed by GitHub
parent b8a01113e3
commit d3d000753d
3 changed files with 25 additions and 1 deletions

View File

@@ -33,6 +33,12 @@ func TestUpstreamTLSParse(t *testing.T) {
input: Annotations{},
expect: nil,
},
{
input: Annotations{
buildNginxAnnotationKey(backendProtocol): "HTTP",
},
expect: nil,
},
{
input: Annotations{
buildNginxAnnotationKey(proxySSLSecret): "",