Mike Dame
37124e6e45
Remove redundant tests from Travis CI
...
These tests are now covered by k8s test-infra prow tests.
2020-06-03 14:11:08 -04:00
Kubernetes Prow Robot
bd412bf87f
Merge pull request #300 from damemi/refactor-is-evictable
...
Add more verbose logging to IsEvictable checks
2020-05-29 10:03:16 -07:00
Kubernetes Prow Robot
6f9b31f568
Merge pull request #308 from damemi/fix-lint-for-ci
...
Download golangci-lint to _output/bin directory
2020-05-29 09:57:15 -07:00
Mike Dame
c858740c4f
Run golangci-lint from GOPATH
2020-05-29 12:48:42 -04:00
Kubernetes Prow Robot
bfefe634a1
Merge pull request #307 from damemi/make-verify
...
Add parent make verify target
2020-05-29 08:01:16 -07:00
Mike Dame
7b7b9e1cd7
Add parent make verify target
2020-05-29 10:23:38 -04:00
Mike Dame
0a4b8b0a25
Add more verbose logging to IsEvictable checks
2020-05-29 10:20:14 -04:00
Kubernetes Prow Robot
f28183dcbe
Merge pull request #306 from ingvagabund/make-Params-a-pointer-II
...
Add missing address of api.StrategyParameters
2020-05-29 05:53:16 -07:00
Jan Chaloupka
abdf79454f
Add missing address of api.StrategyParameters
...
https://github.com/kubernetes-sigs/descheduler/pull/285 got merged before re-running the unit tests.
2020-05-29 13:34:57 +02:00
Kubernetes Prow Robot
46b570b71d
Merge pull request #296 from ingvagabund/make-Params-a-pointer
...
Make DeschedulerStrategy.Params a pointer
2020-05-28 22:53:15 -07:00
Kubernetes Prow Robot
616a9b5f6b
Merge pull request #285 from lixiang233/Ft_change_lowUtilization_break
...
Change break condition and thresholds validation for lowUtilization
2020-05-28 07:36:02 -07:00
Kubernetes Prow Robot
003a4cdc2b
Merge pull request #302 from lixiang233/clean_up_strategy_enable_check
...
Clean up code in LowNodeUtilization
2020-05-28 07:16:02 -07:00
Kubernetes Prow Robot
54ea05d8bb
Merge pull request #299 from damemi/node-affinity-logs
...
Standardize node affinity strategy logs
2020-05-28 01:52:02 -07:00
lixiang
d0eea0cabb
Clean up code in LowNodeUtilization
2020-05-28 10:35:46 +08:00
Mike Dame
f0297dfe03
Standardize node affinity strategy logs
2020-05-27 16:52:16 -04:00
Kubernetes Prow Robot
ef1f36f8e4
Merge pull request #297 from ingvagabund/add-verify-gofmt
...
Add verify-gofmt make target
2020-05-27 07:02:40 -07:00
Jan Chaloupka
a733c95dcc
Add verify-gofmt and verify-vendor make target
...
So e.g. CI can run 'make verify-gofmt' instead of ./hack/verify-gofmt in case the script location changes.
2020-05-27 15:08:20 +02:00
Jan Chaloupka
5a81a0661b
Make DeschedulerStrategy.Params a pointer
...
To avoid empty params fields when serializing:
RemoveDuplicates:
enabled: true
params: {}
RemovePodsHavingTooManyRestarts:
enabled: true
params:
podsHavingTooManyRestarts: {}
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
params: {}
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
RemovePodsViolatingNodeTaints:
enabled: true
params: {}
2020-05-27 10:31:31 +02:00
Kubernetes Prow Robot
83e04960af
Merge pull request #288 from KohlsTechnology/update-support-matrix
...
Update Compatibility Matrix in README
2020-05-26 06:37:12 -07:00
lixiang
2a8dc69cbb
Stop condition and config validation change for lowUtilization
...
1.Set default CPU/Mem/Pods percentage of thresholds to 100
2.Stop evicting pods if any resource ran out
3.Add thresholds verification method and limit resource percentage within [0, 100]
4.Change testcases and readme
2020-05-25 19:03:37 +08:00
Kubernetes Prow Robot
5d82d08af3
Merge pull request #291 from KohlsTechnology/update-releasedocs
...
Add URL For Viewing Staging Registry
2020-05-22 09:55:11 -07:00
Sean Malloy
c265825166
Add URL For Viewing Staging Registry
...
This newly documented URL can be used to view the descheduler staging
registry in a web browser. This is easier to browse if the gcloud
command is not available.
2020-05-22 11:33:45 -05:00
Kubernetes Prow Robot
ed0126fb63
Merge pull request #290 from KohlsTechnology/bump-install-manifests
...
Update Install Manifests For Release v0.18.0
2020-05-22 07:08:38 -07:00
Sean Malloy
8c7267b379
Update Install Manifests For Release v0.18.0
2020-05-21 22:54:54 -05:00
Kubernetes Prow Robot
d85ce22975
Merge pull request #289 from KohlsTechnology/update-release-docs
...
Update Release Guide
v0.18.0
2020-05-20 11:46:19 -07:00
Kubernetes Prow Robot
a9091a1e37
Merge pull request #287 from ingvagabund/evict-pod-mention-dry-run-if-set
...
Mention pod eviction is in dry mode when set
2020-05-20 11:44:19 -07:00
Sean Malloy
d3b0ac8e06
Update Release Guide
...
Starting with descheduler v0.18 a release branch will be created for
each descheduler minor release. The release guide has been updated with
the steps to create release branches.
2020-05-20 11:10:42 -05:00
Sean Malloy
435674fb44
Update Compatibility Matrix in README
...
The matrix has been updated with the soon the be released v0.18
details. Also, clarified the descheduler and k8s version compatibility
requirements and recommendations.
2020-05-20 10:55:57 -05:00
Jan Chaloupka
eacbae72fd
Mention pod eviction is in dry mode when set
...
Indicate whether a pod is only virtually evicted so there's no confusion
with the real eviction.
2020-05-20 10:40:58 +02:00
Kubernetes Prow Robot
34550d4b7c
Merge pull request #275 from damemi/image-in-duplicates
...
Consider pod image in duplicates strategy
2020-05-15 06:51:38 -07:00
Mike Dame
c6ff87dbd6
Consider pod image in duplicates strategy
...
This increases the specificity of the RemoveDuplicates strategy by
removing pods which not only have the same owner, but who also
must have the same list of container images. This also adds a
parameter, `ExcludeOwnerKinds` to the RemoveDuplicates strategy
which accepts a list of Kinds. If a pod has any of these Kinds as
an owner, that pod is not considered for eviction.
2020-05-15 09:37:09 -04:00
Kubernetes Prow Robot
04efe65f90
Merge pull request #279 from KohlsTechnology/eviction-logs
...
Add Additional Details To Pod Eviction Log Messages
2020-05-14 07:20:22 -07:00
Sean Malloy
55afde6251
Remove line break in log message from PodLifeTime strategy
2020-05-14 00:36:52 -05:00
Sean Malloy
7039b6c8aa
Refactor function EvictPod to only return an error
...
The EvictPod function previously returned a bool and an error. The
function now only returns an error. Callers can check for failure by
testing if the returned error is not nil. This aligns the EvictPod
function with idiomatic Go best practices.
Also, the function name has been changed from EvictPod to evictPod
because it is not used outside the evictions package.
2020-05-14 00:11:54 -05:00
Sean Malloy
cff984261e
Log an error when EvictPod method returns a non-nil error
...
End users should be able to see the detailed error from the EvictPod
method when it fails. Updates all strategies to log the error. The
PodLifeTime strategy already logs this error.
2020-05-13 23:36:32 -05:00
Sean Malloy
4819ab9c69
Add namespace to pod eviction log messages
...
In multi-tenant environments it is useful to know which namespace a pod
was evicted from. Therefore log the namespace when evicting pods.
Also, do not log a nil error when successfully evicting pods.
2020-05-13 23:28:25 -05:00
Kubernetes Prow Robot
25336da708
Merge pull request #281 from KohlsTechnology/update-travis-ci
...
Update Travis CI build matrix with latest k8s point releases
2020-05-13 08:20:26 -07:00
Sean Malloy
4941f6a16b
Update Travis CI build matrix with latest k8s point releases
2020-05-12 22:38:23 -05:00
Kubernetes Prow Robot
d7e93058d4
Merge pull request #280 from damemi/k8s-1.18
...
Update to k8s 1.18.2 dependencies
2020-05-12 13:40:21 -07:00
Mike Dame
c20a595370
Update travis.yml with new k8s version and updated kind version
2020-05-12 15:01:25 -04:00
Mike Dame
eec1104d6e
React to 1.18 by adding contexts to client calls
2020-05-12 15:01:25 -04:00
Mike Dame
741b35edf5
Update to k8s 1.18.2 dependencies
2020-05-12 14:07:31 -04:00
Kubernetes Prow Robot
c01cfcf3b6
Merge pull request #274 from KohlsTechnology/pod-lifetime-strategy
...
Add New PodLifeTime Strategy
2020-05-08 07:29:42 -07:00
Sean Malloy
643cd472ef
Add initial production use cases section to user guide
2020-05-08 09:02:24 -05:00
Sean Malloy
668d727fc2
Add VS Code File To .gitignore
2020-05-07 23:10:48 -05:00
Sean Malloy
423ee35846
Add New PodLifeTime Strategy
...
The new PodLifeTime descheduler strategy can be used to evict pods that
were created more than the configured number of seconds ago.
In the below example pods created more than 24 hours ago will be evicted.
````
apiVersion: "descheduler/v1alpha1"
kind: "DeschedulerPolicy"
strategies:
"PodLifeTime":
enabled: true
params:
maxPodLifeTimeSeconds: 86400
````
2020-05-07 23:10:36 -05:00
Kubernetes Prow Robot
31c7855212
Merge pull request #278 from lixiang233/fix_readme
...
Fix readme
2020-05-07 12:19:43 -07:00
Kubernetes Prow Robot
211f3942b6
Merge pull request #276 from damemi/toomanyrestarts-pointer
...
Switch PodsHavingTooManyRestarts params to pointer
2020-05-07 12:17:42 -07:00
Kubernetes Prow Robot
beae282735
Merge pull request #277 from damemi/damemi-approvers
...
Add damemi to approvers
2020-05-07 12:15:42 -07:00
lixiang
635348efb9
Fix readme
2020-05-07 11:47:32 +08:00