Skip to content

Commit

Permalink
Upgrade Go to version 1.22
Browse files Browse the repository at this point in the history
Need this to compile the refreshed Contour code. Luckily Debian's
backports repo has 1.22 so I don't need to fall back to an ad-hoc
installation.
  • Loading branch information
caboteria committed Sep 3, 2024
1 parent 558ec27 commit fb2dad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions controllers/gateway/gateway_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/util/retry"
"k8s.io/utils/ptr"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
Expand All @@ -25,7 +26,6 @@ import (
epicgwv1 "epic-gateway.org/puregw/apis/puregw/v1"
"epic-gateway.org/puregw/controllers"
"epic-gateway.org/puregw/internal/contour/dag"
contour_gatewayapi "epic-gateway.org/puregw/internal/contour/gatewayapi"
"epic-gateway.org/puregw/internal/contour/status"
"epic-gateway.org/puregw/internal/gateway"
)
Expand Down Expand Up @@ -380,12 +380,12 @@ func markAddresses(ctx context.Context, cl client.Client, l logr.Logger, gw *gat
// Add the IP address to GW.Status so the user can find out what
// it is.
gw.Status.Addresses = []gatewayapi.GatewayStatusAddress{{
Type: contour_gatewayapi.AddressTypePtr(gatewayapi.IPAddressType),
Type: ptr.To(gatewayapi.IPAddressType),
Value: publicIP,
}}
if publicHostname != "" {
gw.Status.Addresses = append(gw.Status.Addresses, gatewayapi.GatewayStatusAddress{
Type: contour_gatewayapi.AddressTypePtr(gatewayapi.HostnameAddressType),
Type: ptr.To(gatewayapi.HostnameAddressType),
Value: publicHostname,
})
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module epic-gateway.org/puregw

go 1.21
go 1.22

toolchain go1.22.0

Expand Down

0 comments on commit fb2dad5

Please sign in to comment.