Commit Graph

98703 Commits

Author SHA1 Message Date
yoyinzyc
b81e2d18f9 enforce metric cardinality check to counter metric. 2021-03-02 16:04:43 -08:00
yoyinzyc
a44bb76f1e add flag allow-metric-labels to get the input metric label value allowlist. 2021-03-02 16:04:43 -08:00
Peter Hornyack
3d2e9600d9 Dump detailed service information during Windows node startup 2021-03-02 15:55:40 -08:00
Kubernetes Prow Robot
3022b39817
Merge pull request #99610 from derekwaynecarr/enable-downward-api-hugepages
Promote DownwardAPIHugePages to beta
2021-03-02 15:49:40 -08:00
Kubernetes Prow Robot
62bb595cbe
Merge pull request #98627 from jialaijun/migrate_to_structured_logs_5
Migrate pkg/kubelet/metrics logs to structured logging.
2021-03-02 15:49:31 -08:00
Kubernetes Prow Robot
da2f6385e9
Merge pull request #98589 from chenyw1990/structuredLogsOfRemote
pkg/kubelet/cri/remote: migrate to structured logs
2021-03-02 15:49:19 -08:00
Kubernetes Prow Robot
267afe2358
Merge pull request #99526 from chymy/fix-staticcheck-failed
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/generic
2021-03-02 14:47:32 -08:00
Kubernetes Prow Robot
e811f5fdf9
Merge pull request #99463 from jingxu97/feb/stat
Use Lstat in plugin watcher to avoid Windows problem
2021-03-02 14:47:19 -08:00
cici37
408258c6d5 Update to use cliflag.NamedFlagSets 2021-03-02 13:23:44 -08:00
Kubernetes Prow Robot
a5c3b24dba
Merge pull request #99631 from claudiubelu/patch-5
test images: Adds label to httpd-new image
2021-03-02 13:23:32 -08:00
Kubernetes Prow Robot
ee90db514c
Merge pull request #99345 from robscott/endpointslice-wait-for-cache
Updating EndpointSlice controller to wait for cache to be updated
2021-03-02 13:23:20 -08:00
David Eads
b90179e0f2 write CRD validation function only valid in beta1 direct to etcd to test apply on migrated data 2021-03-02 15:57:57 -05:00
David Eads
651c79b37f generated 2021-03-02 15:57:57 -05:00
wojtekt
f4407f4db8 Assign remaining test/e2e/common test to SIGs 2021-03-02 21:34:58 +01:00
David Eads
fd8e81eba4 remove csr v1beta1 usage 2021-03-02 15:31:21 -05:00
Kubernetes Prow Robot
3c514ae588
Merge pull request #99621 from nikhita/fix-verify-description
hack/verify-description.sh: correctly look for versioned API types
2021-03-02 12:16:27 -08:00
Kubernetes Prow Robot
2a33b8293a
Merge pull request #99615 from pacoxu/default-container/exec
kubectl: print info for default container annotation usage
2021-03-02 12:16:18 -08:00
Kubernetes Prow Robot
ec1b6ce53a
Merge pull request #99236 from pacoxu/enable-cadvisor-json-endpoints/cleanup
Deprecate cAdvisor json metrics collected by Kubelet
2021-03-02 12:16:07 -08:00
Kubernetes Prow Robot
d1a2af554a
Merge pull request #99115 from pohly/ephemeral-volume-metrics
generic ephemeral volume: add metrics
2021-03-02 12:15:59 -08:00
Kubernetes Prow Robot
4a56d8c19a
Merge pull request #99103 from liggitt/prefer-v1
Prefer v1 storage versions
2021-03-02 12:15:48 -08:00
Kubernetes Prow Robot
5b8c1b27c1
Merge pull request #98983 from navidshaikh/pr/98326-leftover-part
test/e2e: Move tests into test/e2e/node package
2021-03-02 12:15:40 -08:00
Kubernetes Prow Robot
91458ca376
Merge pull request #98614 from lauchokyip/rmsecretgen
Remove dependency of generators from create secret
2021-03-02 12:15:31 -08:00
Kubernetes Prow Robot
b5c6241f1f
Merge pull request #97775 from ankeesler/exec-plugin-integration-test
exec credential provider: first integration test (static auth interaction)
2021-03-02 12:15:19 -08:00
Jordan Liggitt
5e9189289e Update go version check to 1.16+ 2021-03-02 15:11:46 -05:00
Lubomir I. Ivanov
b03418cb44 gomod/vendor: update system-validators to v1.4.0
Includes a Docker bump to 20.10.
2021-03-02 21:44:14 +02:00
Lubomir I. Ivanov
33aa64d7fd build/dependencies.yaml: update Docker to 20.10 2021-03-02 21:41:18 +02:00
David Eads
7d7b3438a5 re-enable CRD v1beta1 validation test 2021-03-02 14:34:41 -05:00
David Eads
3dbc08288f switch condition controller check to use a direct etcd write 2021-03-02 14:34:41 -05:00
David Eads
734e9b7dd6 fix up CRD validation tests 2021-03-02 14:34:41 -05:00
David Eads
06eb2f5d41 switch apiserver integration tests to CRD v1 2021-03-02 14:34:41 -05:00
David Eads
c72b4b3f89 coerce apply tests to CRD v1. skip CRDs that are no longer valid 2021-03-02 14:34:41 -05:00
David Eads
dc159a373c attempt to coerce test for non-structural schemas into something close to valid 2021-03-02 14:34:41 -05:00
David Eads
b261364025 try to tidy up crd v1beta1 usage 2021-03-02 14:34:41 -05:00
Andrew Keesler
aea995c45f
exec credential provider: use stdin to detect user interaction
We are not sure why this was stdout, since stdin is what the user uses to pass
information to the exec plugin.

There is a question of backwards compatibility here. Our take is that this is a
bug, and so we are ameliorating behavior instead of breaking behavior. There are
2 main cases to consider with respect to backwards compatibility:

1. an existing exec plugin depended on stdin being hooked up to them if stdout
   was a terminal (e.g., echo foo | client-go-command-line-tool); we believe
   this is an anti-pattern, since the client-go-command-line-tool could be using
   stdin elsewhere (e.g., echo foo | kubectl apply -f -)

2. an existing exec plugin depended on stdin not being hooked up to them if
   stdout was not a terminal (e.g., client-go-command-line-tool >/dev/null);
   hopefully there are very few plugins that have tried to base logic off of
   whether stdin returned EOF immediately, since this could also happen when
   something else is wrong with stdin

We hope to apply a stronger fix to this exec plugin user interaction stuff in a
future release.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-03-02 14:30:42 -05:00
Kubernetes Prow Robot
445cb0609d
Merge pull request #99574 from pacoxu/feature/check-ipv6-site-warnings
kubeadm: a warning to user as ipv6 site-local is deprecated
2021-03-02 11:11:43 -08:00
Kubernetes Prow Robot
a89d783b27
Merge pull request #99553 from alaypatel07/fix-flaky-unit-test
cronjob: fix flaky unit test TestController2_updateCronJob
2021-03-02 11:11:31 -08:00
Kubernetes Prow Robot
94d5019369
Merge pull request #99341 from alaypatel07/metrics
cronjob_controller: add metrics for job creation skew duration
2021-03-02 11:11:19 -08:00
Mike Dame
d09a841246 Surface more information about plugin scores in scheduler 2021-03-02 14:01:55 -05:00
Rob Scott
e1542606c2
Updating EndpointSlice controller to wait for cache to be updated
This updates the EndpointSlice controller to make use of the
EndpointSlice tracker to identify when expected changes are not present
in the cache yet. If this is detected, the controller will wait to sync
until all expected updates have been received. This should help avoid
race conditions that would result in duplicate EndpointSlices or failed
attempts to update stale EndpointSlices. To simplify this logic, this
also moves the EndpointSlice tracker from relying on resource versions
to generations.
2021-03-02 09:43:46 -08:00
John Howard
a7882d8a42 Improve warnings for default-container
Right now, there is no way to use these annotations, support multiple
`kubectl` versions, and not give users annoying warnings every time they
run `kubectl log`.

If a user is setting *both* annotations, they clearly know that the old
on is deprecated. Therefor, we should not warn them.
2021-03-02 09:07:50 -08:00
Jordan Liggitt
4515889574 Prefer v1 storage versions 2021-03-02 12:06:13 -05:00
Kubernetes Prow Robot
e4e9c31218
Merge pull request #98572 from justaugustus/go116
[go1.16] Update to go1.16
2021-03-02 08:57:19 -08:00
Lubomir I. Ivanov
b6ff320507 kubeadm: set the kubelet cgroup driver to "systemd" during "init"
The kubeadm documentation instructs users to set the container
runtime driver to "systemd", since kubeadm manages a kubelet via
the systemd init system. The kubelet default however is "cgroupfs".
For new clusters set the driver to "systemd" unless the user
is explicit about it. The same defaulting would not happen
during "upgrade".
2021-03-02 18:39:39 +02:00
Nikhita Raghunath
4b9b926e5d hack/verify-description.sh: correctly look for versioned API types
`find_files` had incorrect regexes which led to `genswaggertypedocs`
never being invoked. This commit updates the regex to correctly
look for versioned API types.go files.

Since `genswaggertypedocs` was never invoked, there are many API types
with missing descriptions. This commit lists these `types.go` files
in `hack/.descriptions_failures`.

The `verify-description.sh` script skips running `genswaggertypedocs`
on the files listed in `hack/.descriptions_failures`.
2021-03-02 21:50:40 +05:30
Alay Patel
08bc827e66 cronjob_controller: add metrics for job creation skew duration 2021-03-02 10:38:59 -05:00
Artyom Lukianov
95b2777204 memory manager: specify the container cpuset.memory during the creation
Set the container cpuset.memory during the creation and avoid an additional
call to the resources update of the container.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-03-02 17:01:46 +02:00
pacoxu
3c33ceab04 log a warning if ipv6 site-local addresses is using as it shouldn't be deprecated
Signed-off-by: pacoxu <paco.xu@daocloud.io>
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2021-03-02 21:51:28 +08:00
Artyom Lukianov
ef3e0fd02f e2e node: wait for kubelet health check to pass after kubelet restart
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-03-02 14:48:03 +02:00
Artyom Lukianov
a6b4868b8d e2e node: stop kubelet service instead of restarting it
The server service monitors the kubelet service and restart it
once the service is down, to avoid kubelet double restarting
we will stop the kubelet service and wait until the kubelet will be
restarted and the node will be ready.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-03-02 14:48:03 +02:00
Patrick Ohly
98f75290ba generic ephemeral volume: simpler metrics
A CounterVector with status as label may create unnecessary overhead
and using the success case with the empty label value wasn't
easy. It's better to have two seperate counters, one for total number
of calls and one for failed calls.
2021-03-02 12:01:37 +01:00