Commit Graph

104137 Commits

Author SHA1 Message Date
CatherineF-dev
03f7a8d7d2 add local registry.Reset() 2021-11-12 03:50:08 +00:00
CatherineF-dev
744785ee40 remove prometheus.DefaultRegisterer 2021-11-12 02:17:28 +00:00
CatherineF-dev
8290400e9c format 2021-11-10 03:29:13 +00:00
CatherineF-dev
ef0b2dfbf4 Fix metrics AlreadyRegisteredError on TestRecordOperation and TestGetHistogramVecFromGatherer unit test 2021-11-10 03:23:54 +00:00
Kubernetes Prow Robot
55e1d2f9a7
Merge pull request #102015 from klueska/upstream-add-numa-to-cpu-assignment-algo
Add support for consuming whole NUMA nodes in CPUManager CPU assignments
2021-10-15 05:44:54 -07:00
Francesco Romani
4bae656835 cpumanager: test NUMA node support for CPU assign (2)
This batch of tests adds a fake topology on which each numa node
has multiple sockets. We didn't find yet a real HW topology in the wild
like this, but we need one to fully exercise the code.

So, until we find a HW topology, we add a fake one flipping
the NUMA/socket config of the existing xeon dual gold 6320.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-15 10:29:21 +00:00
Francesco Romani
547996f3f6 cpumanager: test NUMA node support for CPU assign (1)
This batch of tests adds a real topology on which each physical socket
has multiple NUMA zones. Taken by a real dual xeon 6320 gold.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-15 10:29:21 +00:00
Francesco Romani
f6ccc4426a cpumanager: test: use proper subtests
The exisiting unit tests where performing subtests without
actually using the full features of the testing package
(https://pkg.go.dev/testing#hdr-Subtests_and_Sub_benchmarks)

Update them with fairly minimal changes. The patch is deceptively
large because we need to move the code inside a new block.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-15 10:29:21 +00:00
Francesco Romani
15caa134b2 cpumanager: topology: use rich cmp package
User the `cmp.Diff` package in the unit tests, moving away from
`reflect.DeepEqual`. This gives us a clearer picture of the differences
when the tests fail.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-15 10:29:21 +00:00
Kevin Klues
aff54a0914 Abstract out whether NUMA or Sockets come first in the memory hierarchy
This allows us to get rid of the check for determining which one is higher all
throughout the code. Now we just check once and instantiate an interface of the
appropriate type that makes sure the ordering in the hierarchy is preserved
through the appropriate calls.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-10-15 10:29:15 +00:00
Kevin Klues
17c7e86c6d Add NUMA support to the CPU assignment algorithm in the CPUManager
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-10-15 08:35:59 +00:00
Kubernetes Prow Robot
655c04d9f5
Merge pull request #105673 from andyzhangx/validate-windows-disk-num
support more than 100 disk mounts on Windows
2021-10-14 20:08:55 -07:00
Kubernetes Prow Robot
fe62fcc9b4
Merge pull request #105516 from fromanirh/e2e-kubelet-restart-improvements
e2e: node: kubelet restart improvements
2021-10-14 17:58:54 -07:00
Kubernetes Prow Robot
c2bff66b95
Merge pull request #104783 from YuviGold/fix-shellcheck-output-streams
Fix shellcheck output streams
2021-10-14 12:58:55 -07:00
Kubernetes Prow Robot
30a32a39a4
Merge pull request #105136 from astraw99/fix-csi-mount-log
Fix CSI `mounter.TearDownAt` log msg
2021-10-14 11:54:55 -07:00
Kubernetes Prow Robot
1f7ff80387
Merge pull request #105679 from cpanato/publishbot
staging/publishing: Set go1.16 version to go1.16.9
2021-10-14 10:50:20 -07:00
Kubernetes Prow Robot
0bfa37dfcc
Merge pull request #105676 from alculquicondor/job-name
Fix name for Pods of NonIndexed Jobs
2021-10-14 10:50:12 -07:00
Kubernetes Prow Robot
fb2556cb34
Merge pull request #105670 from pohly/restore-volume-life-cycle-check
e2e: restore volume lifecycle check for most tests, II
2021-10-14 10:50:04 -07:00
Kubernetes Prow Robot
3f85ed46db
Merge pull request #105649 from navist2020/kubeadm/kubeconfig/cfgPath
kubeadm/kubeconfig:validate flag --config to make sure it is not empty
2021-10-14 10:49:56 -07:00
Kubernetes Prow Robot
57aaa70b2c
Merge pull request #105596 from pacoxu/subresource-remove
test fix: check correct subresource patch path
2021-10-14 10:49:48 -07:00
Kubernetes Prow Robot
7c80381d98
Merge pull request #105485 from liggitt/podsecurity-limit
PodSecurity: limit webhook admission input
2021-10-14 10:49:36 -07:00
Shivanshu Raj Shrivastava
7d9a6d1de6
Migrated pkg/proxy/ipvs to structured logging (#104932)
* migrated ipset.go

* migrated graceful_termination.go

* fixed vstring

* fixed ip set entry, made it consistent

* fixed rs logging

* resolving review comments for key graceful_termination.go

* refactoring ipset.go

* included review changes
2021-10-14 09:47:29 -07:00
Shivanshu Raj Shrivastava
daf5af2917
Migrated pkg/proxy to structured logging (#104891)
* migrated service.go to structured logging

* fixing capital letter in starting

* migrated topology.go

* migrated endpointslicecache.go

* migrated endpoints.go

* nit typo

* nit plural to singular

* fixed format

* code formatting

* resolving review comment for key ipFamily

* resolving review comment for key endpoints.go

* code formating

* Converted Warningf to ErrorS, wherever applicable

* included review changes

* included review changes
2021-10-14 09:47:17 -07:00
Kubernetes Prow Robot
dea052ceba
Merge pull request #105479 from ahg-g/ahg-mutable
Allow updating scheduling directives of suspended jobs that never started
2021-10-14 08:09:18 -07:00
Aldo Culquicondor
4ef9d18abe Fix name for Pods of NonIndexed Jobs
Change-Id: I0ea4685a82f4cdec0caab362d52144476652f95a
2021-10-14 10:55:46 -04:00
Carlos Panato
5ca8ae9f35
staging/publishing: Set go1.16 version to go1.16.9
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-10-14 16:23:31 +02:00
Abdullah Gharaibeh
335817cbce Allow updating node affinity, selector and tolerations for suspended jobs that never started 2021-10-14 10:04:47 -04:00
Kubernetes Prow Robot
3aafe75698
Merge pull request #105461 from damemi/wire-contexts-autoscaling
Wire contexts to Autoscaling controllers
2021-10-14 06:59:33 -07:00
Kubernetes Prow Robot
f27e4714ba
Merge pull request #105377 from damemi/wire-contexts-apps
Wire contexts to Apps controllers
2021-10-14 06:59:19 -07:00
Yuval Goldberg
bcb5d29e90 Fix shellcheck output streams
Resolves https://github.com/kubernetes/kubernetes/issues/102975

shellcheck errors are printed to stdout by default, hence they need to be redirected
to stderr in order to be well parsed for Junit representation by `juLog` function.
2021-10-14 15:53:47 +03:00
Kubernetes Prow Robot
baaa53db64
Merge pull request #105211 from xiaopingrubyist/fix-pv-controller-claim-cache-issue
fix:claim cached in pvcontroller is not the newest may cause unexpected issue
2021-10-14 05:47:18 -07:00
andyzhangx
a6253e6e2c support more than 100 disk mounts on Windows 2021-10-14 12:42:55 +00:00
Kubernetes Prow Robot
d09ce7be1c
Merge pull request #105563 from mengjiao-liu/go1172
[go1.17] Update to go1.17.2
2021-10-14 03:25:19 -07:00
Patrick Ohly
5378b4d220 e2e: restore volume lifecycle check for most tests, II
Besides "subPath should unmount if pod is gracefully deleted while kubelet is
down" we also need a special case for "subPath should unmount if pod is force
deleted while kubelet is down".

This fixes a test failure in https://testgrid.k8s.io/sig-storage-kubernetes#gce-serial
2021-10-14 10:59:03 +02:00
Mengjiao Liu
19e8852154 [go1.17] Update to go1.17.2 2021-10-14 16:15:51 +08:00
Kubernetes Prow Robot
548e37278c
Merge pull request #105313 from giuseppe/fix-flaky-pagefaults-summary-test
test, cgroupv2: adjust pagefaults test
2021-10-14 00:13:30 -07:00
Kubernetes Prow Robot
a8bda48abe
Merge pull request #105474 from mauriciopoppe/readd-volume-subpath-flag
Add VolumeSubpath feature gate back in preparation for its removal
2021-10-13 21:55:28 -07:00
Kubernetes Prow Robot
68f404b38f
Merge pull request #105636 from pohly/generic-ephemeral-volume-metrics-tests
storage e2e: check metrics also for generic ephemeral volumes
2021-10-13 20:27:27 -07:00
navist2020
cc2802d9bb validate flag cfgPath to make sure it is not empty 2021-10-14 11:05:06 +08:00
astraw99
5e789f157c fix CSI mount log 2021-10-14 10:27:50 +08:00
Kubernetes Prow Robot
894ceb63d0
Merge pull request #105003 from swatisehgal/getallocatable-to-beta
podresource-api: getAllocatableResources to Beta
2021-10-13 17:43:27 -07:00
Mike Dame
41fcb95f2f Wire contexts to Apps controllers 2021-10-13 16:32:13 -04:00
Kubernetes Prow Robot
585c88eb43
Merge pull request #105065 from h4ghhh/metrics_disable
parameter 'disabled-metrics' is invalid
2021-10-13 12:21:55 -07:00
Kubernetes Prow Robot
92f67c6347
Merge pull request #105660 from tkashem/apf-debug
apf: update queue debug to include queue sum stats and next dispatch R in seat-seconds
2021-10-13 08:53:50 -07:00
Abu Kashem
edf657a33a
apf: include seats in use in queue dump 2021-10-13 10:39:37 -04:00
Abu Kashem
3ef5752edf
apf: change QueueDump to use SeatSeconds 2021-10-13 10:22:41 -04:00
Abu Kashem
87c7401eb8
apf: include queue sum stats in debug 2021-10-13 10:14:30 -04:00
torubylist
f28a8d7f2b fix:cached claim is not the newest will cause unexpected issue 2021-10-13 20:03:00 +08:00
Kubernetes Prow Robot
f0e80a6f10
Merge pull request #105647 from wojtek-t/disable_pf_for_watches
Disable P&F for watch requests
2021-10-13 02:53:50 -07:00
wojtekt
763e6d1dbb Disable P&F for watch requests 2021-10-13 10:50:47 +02:00