73 Commits
Author SHA1 Message Date
Amir Alavi dfc3166787 test(e2e): harden kind install and align lint tooling 2026-05-18 12:15:31 -04:00
Jan Chaloupka 91c1297a54 bump(golangci-lint): update and migrate
golangci-lint migrate to make .golangci.yaml v2 compatible
2026-02-17 21:53:53 +01:00
dongjiang a249c9baf0 update k8s to v1.33
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-04-30 22:07:02 +08:00
Sean Malloy 73fecfb7c4 Enable golangci-lint Verbose Output
The golangci-lint tool gets stuck for a variety of reasons when
running in Prow CI. Enabling verbose output in an attempt to make
debugging easier.

ref: https://golangci-lint.run/contributing/debug/
2024-12-06 22:44:28 -06:00
Sean Malloy be9e971cda Bump golangci-lint to 1.62.2 2024-12-04 16:02:41 -06:00
Jan Chaloupka cd408dd785 bump(golangci-lint)=v1.62.0 2024-11-14 15:03:03 +01:00
Amir Alavi 3bf40c830a chore: bump golangci-lint to latest 2024-09-09 14:53:15 -04:00
Amir Alavi 0cf1fc906e descheduler v0.31: update e2e test versions
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-28 23:04:59 -04:00
Jan Chaloupka b60a3fcfeb bump(github.com/golangci/golangci-lint)=v1.59.1 2024-07-19 12:54:25 +02:00
Amir Alavi 1dd21ba507 use jq to parse go version per pr feedback
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-06-08 18:25:56 -04:00
Amir Alavi 2ae79bee64 chore: reduce repetition of go versions
when we cut a new release of descheduler, we have to update the go version in multiple places
which presents an opportunity to miss updating one.

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-06-08 12:52:34 -04:00
Amir Alavi 2ac072e5da bump to to 1.22.3 to address CVE-2024-24788
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-05-19 20:27:28 -04:00
Amir Alavi 2f7544344b bump golangci lint to v1.58.1
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-05-18 10:23:38 -04:00
Julian LawrenceandGitHub 4bd348d9b7 bump to go 1.22.2 (#1374)
* bump to 1.22.2 for CVE-2023-45288

* updated gofmt update/verify versions

* doc update
2024-04-09 16:21:37 -07:00
Amir Alavi 96657caf60 v0.29.0: bump helm chart and update manifests/docs
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-01-02 09:34:34 -05:00
Amir Alavi 08356fc9fa bump golangci-lint 2023-12-21 16:47:40 -05:00
Amir Alavi 30dd78dcee k8s 1.28: update docs and go-version
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2023-08-22 20:46:27 -04:00
Harsha Narayana add9d6e897 enable Open telemetry support for descheduler
1. Enable OTEL configuration and base framework
2. update generated conversion spec
3. enable docker based conversion and deep copy generate
4. fix broken unit tests
2023-07-18 11:14:21 +05:30
Amir Alavi b16092f5a7 bump golangci for go 1.20 2023-03-25 10:52:59 -04:00
Lucas Severo AlvesandGitHub 463158f7dc v1alpha2 docs (#1049)
* v1alph2 docs

* remove internal toc (gh has this natively)

* fix typo and newlines

* name plugins with less confusing names

* add type column

* fix kv selector and nodeSelector desc

* group plugin types in a table

* link the deprecated doc

* warning signs
2023-02-13 18:45:30 -08:00
Harsha Narayana 87925e4457 enable auto generation of the documents 2023-01-24 08:55:52 +05:30
Amir AlaviandGitHub 1a37c0800e Revert "parallelize docker build for each arch" 2022-12-21 23:09:33 -05:00
Amir AlaviandAmir Alavi 1f682685ef parallelize docker build for archs
Signed-off-by:  Amir Alavi <amiralavi7@gmail.com>
2022-12-14 08:41:48 -05:00
Furkan 99868a41de run: gofumpt -w -extra .
Enable gofumpt in golangci

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
2022-11-07 09:11:27 +03:00
Amir Alavi e8fae9a3b7 remove pod security policy; additional policy/v1beta1 cleanup; use informers for descheduler unit tests
update go to 1.19 and helm kubernetes cluster to 1.25
bump -rc.0 to 1.25 GA
bump k8s utils library
bump golang-ci
use go 1.19 for helm github action
upgrade kubectl from 0.20 to 0.25

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2022-09-04 10:30:40 -04:00
Jan Chaloupka d1a9190c50 CONTAINER_ENGINE to override the default docker engine 2022-08-11 16:09:46 +02:00
Lucas Severo Alves ba85e794b2 introduce ct for local helm install test 2022-08-10 18:01:42 +02:00
Lucas Severo Alves e9c23fe42f add helm ct install. First step, see https://github.com/kubernetes-sigs/descheduler/pull/895#issuecomment-1203608848 2022-08-08 21:11:20 +02:00
Lucas Severo Alves 45e1cdbd01 WIP: improving helm setup 2022-06-14 17:08:00 +02:00
Mike Dame af45591c25 Fix version command to parse helm chart tags 2022-05-31 17:39:08 +00:00
Mike Dame ac4d576df8 Update e2e test versions 2022-05-12 14:16:53 +00:00
Amir Alavi e58686c142 fix: install golangci using from the golangci repo 2021-12-14 13:18:19 -05:00
Amir AlaviandAmir Alavi 7a043d31be Ensure helm is installed and move shebang to top of file 2021-07-26 16:16:20 -04:00
Pravar Agrawal df84dc4548 add verify script for defaulters gen 2021-06-30 09:41:43 +05:30
Kubernetes Prow RobotandGitHub 31fd097c0a Merge pull request #527 from pravarag/add-helm-test
Add helm test
2021-05-19 06:10:51 -07:00
BinacsLee fe8e17f72c fix staticcheck failure for pkg/descheduler/descheduler_test.go 2021-05-17 23:07:12 +08:00
Mike Dame 58408d710b Update error messages in verify scripts to be more informative 2021-04-30 16:56:16 -04:00
Pravar Agrawal 92cb1b23ed add helm-test configurations 2021-04-14 10:29:31 +05:30
Pravar Agrawal 4fce2ca2f1 add verify script for deep-copies gen 2021-04-08 22:51:24 +05:30
Pravar Agrawal a9099efc45 add verify scripts for conversions gen
Signed-off-by: Pravar Agrawal <pravaag1@in.ibm.com>
2021-04-08 09:56:32 +05:30
Sean Malloy 363f02710b Enable ARM32v7 Container Image Builds
Add ARM32v7 in addition to the currently supported architectures. This
will allow running descheduler on Raspberry Pi v3 devices.
2021-03-09 09:03:58 -06:00
Mike Dame 5df2a0c516 Add hack scripts and makefile targets 2021-03-08 14:39:08 -05:00
Jan Chaloupka 1c5b32763b Register metrics
New metrics:
- build_info: Build info about descheduler, including Go version, Descheduler version, Git SHA, Git branch
- pods_evicted: Number of successfully evicted pods, by the result, by the strategy, by the namespace
2021-03-03 16:15:09 +01:00
Jan Chaloupka 3bd031bbb3 Move build's versioning bits under pkg/version 2021-03-03 15:56:53 +01:00
Sean Malloy bf91e6790e Enable Multi-Arch Container Image Builds
Previous to this change official descheduler container images only
supported the AMD64 hardware architecture. This change enables
building official descheduler container images for multiple
architectures.

The initially supported architectures are AMD64 and ARM64.
2020-12-03 00:06:22 -06:00
Sean Malloy 8795fe6b90 Fix Version Output For Automated Container Builds
Prior to this change the output from the command "descheduler version"
when run using the official container images from k8s.gcr.io would
always output an empty string. See below for an example.

```
docker run k8s.gcr.io/descheduler/descheduler:v0.19.0 /bin/descheduler version
Descheduler version {Major: Minor: GitCommit: GitVersion: BuildDate:2020-09-01T16:43:23+0000 GoVersion:go1.15 Compiler:gc Platform:linux/amd64}
```

This change makes it possible to pass the descheduler version
information to the automated container image build process and
also makes it work for local builds too.
2020-11-20 23:25:22 -06:00
Mike Dame 301af7fd9c Add hack/verify-spelling.sh script and Makefile target 2020-10-22 10:20:53 -04:00
Sean Malloy 1fb3445692 Fix golangci-lint Failures For 1.30.0 Upgrade 2020-08-31 14:03:43 -05:00
Mike Dame 5970899029 Update version parsing to exclude helm-chart tags 2020-07-28 10:59:27 -04:00
Steve Hipwell 4507a90bb6 Add helm chart 2020-07-16 17:36:17 +01:00