Commit Graph

103836 Commits

Author SHA1 Message Date
Zihong Zheng
93e59220c5 Fix core calculation for dns autoscaler test.
It didn't account for the return value being a string instead of an
integer.
2021-09-16 14:26:51 -07:00
Kubernetes Prow Robot
924f196882
Merge pull request #104986 from thockin/svc-validation-cleanup
Svc REST: clean up defaultOnRead to be consistent
2021-09-16 14:09:26 -07:00
Ricardo Pchevuzinske Katz
37d11bcdaf Move node and networking related helpers from pkg/util to component helpers
Signed-off-by: Ricardo Katz <rkatz@vmware.com>
2021-09-16 17:00:19 -03:00
Andrey Smirnov
a5647fa417
fix: wrap errors correct when validating kubeconfig
This allows to check for specific errors using `errors.Is`.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2021-09-16 22:56:08 +03:00
Kubernetes Prow Robot
63e7ee43bb
Merge pull request #105069 from p0lyn0mial/upstream-etcd-client-retry
etcd client starts retrying transient errors from the etcd cluster
2021-09-16 12:43:39 -07:00
Kubernetes Prow Robot
af85e0e669
Merge pull request #105067 from Shubham82/Add-supported_alg_header_value
Add supported 'alg' header values.
2021-09-16 12:43:26 -07:00
Kubernetes Prow Robot
fb70ca9b7b
Merge pull request #105046 from alculquicondor/system-spreading
Skip check for all topology labels when using system default spreading
2021-09-16 11:36:14 -07:00
Shivanshu Raj Shrivastava
f06ce08d63
Migrated pkg/proxy/winuserspace to structured logging (#105035)
* migrated roundrobin.go

* migrated proxysocket.go

* used KRef in service
2021-09-16 11:36:02 -07:00
Kubernetes Prow Robot
51e39a45d9
Merge pull request #104998 from pohly/scheduler-plugin-registration
scheduler: avoid repeated boilerplate code when registering plugins
2021-09-16 11:35:49 -07:00
Kubernetes Prow Robot
51384aa77e
Merge pull request #104847 from smarterclayton/worker_uid_reuse
kubelet: Handle UID reuse in pod worker
2021-09-16 11:35:37 -07:00
Kubernetes Prow Robot
139a50c5d7
Merge pull request #104627 from arajkumar/add-doc-metrics-kinds
NodeMetrics, PodMetrics: Add doc for metav1.ObjectMeta
2021-09-16 11:35:26 -07:00
Anish Ramasekar
9de9c99093
test(dualstack): remove should have ipv4 and ipv6 node podCIDRs test
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-09-16 18:25:20 +00:00
Anish Ramasekar
63295a126e
fix typo in kms encryption config logs
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-09-16 18:19:29 +00:00
Tim Hockin
52f54ce90d Svc REST: clean up defaultOnRead to be consistent
Headless+selectorless -> RequireDualStack

Headless+selector -> SingleStack

Add test cases to cover this and ExternalName and dual-stack init (which
I think can never trigger, but best to be safe).
2021-09-16 11:17:45 -07:00
Kubernetes Prow Robot
6a49ed41ea
Merge pull request #104949 from Karthik-K-N/json-iterator-version-update
Updated json-iterator version to 1.1.12 from 1.1.11
2021-09-16 10:25:46 -07:00
Paco Xu
a48a2efbd4
remove deprecated validEgressSelectorNames 'master' (#102242)
* remove deprecated validEgressSelectorNames 'master'

Signed-off-by: pacoxu <paco.xu@daocloud.io>

* update gce configure: replace deprecated egress name 'master' with 'controlplane'

Signed-off-by: pacoxu <paco.xu@daocloud.io>

* add dup error for EgressSelection & fix converting alpha/beta to v1 name
2021-09-16 07:09:46 -07:00
Jian Zeng
2fbbd380ea
refactor: switch to tls cipher suite in stdlib
Signed-off-by: Jian Zeng <zengjian.zj@bytedance.com>
2021-09-16 21:58:01 +08:00
Aldo Culquicondor
609306dd5b Skip check for all topology labels when using system default spreading
Checking for all topology labels is not backwards compatible. Clusters were nodes don't have zone labels effectively have default spreading disabled.

Change only applies to system defaults.
2021-09-16 09:37:56 -04:00
Kubernetes Prow Robot
5d7ac70051
Merge pull request #104670 from andyzhangx/patch-2
turn on CSIMigrationAzureDisk by default on 1.23
2021-09-16 05:35:45 -07:00
Stanislav Laznicka
b67bd722a9
rootcacertpublisher: drop the namespace label from metrics to reduce its cardinality
The `root_ca_cert_publisher_sync_duration_seconds` metric tracks the sync
duration in the root CA cert publisher per code and namespace. In
clusters with a high namespace turnover (like CI clusters), this may
cause the kube-controller-manager to expose over 100k series to
Prometheus, which may cause degradation of that service.

Drop the `namespace` label to remove the metrics' cardinality, tracking
this metric by namespace does not justify the impact of keeping it.
2021-09-16 14:05:32 +02:00
Lukasz Szaszkiewicz
83171562b0 etcd-client starts retrying transient errors from the etcd cluster
This PR enables unaryClientInterceptor in conjunction with Prometheus interceptor.
Previously it was simply overwritten by the Prometheus interceptor.
As a result etcd client didn't attempt to retry certain errors.

The unaryClientInterceptor is important because it knows how to retry all sorts of errors from the etcd cluster. It will make the API server more resilient to failures -  end users won't see certain errors.
The full list of retriable (codes.Unavailable) errors can be found at https://github.com/etcd-io/etcd/blob/main/api/v3rpc/rpctypes/error.go#L72
2021-09-16 13:58:49 +02:00
h4ghhh
0734820279
'New' Event namespace validate failed (#100125) 2021-09-16 04:29:45 -07:00
jyz0309
615c69643b migrate to struct log for proxy
Signed-off-by: jyz0309 <45495947@qq.com>

remove useless str

Signed-off-by: jyz0309 <45495947@qq.com>

fix comment

Signed-off-by: jyz0309 <45495947@qq.com>

fix comment

Signed-off-by: jyz0309 <45495947@qq.com>
2021-09-16 18:01:22 +08:00
Patrick Ohly
1d656d46a2 scheduler: avoid repeated boilerplate code when registering plugins
Some plugins expect the new feature gate struct. We can inject that additional
parameter via a helper function instead of having to repeat the same anonymous
function for each plugin.
2021-09-16 11:23:57 +02:00
Kubernetes Prow Robot
bea2e462a5
Merge pull request #105033 from calvin0327/pr-cleanup
Structured log migration for pkg/util/netsh
2021-09-16 01:53:46 -07:00
wojtekt
b7221bc77c Update import restrictions 2021-09-16 10:52:28 +02:00
Shubham Kuchhal
ef2be5586e Add supported 'alg' header values. 2021-09-16 14:02:21 +05:30
Kubernetes Prow Robot
b0f347350b
Merge pull request #105055 from MikeSpreitzer/its-flow-distinguisher
Rename httplog entry from "apf_d" to "apf_fd"
2021-09-15 23:51:45 -07:00
calvin0327
fb9caa6a84 structured log migration for pkg/util/netsh 2021-09-16 13:23:37 +08:00
Kubernetes Prow Robot
25e52d9177
Merge pull request #102937 from gy95/service
remove windows service not used global variable
2021-09-15 21:41:45 -07:00
Kubernetes Prow Robot
47cf49cc37
Merge pull request #105054 from jiahuif-forks/feature/feature-gate/kep-2887
add feature gate for OpenAPIEnums.
2021-09-15 18:21:46 -07:00
Anago GCB
dd5c3a109e Merge remote-tracking branch 'origin/master' 2021-09-15 23:39:36 +00:00
Jiahui Feng
2ddcf13e91 add feature gate OpenAPIEnums.
KEP-2887 OpenAPI Enum Types
2021-09-15 16:08:47 -07:00
Anago GCB
cfe3155d35 Merge remote-tracking branch 'origin/master' 2021-09-15 22:46:58 +00:00
Kubernetes Prow Robot
04daa00b7d
Merge pull request #105058 from puerco/1.19-cve
Add CVE 2021-25741 info to 1.19 Release Notes
2021-09-15 15:40:34 -07:00
Anago GCB
8edec0d65f CHANGELOG: Update directory for v1.22.2 release 2021-09-15 22:28:09 +00:00
Anago GCB
8b5b543976 CHANGELOG: Update directory for v1.21.5 release 2021-09-15 21:53:54 +00:00
Adolfo García Veytia (Puerco)
4bff82205d Add CVE 2021-25741 info to 1.19 release notes
This commit adds information about CVE 2021-25741 to the v1.19
changelog which did not make it into the document at release time.

Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
2021-09-15 16:29:58 -05:00
Mike Spreitzer
bf424292db Add metrics about handling LIST requests
Add metrics that illuminate the costs of handling LIST requests.
2021-09-15 17:18:09 -04:00
Mike Spreitzer
be717abb83 Rename httplog entry from "apf_d" to "apf_fd"
Because it is for the "Flow Distinguisher".
2021-09-15 17:10:11 -04:00
Anago GCB
49e00c006c Merge remote-tracking branch 'origin/master' 2021-09-15 21:05:08 +00:00
Anago GCB
61f9ed5765 CHANGELOG: Update directory for v1.19.15 release 2021-09-15 19:55:22 +00:00
Anago GCB
eed84f92fd CHANGELOG: Update directory for v1.20.11 release 2021-09-15 19:55:06 +00:00
Mauricio Poppe
144e6432cf Remove a duplicate StorageClass creation call
The issue on both tests is that before the refactor we had a method that
was creating the `StorageClass` manifest only, this manifest was used
later to be created by `TestBindingWaitForFirstConsumerMultiPVC`, after
the refactor we're ensuring that the `StorageClass` exists as a resource
before calling `TestBindingWaitForFirstConsumerMultiPVC` however this
method is still attempting to create it, that's the reason behind the
error: `resourceVersion should not be set on objects to be created

This issue wasn't caught before because
`TestBindingWaitForFirstConsumerMultiPVC` is creating the StorageClass
without the common utility function, the solution is to remove the
snippet that attempts to create the StorageClass againo
2021-09-15 19:09:35 +00:00
Kubernetes Prow Robot
8975906dfc
Merge pull request #104942 from SataQiu/kubeadm-20210912
kubeadm: do not check if the /etc/kubernetes/manifests folder is empty on joining worker nodes during preflight
2021-09-15 11:16:11 -07:00
Clayton Coleman
d5719800bf
kubelet: Handle UID reuse in pod worker
If a pod is killed (no longer wanted) and then a subsequent create/
add/update event is seen in the pod worker, assume that a pod UID
was reused (as it could be in static pods) and have the next
SyncKnownPods after the pod terminates remove the worker history so
that the config loop can restart the static pod, as well as return
to the caller the fact that this termination was not final.

The housekeeping loop then reconciles the desired state of the Kubelet
(pods in pod manager that are not in a terminal state, i.e. admitted
pods) with the pod worker by resubmitting those pods. This adds a
small amount of latency (2s) when a pod UID is reused and the pod
is terminated and restarted.
2021-09-15 14:02:00 -04:00
Elana Hashman
47086a6623
Add test for recreating a static pod 2021-09-15 14:01:48 -04:00
Kubernetes Prow Robot
1c1d2e4edc
Merge pull request #105040 from cpanato/update-publish
staging/publishing: Set go1.16 version to go1.16.8
2021-09-15 10:06:31 -07:00
Kubernetes Prow Robot
f570b940f5
Merge pull request #104995 from pohly/pin-dependencies-to-fork
pin-dependency.sh: enhance forking of a dependency
2021-09-15 08:56:31 -07:00
Aldo Culquicondor
a0e7a567c5 Add metric job_pod_finished
To count the number of pods that the job controller successfully tracked with the JobTrackingWithFinalizers feature gate.
2021-09-15 11:19:47 -04:00