-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update go, GHA, k8s, and Vault (#189)
Use go 1.20.2, and update x/net to v0.8.0: golang.org/x/net v0.5.0 => v0.8.0 golang.org/x/sys v0.4.0 => v0.6.0 golang.org/x/text v0.6.0 => v0.8.0 Update k8s versions and add 1.26.2. Use known GHA SHAs in the test workflow, update helm/kind-action's version and remove azure/setup-kubectl in favor of the kubectl_version option on helm/kind-action. Removes the extra caching steps in favor of setup-go@v3's built-in caching support.
- Loading branch information
Showing
6 changed files
with
31 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,24 +6,21 @@ jobs: | |
fmtcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version-file: .go-version | ||
cache: true | ||
- run: make fmtcheck | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.19.3 | ||
- uses: actions/cache@v2 | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version-file: .go-version | ||
cache: true | ||
- run: make test | ||
|
||
integrationTest: | ||
|
@@ -32,31 +29,21 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
kind-k8s-version: [1.22.13, 1.23.10, 1.24.4, 1.25.0] | ||
kind-k8s-version: [1.22.15, 1.23.13, 1.24.7, 1.25.3, 1.26.2] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- name: Create K8s Kind Cluster | ||
uses: helm/kind-action@v1.2.0 | ||
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0 | ||
with: | ||
version: v0.14.0 | ||
version: v0.17.0 | ||
cluster_name: vault-plugin-auth-kubernetes | ||
config: integrationtest/kind/config.yaml | ||
node_image: kindest/node:v${{ matrix.kind-k8s-version }} | ||
# Must come _after_ kind-action, because the kind step also sets up a kubectl binary. | ||
- uses: azure/[email protected] | ||
with: | ||
version: 'v1.25.0' | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.19.3 | ||
- uses: actions/cache@v2 | ||
kubectl_version: v1.25.3 | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version-file: .go-version | ||
cache: true | ||
- run: make setup-integration-test | ||
- env: | ||
INTEGRATION_TESTS: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters