-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(CSI-213): add NFS sanity and bump csi-sanity to 5.3.1
- Loading branch information
1 parent
cb63780
commit eedd7e7
Showing
8 changed files
with
204 additions
and
78 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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: '3.8' | ||
|
||
services: | ||
plugin_controller: | ||
image: sanity | ||
command: wekafsplugin -nodeid 1 -v 6 --allowinsecurehttps --endpoint=unix://tmp/weka-csi-test/controller.sock -metricsport=9091 --csimode=controller -enablemetrics -allowautofscreation -allowautofsexpansion -allowsnapshotsoflegacyvolumes -alwaysallowsnapshotvolumes -usenfs -interfacegroupname=NFS | ||
volumes: | ||
- test-volume:/tmp/weka-csi-test | ||
privileged: true | ||
network_mode: host | ||
healthcheck: | ||
test: test -f /tmp/weka-csi-test/controller.sock | ||
start_period: 1s | ||
timeout: 1s | ||
retries: 10 | ||
interval: 3s | ||
plugin_node: | ||
image: sanity | ||
command: wekafsplugin -nodeid 1 -v 6 --allowinsecurehttps --endpoint=unix://tmp/weka-csi-test/node.sock -metricsport=9092 --csimode=node -enablemetrics -allowautofscreation -allowautofsexpansion -allowsnapshotsoflegacyvolumes -alwaysallowsnapshotvolumes -usenfs -interfacegroupname=NFS | ||
volumes: | ||
- test-volume:/tmp/weka-csi-test | ||
privileged: true | ||
network_mode: host | ||
healthcheck: | ||
test: test -f /tmp/weka-csi-test/node.sock | ||
start_period: 1s | ||
timeout: 1s | ||
retries: 10 | ||
interval: 3s | ||
sanity: | ||
image: sanity | ||
command: run_sanity ${SANITY_FUNCTION} ${SANITY_VERBOSITY} | ||
network_mode: host | ||
volumes: | ||
- test-volume:/tmp/weka-csi-test | ||
depends_on: | ||
- plugin_controller | ||
- plugin_node | ||
volumes: | ||
test-volume: |
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,25 +1,25 @@ | ||
FROM golang:1.22-alpine | ||
FROM golang:1.22-alpine AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
RUN go install -v github.com/kubernetes-csi/csi-test/v5/cmd/csi-sanity@v5.0.0 | ||
RUN go install -v github.com/kubernetes-csi/csi-test/v5/cmd/csi-sanity@v5.3.1 | ||
|
||
COPY cmd cmd | ||
COPY pkg pkg | ||
|
||
RUN CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -a -ldflags '-X main.version='$VERSION' -extldflags "-static"' -o wekafsplugin ./cmd/wekafsplugin/main.go | ||
|
||
|
||
FROM golang:1.21-alpine | ||
FROM golang:1.22-alpine | ||
|
||
ADD tests/csi-sanity/wekafs-dirv1.yaml /test/wekafs-dirv1.yaml | ||
ADD tests/csi-sanity/wekafs-fs.yaml /test/wekafs-fs.yaml | ||
ADD tests/csi-sanity/wekafs-snapvol.yaml /test/wekafs-snapvol.yaml | ||
ADD tests/csi-sanity/wekafs-api-secret.yaml /test/wekafs-api-secret.yaml | ||
ADD tests/csi-sanity/ga_docker_run_sanity.sh /usr/bin/run_sanity | ||
COPY --from=0 /go/bin/csi-sanity /usr/local/bin/csi-sanity | ||
COPY --from=0 /app/wekafsplugin /usr/local/bin/wekafsplugin | ||
COPY --from=builder /go/bin/csi-sanity /usr/local/bin/csi-sanity | ||
COPY --from=builder /app/wekafsplugin /usr/local/bin/wekafsplugin |
Oops, something went wrong.