Commit Graph

104726 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
8e2d7a3d64
Merge pull request #105983 from jiahuif-forks/dep/bump-smd
Upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.0
2021-11-03 15:24:32 -07:00
Kubernetes Prow Robot
f28881de25
Merge pull request #106106 from liggitt/podsecurity-beta-webhook
PodSecurity: update webhook manifest for beta
2021-11-03 14:20:45 -07:00
Kubernetes Prow Robot
a65bb64c09
Merge pull request #104372 from astraw99/fix_label_msg
Fix `kubectl unlabel` response msg
2021-11-03 14:20:32 -07:00
Mark Rossetti
5dffdfc0d5 Adding e2e tests to validate volume mounts in HostProcessContainers on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2021-11-03 14:01:53 -07:00
Kubernetes Prow Robot
4dfd739403
Merge pull request #105997 from robscott/mirroring-selector
Fixing how EndpointSlice Mirroring handles Service selector transitions
2021-11-03 12:48:32 -07:00
Jordan Liggitt
9f92fb0d7e PodSecurity: update webhook manifest to use named port 2021-11-03 15:04:04 -04:00
Jordan Liggitt
f6456d098e PodSecurity: update webhook manifest to target linux/amd64 node 2021-11-03 15:04:04 -04:00
Jordan Liggitt
d92e0dbea6 PodSecurity: update webhook manifest to label namespace as restricted 2021-11-03 15:04:03 -04:00
Jordan Liggitt
4986780da3 PodSecurity: update webhook manifest for beta 2021-11-03 15:04:03 -04:00
Kubernetes Prow Robot
f5dd4d237f
Merge pull request #106105 from Huang-Wei/add-test
Add unit tests to cover scheduler's setup
2021-11-03 11:48:51 -07:00
Kubernetes Prow Robot
63c4a22ae9
Merge pull request #105819 from tosi3k/client-go-traces
Add more info to the ListAndWatch trace
2021-11-03 11:48:44 -07:00
Kubernetes Prow Robot
29c6e83227
Merge pull request #105201 from marosset/hostprocess-command-line-tests
HostProcess e2e tests to validate command / workingDir parameters
2021-11-03 11:48:32 -07:00
Aldo Culquicondor
ff741f6a96 Ensure deletion of pods in queues and cache
When the client misses a delete event from the watcher, it will use the last state of the pod in the informer cache to produce a delete event. At that point, it's not clear if the pod was in the queues or the cache, so we should issue a deletion in both.

The pod could be assumed, so deletion of assumed pods from the cache should work.

Change-Id: I11ce9785de603924fc121fe2fa6ed5cb1e16922f
2021-11-03 14:00:31 -04:00
Kubernetes Prow Robot
0b8ac0c0fc
Merge pull request #106121 from wojtek-t/pf_watch_10
P&F fix watch tracker bug
2021-11-03 10:43:34 -07:00
Kubernetes Prow Robot
2904aae970
Merge pull request #106118 from liggitt/podsecurity-trimpath
PodSecurity: trim path when building webhook binary
2021-11-03 10:43:23 -07:00
Lubomir I. Ivanov
d3e1f87fca kubeadm: remove TODO about moving SchemeBuilder to k8s.io/api
This TODO is no longer in scope, thus remove it from
all register.go files under /app/apis.
2021-11-03 19:11:43 +02:00
Lubomir I. Ivanov
f73894359d kubeadm: update converters after the output/v1alpha2 addition
The addition of output/v1alpha2 made the converter-gen require
an explicit converter for:
kubeadm/v1beta2.BootstrapToken -> bootstraptoken/v1.BootstrapToken.

Add this converter under kubeadm/v1beta.
Use the converter in output/v1alpha1.
2021-11-03 19:11:43 +02:00
Kubernetes Prow Robot
a2960dc277
Merge pull request #106120 from jsafrane/fix-test-name
Fix ephemeral test description
2021-11-03 09:11:25 -07:00
Reza Karimi
bb15f02039 issue#105861: making scheduler metrics stable 2021-11-03 15:34:50 +00:00
Kubernetes Prow Robot
16c86404dc
Merge pull request #105939 from NikhilSharmaWe/betterOutputFramework
Changed code to improve output for files under test/e2e/framework
2021-11-03 08:05:06 -07:00
Wojciech Tyczyński
b1d0fde370 P&F fix watch tracker bug 2021-11-03 15:02:51 +01:00
Kubernetes Prow Robot
5446b89857
Merge pull request #104470 from pacoxu/patch-4
Remove GAed feature gate CronJobControllerV2
2021-11-03 06:40:58 -07:00
Jan Safranek
f0bc04f169 Fix ephemeral test description
It looks like it tests two pods sharing the same volume, but the goal is
actually the opposite - two pods with the same inline volume definition
should get separate volumes.
2021-11-03 14:26:08 +01:00
Jordan Liggitt
2567165182 PodSecurity: trim path when building webhook binary
Change-Id: I76650e2fab2186671f0534109d04846134e7525d
2021-11-03 13:00:11 +00:00
Nikhil Sharma
2e1899244f Changed code to improve output for files under test/e2e/framework 2021-11-03 17:29:05 +05:30
Patrick Ohly
25907036ea kubelet: avoid deprecation remark for traditional logging flags
Just because the options can now also be set via a configuration file does not
mean that the command line flags should not be used anymore.
2021-11-03 12:02:48 +01:00
Patrick Ohly
4df70dfd41 component-base: initialize logging as soon as possible
In various places log messages where emitted as part of validation or even
before it (for example, cli.PrintFlags). Those log messages did not use the
final logging configuration, for example text output instead of JSON or not the
final verbosity. The last point became more obvious after moving the setup of
verbosity into logs.Options.Apply because PrintFlags never printed anything
anymore.

In order to force applications to deal with logging as soon as possible, the
Options.Validate and Options.Apply methods are now private. Applications should
use the new Options.ValidateAndApply directly after parsing.
2021-11-03 11:55:54 +01:00
Kubernetes Prow Robot
23df2b97f7
Merge pull request #105302 from ml-/fix-typos
fix multiple typos in go files
2021-11-03 03:20:58 -07:00
Patrick Ohly
3948cb8d1b component-base: move v/vmodule/log-flush-frequency into LoggingConfiguration
These three options are the ones from logs.AddFlags which are not deprecated.
Therefore it makes sense to make them available also via the configuration file
support in the one command which currently supports that (kubelet).

Long-term, all commands should use LoggingConfiguration, either with a
configuration file (as in kubelet) or via flags (kube-scheduler,
kube-apiserver, kube-controller-manager).

Short-term, both approaches have to be supported. As the majority of the
commands only use logs.AddFlags, that function by default continues to register
the flags and only leaves that to Options.AddFlags when explicitly requested.

A drive-by bug fix is done for log flushing: the periodic flushing called
klog.Flush and therefore missed explicit flushing of the newer logr
backend. This bug was never present in any release Kubernetes and therefore the
fix is not submitted in a separate PR.
2021-11-03 07:41:46 +01:00
Kubernetes Prow Robot
9af2ece18a
Merge pull request #106089 from liggitt/podsecurity-beta
PodSecurity: promote config and feature gate to beta
2021-11-02 22:22:57 -07:00
Wei Huang
98b22db672
Add unit tests to cover scheduler's setup 2021-11-02 21:19:25 -07:00
Anago GCB
6de257e93f Merge remote-tracking branch 'origin/master' 2021-11-03 04:09:28 +00:00
Kubernetes Prow Robot
aa0ea62489
Merge pull request #104903 from ikeeip/storageobjectinuseprotection_feature_ga_cleanup
Remove StorageObjectInUseProtection feature gate logic
2021-11-02 20:22:57 -07:00
Anago GCB
64a58a7893 CHANGELOG: Update directory for v1.23.0-alpha.4 release 2021-11-03 02:13:59 +00:00
Kubernetes Prow Robot
1dd781ddca
Merge pull request #106065 from pacoxu/etcd-3.5.1-image-build
update etcd makefile to using 3.5.1 for building
2021-11-02 19:01:17 -07:00
Kubernetes Prow Robot
53addf3ba3
Merge pull request #105858 from jyz0309/migrate-log
Migrated scheduler files binder.go binder_test.go to structured logging
2021-11-02 19:01:09 -07:00
Kubernetes Prow Robot
1f8084789e
Merge pull request #105508 from claudiubelu/tests/refactor-deployments
tests: Use E2E framework deployments
2021-11-02 19:00:57 -07:00
Kubernetes Prow Robot
70e7876bef
Merge pull request #106099 from BenTheElder/bazel-linger-no-more
cleanup lingering bazel related scripts/references
2021-11-02 18:00:27 -07:00
Kubernetes Prow Robot
e48cb8adb0
Merge pull request #106017 from tallclair/unit-test
[PodSecurity] Expand unit test coverage and fix error cases
2021-11-02 18:00:19 -07:00
Kubernetes Prow Robot
b489b03946
Merge pull request #105575 from endocrimes/dani/cleanup-launcher
Allow the e2e_node runner to receive a KubeletConfiguration rather than requiring flags
2021-11-02 18:00:10 -07:00
Kubernetes Prow Robot
c2c0f91385
Merge pull request #101004 from lojies/cleanupforkubectl
code cleanup for kubectl
2021-11-02 17:58:58 -07:00
Kubernetes Prow Robot
359b722c19
Merge pull request #102882 from fromanirh/device-manager-checkpoints
devicemanager: checkpoint: support pre-1.20 data
2021-11-02 16:56:57 -07:00
Kubernetes Prow Robot
41ab2ccfb0
Merge pull request #106100 from BenTheElder/cleanup-unused-test-bin
removed unused test/e2e_kubeadm/runner/local/run_local.go
2021-11-02 15:29:42 -07:00
Tim Allclair
81661d5a34 [PodSecurity] Add metrics test coverage 2021-11-02 14:56:43 -07:00
Tim Allclair
c3398729e0 [PodSecurity] Include error audit annotation on all non-forbidden errors 2021-11-02 14:56:43 -07:00
Tim Allclair
98c86b350c [PodSecurity] Errors validating PodControllers are non blocking 2021-11-02 14:56:42 -07:00
Tim Allclair
e1c4e85b52 [PodSecurity] Add ValidatePod unit test 2021-11-02 14:56:40 -07:00
Kubernetes Prow Robot
47c63a39ed
Merge pull request #106097 from liggitt/feature/pod-security/unique-controller-pods-validation
Update pods validation based on uniqueness of controller
2021-11-02 14:28:13 -07:00
Wei Huang
e30f9648cc
sched: ensure feature gate is honored when instantiating scheduler (#105915)
* sched: ensure feature gate is honored when instantiating scheduler

* fixup: address comments
2021-11-02 14:28:06 -07:00
Kubernetes Prow Robot
5aacb15a19
Merge pull request #105913 from aholic/master
add condition pre-check for pod uid and pod resource version in bind api
2021-11-02 14:27:53 -07:00