Skip to content

Commit 7088232

Browse files
dhaiducekopenshift-merge-robot
authored andcommitted
Update to Go 1.19
ref: stolostron/backlog#26059 Signed-off-by: Dale Haiducek <[email protected]>
1 parent 2fa7bf1 commit 7088232

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Use image builder to build the target binaries
22
# Copyright Contributors to the Open Cluster Management project
33

4-
FROM golang:1.18 AS builder
4+
FROM golang:1.19 AS builder
55

66
ENV COMPONENT=governance-policy-framework-addon
77
ENV REPO_PATH=/go/src/github.com/open-cluster-management-io/${COMPONENT}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module open-cluster-management.io/governance-policy-framework-addon
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/go-logr/zapr v1.2.3

tool/operator-sdk-port.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package tool
88

99
import (
1010
"fmt"
11-
"io/ioutil"
1211
"os"
1312
"strings"
1413
)
@@ -39,7 +38,7 @@ func GetOperatorNamespace() (string, error) {
3938
return "", ErrRunLocal
4039
}
4140

42-
nsBytes, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace")
41+
nsBytes, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace")
4342
if err != nil {
4443
if os.IsNotExist(err) {
4544
return "", ErrNoNamespace

0 commit comments

Comments
 (0)