Vishwanath Sangale
395a6d89f6
Updated symbol 'framework.GetMasterHost' to not use word 'master'
2020-09-29 21:05:39 -07:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
Kenichi Omichi
e1f4d5b110
Add nodeHasControlPlanePods()
...
DeprecatedMightBeMasterNode() has been marked as deprecated and we need to
find alternative way for callers of the function.
In NewResourceUsageGatherer(), the function was called for distinguishing
the specified pods are running on master nodes, and the gatherer gathers
those pods' resource usage.
This adds nodeHasControlPlanePods() to gistinguish the specified pods
are running on nodes which are operating control plane pods (kube-scheduler
and kube-controller-manager) and replace callers of DeprecatedMightBeMasterNode()
with this new function as better way.
2020-07-07 18:19:22 +00:00
Andrew Sy Kim
f0f6c6fc81
e2e/framework: remove imports to pkg/master/ports
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 17:42:43 -04:00
Shukun
7f9e228bd7
Fix impossible condition in test/e2e/framework/resource_usage_gatherer.go
2020-02-13 16:13:19 +09:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
Mike Danese
968adfa993
cleanup req.Context() and ResponseWrapper
2020-01-29 08:50:45 -08:00
Mike Danese
d55d6175f8
refactor
2020-01-29 08:50:45 -08:00
tanjunchen
69461d26d8
move function GetKubemarkMasterComponentResoureUsage
2020-01-16 12:35:39 +08:00
clarklee92
dfa069a4bd
Use log functions of core framework on test/e2e/framework/kubelet
...
1. move GetOneTimeResourceUsageOnNode() from test/e2e/framework/kubelet/stats.go to getOneTimeResourceUsageOnNode() in test/e2e/framework/resource_usage_gatherer.go
2. copy GetKubeletPods() from test/e2e/framework/kubelet/kubelet_pods.go to getKubeletPods() in test/e2e/framework/util.go
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-03 00:41:22 +08:00
Boqin Qin
24dcd8eaac
framework: Fix a goroutine leak bug in resource_usage_gatherer.go
2019-10-15 16:09:31 -04:00
Kenichi Omichi
6499f93266
Use log functions of core framework on [r-u]
...
This makes sub packages of e2e test framework to use log functions
of core framework instead for avoiding circular dependencies.
2019-09-26 18:17:10 +00:00
Kenichi Omichi
7c23ba1b34
Copy PrettyPrintJSON to core framework
...
PrettyPrintJSON is most used e2emetrics function and that doesn't seem
specific for metrics. The implementation itself is generic, so it is
nice to move it to core framework for avoiding circular dependency.
2019-09-23 18:10:50 +00:00
Clayton Coleman
a49a554211
Move the IsMasterNode function to tests and mark it Deprecated
...
A future change will stop using this signal and instead use a
label selector passed on creation.
2019-08-28 11:17:27 -04:00
Kenichi Omichi
de66a736e8
Reduce indents of resource_usage_gatherer
...
test/e2e/framework/resource_usage_gatherer contained much indents
and they can be reduced with `continue` for code readability.
2019-08-07 01:23:18 +00:00
WanLinghao
92b0310cc5
Refactor and clean up e2e framework utils, this patch handles test/e2e/framework/kubelet_stats.go file
2019-08-01 17:40:02 +08:00
WanLinghao
4c394ddf3b
Refactor and clean up e2e framework utils, this patch handles test/e2e/framework/perf_util.go
2019-07-25 09:41:00 +08:00
alejandrox1
348fd0805e
Refactored metrics-related functions from framework/metrics_util.go
...
This a refactoring of framework/metrics_utils.go into framework/metrics.
Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-07-08 19:35:10 -04:00
SataQiu
d3a902ff5b
e2e refactor: cleanup Logf form framework/util
2019-05-24 16:39:46 +08:00
Akihito INOH
c8f933c591
Fix golint failures of e2e/framework/r*.go
...
This fixes golint failures of the following files:
- test/e2e/framework/resource_usage_gatherer.go
- test/e2e/framework/rs_util.go
2019-04-04 13:15:44 +09:00
Chris O'Haver
402266afde
add dns pod memory constraint
2018-10-18 10:35:30 -04:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
Chris O'Haver
9060fc6e6d
add opt to track dns pods
2018-10-01 10:00:16 -04:00
Francois Tur
5c20fff19d
Revert "Add DNS pod resource monitoring option"
2018-09-19 14:54:29 -04:00
Chris O'Haver
af0c1d2a4c
Add dns pod monitoring option
2018-09-17 12:52:05 -04:00
Rohit Agarwal
d191c57cad
Add e2e tests for GPU monitoring.
2018-01-26 15:30:55 -08:00
Shyam Jeedigunta
fce28995e1
Control logs verbosity in resource gatherer
2017-11-17 13:03:32 +01:00
Shyam Jeedigunta
1ae56bbe2b
Set resource-gathering and probe-duration period for kubemark
2017-11-16 12:02:56 +01:00
Jiaying Zhang
ae36f8ee95
Extend test/e2e/scheduling/nvidia-gpus.go to track resource usage of
...
installer and device plugin containers.
To support this, exports certain functions and fields in
framework/resource_usage_gatherer.go so that it can be used in any
e2e test to track any specified pod resource usage with the specified
probe interval and duration.
2017-11-13 16:24:41 -08:00
Kevin
4c8539cece
use core client with explicit version globally
2017-10-27 15:48:32 +08:00
Eric Paris
5e22e149c5
Fix usage a make(struct, len()) followed by append()
...
A couple of places in the code we allocate with make() but then use
append(), instead of copy() or direct assignment. This results in a
slice with len() zero elements at the front followed by the expected
data. The correct form for such usage is `make(struct, 0, len())`.
I found these by running:
```
$ git grep -EI -A7 'make\([^,]*, len\(' | grep 'append(' -B7 | grep -v vendor
```
And then manually looking through the results. I'm sure something better
could exist.
2017-07-31 14:43:29 -04:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
gmarek
be987ac247
Allow summaries to be printed out to ReportDir instead of stdout
2017-04-19 16:17:36 +02:00
gmarek
fbeac32a70
Fix resource gatherer
2017-04-14 08:30:07 +02:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
NickrenREN
a12dea14e0
fix redundant alias clientset
2017-01-12 10:21:05 +08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
gmarek
1b1a4aef6a
Fix resource gatherer for kubemark
2016-12-13 14:59:22 +01:00
gmarek
3361576f3b
Make resource gatherer print the data about resource usage in case of failure
2016-12-09 11:55:40 +01:00
Chao Xu
a55c71db4d
test/e2e
2016-11-23 15:53:09 -08:00
Jan Chaloupka
4fde09d308
Replace client with clientset in code
2016-10-23 22:00:35 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
gmarek
eb48166d5b
Fix resource-gatherer that never gathered resources from non-master machines
2016-05-17 17:53:18 +02:00
gmarek
0848ad2201
Prevent division by 0 error in resource-gatherer
2016-05-17 14:35:48 +02:00
gmarek
74773827ba
Add an option for resource-gatherer to look only on master node
2016-05-13 09:53:38 +02:00
gmarek
78331db78d
Fix units in kubemark resource gatherer
2016-05-05 14:10:21 +02:00
gmarek
0071a8627c
Make resource gatherer work for Kubemark
2016-04-15 20:12:26 +02:00
Tim St. Clair
b0d3f32e88
Update test/e2e for test/e2e/framework refactoring
2016-04-13 10:50:17 -07:00
Tim St. Clair
a55b4f2e77
Move test/e2e framework & utility code to test/e2e/framework
2016-04-13 10:50:17 -07:00