Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#223 from jsafrane/4.14-bump-golang…
Browse files Browse the repository at this point in the history
…ci-lint

OCPBUGS-12297: UPSTREAM: 1505: bump go + golangci-lint
  • Loading branch information
openshift-merge-robot authored Apr 26, 2023
2 parents 5ad84ab + 718af55 commit 8ce4dc5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.19-openshift-4.14
tag: rhel-8-release-golang-1.20-openshift-4.14
2 changes: 1 addition & 1 deletion Dockerfile.openshift.rhel7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.19-openshift-4.14 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
COPY . .
RUN make ARCH=$(go env GOARCH)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ bin/mockgen: | bin

bin/golangci-lint: | bin
echo "Installing golangci-lint..."
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.50.1
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.51.1

.PHONY: kubeval
kubeval: bin/kubeval
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func newEC2Cloud(region string, awsSdkDebugLog bool) (Cloud, error) {
endpoint := os.Getenv("AWS_EC2_ENDPOINT")
if endpoint != "" {
customResolver := func(service, region string, optFns ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) {
if service == endpoints.Ec2ServiceID {
if service == ec2.EndpointsID {
return endpoints.ResolvedEndpoint{
URL: endpoint,
SigningRegion: region,
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
const kubeconfigEnvVar = "KUBECONFIG"

func init() {
rand.Seed(time.Now().UTC().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
testing.Init()
// k8s.io/kubernetes/test/e2e/framework requires env KUBECONFIG to be set
// it does not fall back to defaults
Expand Down

0 comments on commit 8ce4dc5

Please sign in to comment.