-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Mattsson <michael.mattsson@gmail.com>
- Loading branch information
1 parent
1657b8f
commit 1adedee
Showing
40 changed files
with
594 additions
and
173 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
FROM alpine:3 | ||
RUN apk add --no-cache python3 py3-pip && \ | ||
pip3 install --upgrade pip && \ | ||
mkdir /app | ||
ADD requirements.txt / | ||
RUN pip3 install -r requirements.txt | ||
RUN apk add --no-cache python3 py3-pip && \ | ||
python3 -m venv /app && \ | ||
/app/bin/pip install -r requirements.txt | ||
ADD truenascsp/*.py /app/ | ||
WORKDIR /app | ||
ENTRYPOINT [ "gunicorn", "--workers", "3", "--bind", "0.0.0.0:8080", "--timeout", "60", "csp:SERVE" ] | ||
ENTRYPOINT [ "/app/bin/gunicorn", "--workers", "3", "--bind", "0.0.0.0:8080", "--timeout", "180", "csp:SERVE" ] |
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,3 +1,3 @@ | ||
This page intentionally left blank. | ||
|
||
(C) Copyright 2023 Hewlett Packard Enterprise Development LP. | ||
(C) Copyright 2024 Hewlett Packard Enterprise Development LP. |
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
Binary file not shown.
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 @@ | ||
secret.yaml |
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,14 @@ | ||
FROM almalinux | ||
|
||
# Install stuff | ||
RUN dnf install -y curl jq && \ | ||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
# Manipulate stuff | ||
ENV HERE=/cut/csi-e2e | ||
ENV PATH=${PATH}:${HERE} | ||
RUN mkdir -p ${HERE} | ||
ADD cache ${HERE} | ||
ADD runner.sh ${HERE} | ||
WORKDIR ${HERE} |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
# Synopsis | ||
|
||
Performs CSI e2e tests. | ||
|
||
```text | ||
kubectl apply -f resources.yaml | ||
kubectl apply -k . | ||
kubectl replace --force -f job-rwo.yaml | ||
kubectl replace --force -f job-rwx.yaml | ||
kubectl logs -n csi-e2e job/csi-e2e -f | ||
``` |
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,47 @@ | ||
--- | ||
kind: Job | ||
apiVersion: batch/v1 | ||
metadata: | ||
name: csi-e2e | ||
namespace: csi-e2e | ||
spec: | ||
backoffLimit: 0 | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: csi-e2e | ||
image: quay.io/datamattsson/csi-e2e:v2.4.0 | ||
command: | ||
- runner.sh | ||
args: | ||
- --ginkgo.fail-fast | ||
- --ginkgo.v | ||
- --ginkgo.timeout=12h | ||
- --ginkgo.focus=External.Storage.\[Driver:.csi.hpe.com\].* | ||
- --ginkgo.skip=\[Disruptive\]|\[Serial\] | ||
- --non-blocking-taints=node-role.kubernetes.io/control-plane,node-role.kubernetes.io/etcd,node-role.kubernetes.io/master | ||
- -storage.testdriver=test-driver-rwo.yaml | ||
- -report-dir=../report | ||
env: | ||
- name: ARG_DEBUG | ||
value: "" | ||
- name: FORCE_VERSION | ||
value: "" | ||
volumeMounts: | ||
- name: tests | ||
mountPath: /cut/csi-e2e/tests | ||
volumes: | ||
- name: tests | ||
projected: | ||
sources: | ||
- configMap: | ||
name: storage-class-rwx.yaml | ||
- configMap: | ||
name: storage-class-rwo.yaml | ||
- configMap: | ||
name: volume-snapshot-class.yaml | ||
- configMap: | ||
name: test-driver-rwx.yaml | ||
- configMap: | ||
name: test-driver-rwo.yaml |
Oops, something went wrong.