Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #16550: tests: use version from go.mod in github actions #16618: Update Go to v1.21.4 #16619

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
build-linux-amd64:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make all examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -33,14 +33,14 @@ jobs:
build-macos-amd64:
runs-on: macos-latest
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -50,14 +50,14 @@ jobs:
build-windows-amd64:
runs-on: windows-2019
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -67,14 +67,14 @@ jobs:
verify:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make quick-ci
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
if: ${{ github.repository == 'kubernetes/kops' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
go-version-file: 'go.mod'
- name: Update Dependencies
id: update_deps
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ steps.update_deps.outputs.changes != '' }}
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
with:
title: 'Update dependencies'
commit-message: Update dependencies
Expand Down
6 changes: 3 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ options:
machineType: 'N1_HIGHCPU_8'
steps:
# Push the images
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: images
entrypoint: make
env:
Expand All @@ -21,7 +21,7 @@ steps:
- dns-controller-push
- kube-apiserver-healthcheck-push
# Push the artifacts
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: artifacts
entrypoint: make
env:
Expand All @@ -36,7 +36,7 @@ steps:
args:
- gcs-upload-and-tag
# Build cloudbuild artifacts (for attestation)
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: cloudbuild-artifacts
entrypoint: make
env:
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 k8s.io/kops

go 1.22.3
go 1.22.4

require (
cloud.google.com/go/compute/metadata v0.3.0
Expand Down
2 changes: 1 addition & 1 deletion hack/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/hack

go 1.22.3
go 1.22.4

require (
github.com/client9/misspell v0.3.4
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/tests/e2e

go 1.22.3
go 1.22.4

replace k8s.io/kops => ../../.

Expand Down
2 changes: 1 addition & 1 deletion tools/otel/traceserver/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/tools/otel/traceserver

go 1.22.3
go 1.22.4

require (
go.opentelemetry.io/proto/otlp v1.2.0
Expand Down
Loading