-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: propagation of cvmfs alien and local cache (#150)
* fix: respect cvmfs alien and localcache are now fully configurable * fix: missing embedded csi.Unimplemented*Server * build: add script to make testing easier * docs: update helm README to include options for cache location
- Loading branch information
Showing
12 changed files
with
233 additions
and
113 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: ci-test-golang | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "master" | ||
# Allows for manual triggers using the `gh` CLI. | ||
workflow_dispatch: | ||
env: | ||
GO_VERSION: "1.22" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: go mod download | ||
|
||
- name: Run go vet | ||
run: go vet ./... | ||
|
||
- name: Run go test | ||
run: go test ./... -json > test-results.json | ||
|
||
- name: Publish test results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: go-results | ||
path: test-results.json | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Verify go mod tidy has been run | ||
run: | | ||
set -e | ||
go mod tidy | ||
if [ ! -z "$(git status --porcelain go.mod go.sum)" ]; then | ||
>&2 echo "Running go mod tidy modified go.mod and/or go.sum" | ||
exit 1 | ||
fi | ||
- name: Verify gofumpt has been run | ||
run: | | ||
set -e | ||
go install mvdan.cc/gofumpt@latest | ||
gofumpt -l -w . | ||
if [ ! -z "$(git status --porcelain .)" ]; then | ||
>&2 echo "Running gofumpt modified source code" | ||
exit 1 | ||
fi |
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
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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
module github.com/cvmfs-contrib/cvmfs-csi | ||
|
||
go 1.22.0 | ||
go 1.22.5 | ||
|
||
toolchain go1.22.2 | ||
toolchain go1.23.1 | ||
|
||
require ( | ||
github.com/container-storage-interface/spec v1.9.0 | ||
github.com/kubernetes-csi/csi-lib-utils v0.17.0 | ||
github.com/moby/sys/mountinfo v0.7.1 | ||
google.golang.org/grpc v1.63.2 | ||
google.golang.org/protobuf v1.34.0 | ||
k8s.io/apimachinery v0.30.0 | ||
k8s.io/klog/v2 v2.120.1 | ||
k8s.io/mount-utils v0.30.0 | ||
github.com/container-storage-interface/spec v1.10.0 | ||
github.com/kubernetes-csi/csi-lib-utils v0.19.0 | ||
github.com/moby/sys/mountinfo v0.7.2 | ||
google.golang.org/grpc v1.66.2 | ||
google.golang.org/protobuf v1.34.2 | ||
k8s.io/apimachinery v0.31.1 | ||
k8s.io/klog/v2 v2.130.1 | ||
k8s.io/mount-utils v0.31.1 | ||
) | ||
|
||
require ( | ||
github.com/go-logr/logr v1.4.1 // indirect | ||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/godbus/dbus/v5 v5.1.0 // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
golang.org/x/net v0.24.0 // indirect | ||
golang.org/x/sys v0.19.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect | ||
k8s.io/utils v0.0.0-20240423183400-0849a56e8f22 // indirect | ||
github.com/opencontainers/runc v1.1.14 // indirect | ||
github.com/opencontainers/runtime-spec v1.2.0 // indirect | ||
github.com/sirupsen/logrus v1.9.3 // indirect | ||
golang.org/x/net v0.29.0 // indirect | ||
golang.org/x/sys v0.25.0 // indirect | ||
golang.org/x/text v0.18.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect | ||
k8s.io/utils v0.0.0-20240902221715-702e33fdd3c3 // indirect | ||
) |
Oops, something went wrong.