Skip to content

Commit

Permalink
update docs with helm test info
Browse files Browse the repository at this point in the history
  • Loading branch information
pravarag committed Apr 14, 2021
1 parent 92cb1b2 commit c05d36d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/descheduler/templates/tests/test-descheduler-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
drop:
- All
privileged: false
runAsNonRoot: false
runAsNonRoot: false
command: ["/bin/ash"]
args:
- -c
Expand All @@ -26,4 +26,4 @@ spec:
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl &&
chmod +x ./kubectl &&
mv ./kubectl /usr/local/bin/kubectl &&
/usr/local/bin/kubectl get pods --namespace kube-system --token "$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | grep "Completed"
/usr/local/bin/kubectl get pods --namespace kube-system --token "$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | grep "descheduler" | grep "Completed"
13 changes: 13 additions & 0 deletions docs/contributor-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,18 @@ make test-unit
make test-e2e
```

## Run Helm tests
We can run the helm test for a particular descheduler release by setting below variables,
```
HELM_IMGAE_REPO="descheduler"
HELM_IMAGE_TAG="helm-test"
CHARTS_PATH="./charts/descheduler"
```
The helm tests runs as part of descheduler CI. But, to run it manually from the descheduler root,

```
make test-helm
```

### Miscellaneous
See the [hack directory](https://github.com/kubernetes-sigs/descheduler/tree/master/hack) for additional tools and scripts used for developing the descheduler.

0 comments on commit c05d36d

Please sign in to comment.