Skip to content

Commit

Permalink
Adding minio nodeselector support (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin authored Feb 26, 2024
1 parent 9afb446 commit b160ebc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/testkube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ jobs:
mc alias set swoopminio http://127.0.0.1:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
mc cp --recursive swoop/tests/fixtures/io/base_01/ swoopminio/swoop/executions/2595f2da-81a6-423c-84db-935e6791046e/
- uses: kubeshop/setup-testkube@v1
- name: Installing Testkube
run: |
wget -qO - https://repo.testkube.io/key.pub | sudo apt-key add -
echo "deb https://repo.testkube.io/linux linux main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y testkube
kubectl testkube install --no-confirm
kubectl wait --for=condition=ready --timeout=30m pod -n testkube -l app.kubernetes.io/instance=testkube
kubectl port-forward -n testkube svc/testkube-api-server 8088:8088 &
testkube config api-uri http://127.0.0.1:8088/v1
- name: Create Testkube Tests
continue-on-error: true
run: |
Expand Down
6 changes: 6 additions & 0 deletions charts/minio/templates/minio-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ spec:
labels:
app: minio
spec:
{{- if (hasKey .Values.storage "nodeSelector") -}}
{{- if (hasKey .Values.storage.nodeSelector "app") -}}
nodeSelector:
app: {{ .Values.storage.nodeSelector.app }}
{{- end }}
{{- end }}
containers:
- command:
- bash
Expand Down

0 comments on commit b160ebc

Please sign in to comment.