Skip to content

Commit

Permalink
chore(deps): bump sigs.k8s.io/gateway-api (#7371)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
  • Loading branch information
michaelbeaumont authored Jul 27, 2023
1 parent 73768bf commit 6978252
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ require (
sigs.k8s.io/controller-runtime v0.15.0
sigs.k8s.io/controller-tools v0.12.1
// When updating this also update version in: test/framework/k8s.go
sigs.k8s.io/gateway-api v0.7.1-0.20230613222957-c9540a9cf448
sigs.k8s.io/gateway-api v0.7.1-0.20230727082008-1764e458047d
sigs.k8s.io/yaml v1.3.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,8 @@ sigs.k8s.io/controller-runtime v0.15.0 h1:ML+5Adt3qZnMSYxZ7gAverBLNPSMQEibtzAgp0
sigs.k8s.io/controller-runtime v0.15.0/go.mod h1:7ngYvp1MLT+9GeZ+6lH3LOlcHkp/+tzA/fmHa4iq9kk=
sigs.k8s.io/controller-tools v0.12.1 h1:GyQqxzH5wksa4n3YDIJdJJOopztR5VDM+7qsyg5yE4U=
sigs.k8s.io/controller-tools v0.12.1/go.mod h1:rXlpTfFHZMpZA8aGq9ejArgZiieHd+fkk/fTatY8A2M=
sigs.k8s.io/gateway-api v0.7.1-0.20230613222957-c9540a9cf448 h1:ir9lD9qmbQ/oc84fw2u276xqQqAz6222zBrfoY4a0mw=
sigs.k8s.io/gateway-api v0.7.1-0.20230613222957-c9540a9cf448/go.mod h1:ZGCdTDdW6pxVk9eAnHqXt8wPnbSLzlEFN/XXj8AA3ho=
sigs.k8s.io/gateway-api v0.7.1-0.20230727082008-1764e458047d h1:X7hnnkKtL6VyE5VcC/QH+uY6wVbYybZbPtmVSvDlSDE=
sigs.k8s.io/gateway-api v0.7.1-0.20230727082008-1764e458047d/go.mod h1:eilE0qyBTXs7VhQuGtUa3ji4IMM7TNtVCWR3+IdPosI=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@ func (r *GatewayReconciler) updateStatus(
return nil
}

func gatewayAddresses(instance *mesh_k8s.MeshGatewayInstance) []gatewayapi.GatewayAddress {
func gatewayAddresses(instance *mesh_k8s.MeshGatewayInstance) []gatewayapi.GatewayStatusAddress {
if instance == nil {
return nil
}

ipType := gatewayapi.IPAddressType
hostnameType := gatewayapi.HostnameAddressType

var addrs []gatewayapi.GatewayAddress
var addrs []gatewayapi.GatewayStatusAddress

if lb := instance.Status.LoadBalancer; lb != nil {
for _, addr := range instance.Status.LoadBalancer.Ingress {
if addr.IP != "" {
addrs = append(addrs, gatewayapi.GatewayAddress{
addrs = append(addrs, gatewayapi.GatewayStatusAddress{
Type: &ipType,
Value: addr.IP,
})
}
if addr.Hostname != "" {
addrs = append(addrs, gatewayapi.GatewayAddress{
addrs = append(addrs, gatewayapi.GatewayStatusAddress{
Type: &hostnameType,
Value: addr.Hostname,
})
Expand Down
1 change: 0 additions & 1 deletion test/e2e/gateway/gatewayapi/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func TestConformance(t *testing.T) {
SupportedFeatures: sets.New(
suite.SupportGateway,
suite.SupportHTTPRoute,
suite.SupportGatewayClassObservedGenerationBump,
suite.SupportHTTPRouteQueryParamMatching,
suite.SupportHTTPRouteMethodMatching,
suite.SupportHTTPResponseHeaderModification,
Expand Down

0 comments on commit 6978252

Please sign in to comment.