mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
As part of the k8s 1.19 release cycle the Go version is being bumped to 1.15.0. Updating the descheduler to use Go 1.15 prior to the descheduler v0.19.0 release. See below issues for reference: * https://github.com/kubernetes/release/issues/1421 * https://github.com/kubernetes/kubernetes/issues/93484
44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
# Contributor Guide
|
|
|
|
## Required Tools
|
|
|
|
- [Git](https://git-scm.com/downloads)
|
|
- [Go 1.15+](https://golang.org/dl/)
|
|
- [Docker](https://docs.docker.com/install/)
|
|
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl)
|
|
- [kind](https://kind.sigs.k8s.io/)
|
|
|
|
## Build and Run
|
|
|
|
Build descheduler.
|
|
```sh
|
|
cd $GOPATH/src/sigs.k8s.io
|
|
git clone https://github.com/kubernetes-sigs/descheduler.git
|
|
cd descheduler
|
|
make
|
|
```
|
|
|
|
Run descheduler.
|
|
```sh
|
|
./_output/bin/descheduler --kubeconfig <path to kubeconfig> --policy-config-file <path-to-policy-file> --v 1
|
|
```
|
|
|
|
View all CLI options.
|
|
```
|
|
./_output/bin/descheduler --help
|
|
```
|
|
|
|
## Run Tests
|
|
```
|
|
GOOS=linux make dev-image
|
|
kind create cluster --config hack/kind_config.yaml
|
|
kind load docker-image <image name>
|
|
kind get kubeconfig > /tmp/admin.conf
|
|
export KUBECONFIG=/tmp/admin.conf
|
|
make test-unit
|
|
make test-e2e
|
|
```
|
|
|
|
### Miscellaneous
|
|
See the [hack directory](https://github.com/kubernetes-sigs/descheduler/tree/master/hack) for additional tools and scripts used for developing the descheduler.
|