Commit Graph

116117 Commits

Author SHA1 Message Date
Evan Lezar
b57c7e2fe4 Add CDI devices to device plugin API
This change adds CDI device IDs to the ContainerAllocateResponse in the
device plugin API. This allows a device plugin to specify CDI devices
by their unique fully-qualified CDI device names using the related field
in the CRI specification.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-07-17 11:53:09 +02:00
Evan Lezar
cd14e97ea8 Add a builder for ContainerAllocateResponse objects
This chagne introduces a helper to construct ContainerAllocateResponse instances.
Test cases are updated to use a new constructor accepting functional options
allowing the response contents to be set based on the test requirements.

This can then be extended to also test additional fields in the device plugin API
such as annotations which are not currently covered or new fields.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-07-11 11:48:26 +02:00
Evan Lezar
db2a1edbdd Generate empty cdi annotations
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-07-11 11:48:24 +02:00
Evan Lezar
f0e3c32fe5 Move CDI annotation code to utils package
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-07-11 11:47:53 +02:00
Kubernetes Prow Robot
2d742bb8ab
Merge pull request #118045 from Nordix/annotate-fix/adil
Changing annotate PrintFlags from annotate to annotated
2023-05-16 06:07:35 -07:00
adil ghaffar
d6e488b998
Changing annotate PrintFlags from annotate to annotated 2023-05-16 14:39:15 +03:00
Kubernetes Prow Robot
31d0821ab4
Merge pull request #117995 from liggitt/discovery-tests
Add tests to capture discovery output
2023-05-16 01:41:43 -07:00
Kubernetes Prow Robot
03b2e84183
Merge pull request #113209 from luozhiwenn/personal/etc-host
ensure etc-host file permission is 644 whatever umask is
2023-05-16 01:41:35 -07:00
Kubernetes Prow Robot
a31899a6fd
Merge pull request #118030 from pohly/dra-kind-cluster-fix
test/e2e/dra: fix kind cluster creation
2023-05-16 00:41:36 -07:00
Patrick Ohly
073b4cf66a test/e2e/dra: fix kind cluster creation
The nightly containerd binary no longer works in the current kind base images:

   May 15 16:32:31 kind-worker containerd[222]: /usr/local/bin/containerd:
   /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by
   /usr/local/bin/containerd)

kind now builds containerd directly with the base images. The official base
images still use containerd 1.6, so we have to use a special base image that
was prepared for this purpose.

Because the containerd config can be patched through kind, we don't need to
modify the generated node image anymore.
2023-05-16 08:11:43 +02:00
Kubernetes Prow Robot
70033bf843
Merge pull request #114606 from tuunit/bugfix-case-sensitive-headers
fix: remove case sensitive checking of probe headers
2023-05-15 22:05:36 -07:00
Kubernetes Prow Robot
bc41f37e85
Merge pull request #118023 from liggitt/unwanted-deps
Update unwanted deps
2023-05-15 18:33:14 -07:00
Jordan Liggitt
517c5b75c5
Update unwanted deps 2023-05-15 20:35:58 -04:00
Kubernetes Prow Robot
ffb4172ff1
Merge pull request #115754 from linxiulei/sched
Start informers after leader election
2023-05-15 15:41:36 -07:00
Kubernetes Prow Robot
ea4cc84cf7
Merge pull request #118014 from liggitt/mapstructure
Update kube-openapi, drop mapstructure
2023-05-15 14:41:35 -07:00
Jordan Liggitt
d6d1dbdd82
Update kube-openapi, drop mapstructure 2023-05-15 16:42:00 -04:00
Kubernetes Prow Robot
8411524daa
Merge pull request #117573 from pacoxu/use-allowlist
user --prune-allowlist in kube-addons.sh
2023-05-15 13:21:58 -07:00
Kubernetes Prow Robot
4d4d92808b
Merge pull request #117544 from ruquanzhao/removeUndefinedConvert
fix undefined convertion
2023-05-15 13:21:47 -07:00
Kubernetes Prow Robot
38652a8c31
Merge pull request #116531 from my-git9/ut-conditions
[UT] add ut for pkg/client/conditions
2023-05-15 13:21:35 -07:00
Eric Lin
a52dcd0d9f Add DelayCacheUntilActive option to start informers after leader election
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.

Signed-off-by: Eric Lin <exlin@google.com>
2023-05-15 19:52:04 +00:00
Kubernetes Prow Robot
f84ff3d052
Merge pull request #117813 from pohly/scheduler-perf-test-runtime
scheduler-perf: measure workload runtime and relabel workloads
2023-05-15 12:19:18 -07:00
Kubernetes Prow Robot
2a4bf451b2
Merge pull request #117547 from wojtek-t/apf_dynamic_retry_after
Return dynamic RetryAfter header from APF
2023-05-15 12:19:07 -07:00
Jordan Liggitt
7c554ea1d9
Regenerate discovery fixtures 2023-05-15 14:18:19 -04:00
Jordan Liggitt
2ab6fd3590
Capture discovery API output in test fixtures 2023-05-15 14:18:18 -04:00
Kubernetes Prow Robot
23ea6996d2
Merge pull request #118015 from tenzen-y/list-supprted-operators
Scheduler: Pass the supported nodeSelectorOperators to the field.NotSupported
2023-05-15 11:05:39 -07:00
Kubernetes Prow Robot
1d6158e11b
Merge pull request #117993 from liggitt/shortnames
Undo 1.28 shortname additions for now
2023-05-15 11:05:27 -07:00
Kubernetes Prow Robot
1487fc762f
Merge pull request #117982 from jpbetz/sig-roles-jpbetz
Add api-machinery TL owners permissions for jpbetz
2023-05-15 09:07:29 -07:00
Joe Betz
f0f92853ad Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
Kubernetes Prow Robot
3a65b989e3
Merge pull request #117645 from humblec/etcd-2
dependencies: update etcd dependencies to v3.5.9
2023-05-15 07:49:39 -07:00
Kubernetes Prow Robot
87d8c4ed0a
Merge pull request #117139 from pohly/test-integration-race-detection-update-utils
dependencies: bump k8s.io/utils
2023-05-15 07:49:28 -07:00
Kubernetes Prow Robot
52353a2e4a
Merge pull request #117994 from sanposhiho/patch-6
cleanup unused variables for v1beta2 component config
2023-05-15 06:01:29 -07:00
Yuki Iwai
1ca8f84eed Scheduler: Pass the supported nodeSelectorOperators to the field.NotSupported
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-15 21:43:00 +09:00
Patrick Ohly
d85b91f343 scheduler-perf: measure workload runtime and relabel workloads
The goal is to only label workloads as "performance" which actually run long
enough to provide useful metrics. The throughput collector samples once per
second, so a workload should run at least 5, better 10 seconds to get at least
a minimal amount of samples for the percentile calculation.

For benchstat analysis of runs with sufficient repetitions to get statistically
meaningful results, each workload shouldn't run more than one minute, otherwise
before/after analysis becomes too slow.

The labels were chosen based on benchmark runs on a reasonably fast desktop. To
know how long each workload takes, a new "runtime_seconds" benchmark result
gets added.
2023-05-15 14:33:40 +02:00
Kubernetes Prow Robot
714b165af8
Merge pull request #117901 from ardaguclu/use-getter-allowed-cmds
Use getter function for plugin subcommand resolution
2023-05-15 02:27:27 -07:00
Patrick Ohly
83fb5a50bc dependencies: bump k8s.io/utils
This includes a fix for a race condition.
2023-05-15 08:58:05 +02:00
Arda Güçlü
daebf1c735 Simplify plugin resolution check function 2023-05-15 08:51:46 +03:00
Kubernetes Prow Robot
f70c26d495
Merge pull request #117919 from dlipovetsky/kubeadm-etcd-log-message-format
kubeadm: Remove leading zeros from etcd member ID in log messages
2023-05-14 20:09:38 -07:00
Kubernetes Prow Robot
e425a6f6e4
Merge pull request #117904 from HeavenTonight/master
fix:translations zh_CN LC_MESSAGES k8s.po error
2023-05-14 20:09:27 -07:00
Paco Xu
f562375c8a add changelog for kube-addon-manager v9.1.7 2023-05-15 09:39:45 +08:00
Kubernetes Prow Robot
aae20dcb78
Merge pull request #118000 from daman1807/proxy-ipvs-reviewer
proxy/ipvs: added daman1807 as reviewer
2023-05-14 13:51:26 -07:00
Kubernetes Prow Robot
3d2989600a
Merge pull request #117958 from humblec/gcfg.v1
deps: go-gcfg update to the v1.2.3
2023-05-14 12:51:37 -07:00
Kubernetes Prow Robot
11218f10aa
Merge pull request #117061 from AxeZhan/duplicate_validation
remove duplicate validation for csi
2023-05-14 12:51:26 -07:00
Daman Arora
a0133b7cc4 proxy/ipvs: added daman1807 as reviewer
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-14 16:29:43 +05:30
Humble Chirammal
dcefc42b35 update vendor dependencies for the change
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-14 12:34:48 +05:30
Humble Chirammal
ae74923878 etcd depdencies are updated to v3.5.9
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-14 12:24:40 +05:30
Kubernetes Prow Robot
fda4ca0d8a
Merge pull request #117965 from daman1807/fix/ipvs-ipv6-healthcheck
proxy/ipvs: use healthzServer for instantiating the IPVS IPv6 proxier
2023-05-13 12:29:37 -07:00
Kubernetes Prow Robot
4f5a2256f9
Merge pull request #117428 from cbandy/etcd-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-05-13 12:29:26 -07:00
Kubernetes Prow Robot
6ca4f541d5
Merge pull request #117987 from dims/update-the-cgroups-v2-toleration-in-local-up-cluster
Update the cgroups v2 toleration in local-up-cluster
2023-05-13 10:45:26 -07:00
Kensei Nakada
13cef6a754
cleanup unused variables for v1beta2 component config 2023-05-14 00:22:25 +09:00
Jordan Liggitt
815578295a
Revert "support short name for flowschema and prioritylevelconfiguration"
This reverts commit 3dd0c41663.
2023-05-13 11:11:04 -04:00