Skip to content

Commit

Permalink
Add missing ports to istio reseved ports list
Browse files Browse the repository at this point in the history
Signed-off-by: Alona Paz <[email protected]>
  • Loading branch information
AlonaKaplan committed Feb 2, 2023
1 parent 0135cca commit 6144a6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/domainspec/generators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var _ = Describe("Pod Network", func() {
}
specGenerator = NewPasstLibvirtSpecGenerator(
passtIface, nil, istioVmi)
Expect(getPorts(specGenerator)).To(Equal("-t ~15000,~15001,~15006,~15008,~15020,~15021,~15090 -u all"))
Expect(getPorts(specGenerator)).To(Equal("-t ~15000,~15001,~15004,~15006,~15008,~15009,~15020,~15021,~15053,~15090 -u all"))
})
})
})
Expand Down
6 changes: 6 additions & 0 deletions pkg/network/istio/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ import "fmt"
const (
EnvoyAdminPort = 15000
EnvoyOutboundPort = 15001
EnvoyDebugPort = 15004
EnvoyInboundPort = 15006
EnvoyTunnelPort = 15008
EnvoySecureNetworkPort = 15009
EnvoyMergedPrometheusTelemetryPort = 15020
EnvoyHealthCheckPort = 15021
EnvoyDNSPort = 15053
EnvoyPrometheusTelemetryPort = 15090
SshPort = 22
)
Expand All @@ -36,10 +39,13 @@ func ReservedPorts() []string {
return []string{
fmt.Sprint(EnvoyAdminPort),
fmt.Sprint(EnvoyOutboundPort),
fmt.Sprint(EnvoyDebugPort),
fmt.Sprint(EnvoyInboundPort),
fmt.Sprint(EnvoyTunnelPort),
fmt.Sprint(EnvoySecureNetworkPort),
fmt.Sprint(EnvoyMergedPrometheusTelemetryPort),
fmt.Sprint(EnvoyHealthCheckPort),
fmt.Sprint(EnvoyDNSPort),
fmt.Sprint(EnvoyPrometheusTelemetryPort),
}
}
Expand Down

0 comments on commit 6144a6d

Please sign in to comment.