pacoxu
75c19da843
correct messages in post start hook error handling
...
Signed-off-by: pacoxu <paco.xu@daocloud.io >
2021-05-20 15:14:47 +08:00
Odin Ugedal
d312ef7eb6
Set cgroups via opencontainer
...
This sets cgroup config via libcontainer to make sure we apply the
correct values to the systemd slices and scopes.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2021-05-19 23:52:01 -07:00
Kir Kolyshkin
f3cdfc488e
vendor: bump runc to rc95
...
runc rc95 contains a fix for CVE-2021-30465.
runc rc94 provides fixes and improvements.
One notable change is cgroup manager's Set now accept Resources rather
than Cgroup (see https://github.com/opencontainers/runc/pull/2906 ).
Modify the code accordingly.
Also update runc dependencies (as hinted by hack/lint-depdendencies.sh):
github.com/cilium/ebpf v0.5.0
github.com/containerd/console v1.0.2
github.com/coreos/go-systemd/v22 v22.3.1
github.com/godbus/dbus/v5 v5.0.4
github.com/moby/sys/mountinfo v0.4.1
golang.org/x/sys v0.0.0-20210426230700-d19ff857e887
github.com/google/go-cmp v0.5.4
github.com/kr/pretty v0.2.1
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2021-05-19 23:51:59 -07:00
Kir Kolyshkin
029e6b6e3a
pkg/kubelet/nodeshutdown/systemd: fix for dbus 5.0.4
...
dbus 5.0.4 adds StoreProperty method which needs to be implemented for
the mock.
Fixes the errors like
> pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go:88:9: cannot use f.fakeDBusObject (variable of type *fakeDBusObject) as dbus.BusObject value in return statement: missing method StoreProperty
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2021-05-19 23:51:57 -07:00
Giuseppe Scrivano
12abc3b7c9
kubelet: reuse manager
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2021-05-19 23:51:49 -07:00
Haowei Cai
1652e59c9b
mark ContainerImage.names as optional
...
kubelet is the only writer of v1.Node .status.images[].names. When an
image has neither RepoDigests nor RepoTags, the value gets stored in
etcd as null. Marking the field as optional can help JSON API clients
to avoid hitting serialization error when the returned status contains
null .status.images[].names.
2021-05-19 18:55:56 -07:00
Kubernetes Prow Robot
85674ae53d
Merge pull request #101685 from Jiawei0227/scaleio
...
Remove scaleio volume plugins from k8s codebase
2021-05-19 18:25:05 -07:00
Kubernetes Prow Robot
c115435adc
Merge pull request #101688 from liggitt/field-warnings
...
Add field-level warning plumbing and add pod spec warnings
2021-05-19 17:23:04 -07:00
kikimo
445b9c0762
minor tweak on numa node sorting algorithm
2021-05-20 08:21:20 +08:00
marosset
fd94032b21
Kubelet updates for Windows HostProcess Containers
2021-05-19 16:24:14 -07:00
marosset
93da0fd45d
API support for Windows host process containers
...
Co-authored-by: James Sturtevant <jstur@microsoft.com >
2021-05-19 16:24:13 -07:00
ravisantoshgudimetla
040e9c8b51
Promote DS MaxSurge to beta
2021-05-19 16:12:52 -04:00
Jiawei Wang
94db1e18ba
Remove scaleio from volume plugins
2021-05-19 10:35:21 -07:00
Mengxue Zhang
e64e34e029
specify pod name and hostname in indexed job
2021-05-19 15:30:13 +00:00
kikimo
ecfa609b71
simplify sorting comparator of numa nodes
2021-05-19 21:19:47 +08:00
Kubernetes Prow Robot
1d0e5ac583
Merge pull request #101916 from MartinKanters/101137-document-double-dollar-behavior
...
Added the behavior of double dollar signs in env, command and args
2021-05-19 02:20:50 -07:00
Kubernetes Prow Robot
9558d0c5c2
Merge pull request #101984 from ravisantoshgudimetla/fix-ds-units
...
[daemonSet]: Fix unit tests
2021-05-18 23:32:51 -07:00
Kubernetes Prow Robot
89e0b2d185
Merge pull request #99398 from tnqn/ds-update-retry
...
Fix DaemonSet status update retry
2021-05-18 22:32:50 -07:00
kikimo
84a4b40526
fix incompatible interface in fakeTopologyManagerWithHint
2021-05-19 10:12:12 +08:00
kikimo
7d30bfecd5
simplify sorting comparator of numa nodes
2021-05-19 10:07:37 +08:00
kikimo
893ebf3a1c
add a reusable fakeTopologyManagerWithHint{}
2021-05-19 10:07:37 +08:00
kikimo
2ef1f81076
Avoid undesirable allocation when device is associated with multiple NUMA Nodes
...
suppose there are two devices dev1 and dev2, each has NUMA Nodes associated as below:
dev1: numa1
dev2: numa1, numa2
and we request a device from numa2, currently filterByAffinity() will return
[], [dev1, dev2], [] if loop of available devices produce a sequence of [dev1, dev2],
that is is not desirable as what we truely expect is an allocation of dev2 from numa2.
2021-05-19 10:07:37 +08:00
Shiming Zhang
9c59e6c85f
After dbus restarts, make GracefulNodeShutdown work again
2021-05-19 10:05:38 +08:00
Martin Kanters
8a4cdb847c
Processed review suggestions
2021-05-18 21:11:45 +02:00
Kubernetes Prow Robot
708a9a1c8c
Merge pull request #98583 from damemi/internal-helpers-noderesources-registry
...
Scheduler: remove pkg/features dependency from NodeResources plugins
2021-05-18 11:35:05 -07:00
Jordan Liggitt
f669796dfd
Send pod spec warnings when creating or changing workload objects
2021-05-18 10:42:36 -04:00
Jordan Liggitt
ecdecafdc8
Add warning evaluation for pod specs
2021-05-18 10:42:36 -04:00
Jordan Liggitt
642e6168d1
Add metadata.generation support to all pod-spec-containing types
2021-05-18 10:42:36 -04:00
Jordan Liggitt
8c8a4cf3e4
Add WarningsOnCreate,WarningsOnUpdate
2021-05-18 10:42:36 -04:00
Jordan Liggitt
4b45d0d921
Revert "Merge pull request 101888 from kolyshkin/update-runc-rc94"
...
This reverts commit b1b06fe0a4 , reversing
changes made to 382a33986b .
2021-05-18 09:13:47 -04:00
Mike Dame
5a77ebe28b
Scheduler: remove pkg/features dependency from NodeResources plugins
2021-05-18 08:59:02 -04:00
Shiming Zhang
bbed9d27b0
Add the missing RLock
2021-05-18 17:27:27 +08:00
creydr
f38615fb9d
Change the users of IsQualifiedName to ValidateQualifiedName
2021-05-18 10:49:15 +02:00
caodonghui
a06ed1244e
fix error of setting negative value for containerLogMaxSize
2021-05-18 10:28:15 +08:00
Kubernetes Prow Robot
f576fa9164
Merge pull request #101230 from lojies/fixrbacvalidation
...
code cleanup:fix broken link in validation
2021-05-17 16:15:30 -07:00
Kubernetes Prow Robot
3e588be763
Merge pull request #101712 from SergeyKanzhelev/disableAcceleratorUsageMetricsOnContainerd
...
disable collecting of accelerator metrics in cAdvisor
2021-05-17 13:39:51 -07:00
Kubernetes Prow Robot
003dd87cff
Merge pull request #100565 from lack/cpuset-validation
...
cpuset parsing:Fix more edge cases and add more unit tests
2021-05-17 13:39:30 -07:00
Kubernetes Prow Robot
b7b8f8b65c
Merge pull request #102066 from alculquicondor/api_rev
...
Use aliases in sig apps and scheduling APIs OWNERS
2021-05-17 12:17:30 -07:00
Aldo Culquicondor
7c50cd762a
Use aliases in sig apps and scheduling APIs OWNERS
...
Add alculquicondor to sig-scheduling-api-reviewers and sig-apps-api-reviewers
2021-05-17 17:56:20 +00:00
Kubernetes Prow Robot
b1b06fe0a4
Merge pull request #101888 from kolyshkin/update-runc-rc94
...
vendor: bump runc to rc94
2021-05-17 09:43:30 -07:00
Abu Kashem
f9ee64007e
apf: always create missing bootstrap configuration object(s)
2021-05-17 12:08:39 -04:00
Kubernetes Prow Robot
1d38084930
Merge pull request #97796 from JornShen/proxier_ipvs_structured_logging
...
migrate proxy/ipvs/proxier.go logs to structured logging
2021-05-16 20:05:59 -07:00
jornshen
9c6637e231
migrate proxy/ipvs/proxier.go logs to structured logging
2021-05-17 10:02:22 +08:00
Kubernetes Prow Robot
d01a5cae9c
Merge pull request #97965 from chymy/fix-spell
...
Fix some case issue
2021-05-16 06:31:59 -07:00
Kubernetes Prow Robot
1ff18a9c43
Merge pull request #101964 from chendave/cleanup_defaults_test
...
cleanup redundant testcases
2021-05-14 12:53:59 -07:00
Kubernetes Prow Robot
49a60be8ab
Merge pull request #101496 from ahg-g/ahg-nss-beta
...
Graduate pod affinity NamespaceSelector to Beta
2021-05-14 08:48:04 -07:00
Kevin Klues
67c92a5cd4
Refactor / simplify logic for CPU assignment algorithm in CPUManager
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2021-05-14 14:53:06 +00:00
Abdullah Gharaibeh
e49d1144d5
graduate pod affinity NamespaceSelector to Beta
2021-05-14 10:44:57 -04:00
Dave Chen
1e106c4650
cleanup redundant testcases
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2021-05-14 15:30:09 +08:00
jornshen
6c63ef147c
extract same code of es and esm to pkg
...
migrate files:
endpointset.go
endpointslice_tracker.go
endpointslice_tracker_test.go
errors.go
2021-05-14 15:15:35 +08:00