8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1bbdc7 commit 4dca744Copy full SHA for 4dca744
internal/configs/virtualserver.go
@@ -84,11 +84,10 @@ func newUpstreamNamerForTransportServer(transportServer *conf_v1alpha1.Transport
84
85
func (namer *upstreamNamer) GetNameForUpstreamFromAction(action *conf_v1.Action) string {
86
var upstream string
87
- // Validation of the Action ensures only one (Pass or Proxy) is available.
88
- if action.Pass != "" {
89
- upstream = action.Pass
90
- } else {
+ if action.Proxy != nil && action.Proxy.Upstream != "" {
91
upstream = action.Proxy.Upstream
+ } else {
+ upstream = action.Pass
92
}
93
94
return fmt.Sprintf("%s_%s", namer.prefix, upstream)
0 commit comments