Commit Graph

16483 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
33bf984f59 Merge pull request #111808 from alvaroaleman/meta-wrapping
Apimachinery meta errors: Support errors.Is and error wrapping
2022-08-23 19:00:58 -07:00
Kubernetes Prow Robot
6e14428e4e Merge pull request #111771 from logicalhan/health-check-metrics
add metrics for health checks (for later use in apiserver)
2022-08-23 19:00:22 -07:00
Kubernetes Prow Robot
0ac9784985 Merge pull request #111758 from SataQiu/fix-leaderelection-20220809
Make the validation logic about LeaderElectionConfiguration consistent between component-base and client-go
2022-08-23 19:00:14 -07:00
Kubernetes Prow Robot
dfd10d3133 Merge pull request #111752 from aanm/revert-final-url-template
Revert "client-go: remove no longer used finalURLTemplate"
2022-08-23 19:00:07 -07:00
Kubernetes Prow Robot
07bca2d791 Merge pull request #67782 from dims/yank-in-tree-openstack-cloud-provider
Remove in-tree openstack cloud provider
2022-08-23 18:59:48 -07:00
Kubernetes Prow Robot
f51d934aed Merge pull request #111689 from ardaguclu/use-restgetter-clusterinfo
(kubectl cluster-info): Move towards RESTClientGetter instead cmdutil.Factory
2022-08-23 17:17:19 -07:00
Kubernetes Prow Robot
9558faf8a2 Merge pull request #111687 from ardaguclu/use-restgetter-certificates
(kubectl certificate): Move towards restClientGetter instead cmdutil.Factory
2022-08-23 17:17:11 -07:00
Kubernetes Prow Robot
e729732132 Merge pull request #111684 from 0xff-dev/master1
use constant NamespaceDefault instead of variable namespace
2022-08-23 17:17:03 -07:00
Kubernetes Prow Robot
448575bbb0 Merge pull request #111663 from alexanderConstantinescu/ccm-service-sync-cleanup
[CCM - service controller] Clean up node sync and fix re-sync of failed services.
2022-08-23 17:16:48 -07:00
Kubernetes Prow Robot
e62609e4ff Merge pull request #111611 from kardashov/ref-spec-docs-typo-fix
Fixes typo in ReplicaSetStatus description
2022-08-23 17:16:33 -07:00
Kubernetes Prow Robot
61a7a805eb Merge pull request #111571 from brianpursley/label-dry-run-message
Fix label output bug where dry run message was not printed
2022-08-23 17:16:17 -07:00
Kubernetes Prow Robot
8373f71d82 Merge pull request #111570 from inosato/remove-ioutil-from-kube-aggregator
Remove ioutil from kube-aggregator
2022-08-23 17:16:05 -07:00
Kubernetes Prow Robot
cdb69a6717 Merge pull request #111568 from inosato/remove-ioutil-from-component-helpers
Remove ioutil from component-helpers
2022-08-23 17:15:54 -07:00
Kubernetes Prow Robot
8887ac620d Merge pull request #111566 from inosato/remove-ioutil-from-code-generator
Remove ioutil from code-generator
2022-08-23 16:05:59 -07:00
Kubernetes Prow Robot
eb713b1186 Merge pull request #111564 from inosato/remove-ioutil-from-cli-client-go
Remove ioutil from client-go
2022-08-23 16:05:52 -07:00
Kubernetes Prow Robot
6ab5016ac2 Merge pull request #111551 from logicalhan/apiserver-metrics
clean-up apiserver metrics and use subsystem
2022-08-23 16:05:45 -07:00
Kubernetes Prow Robot
0d7e51b2e8 Merge pull request #111533 from zhoumingcheng/master-u-v4
add unit test for /staging/src/k8s.io/kubectl/pkg/util/storage
2022-08-23 16:05:38 -07:00
Kubernetes Prow Robot
799a06a0b3 Merge pull request #110454 from ardaguclu/openapi-for-patch-evaluation
Use OpenAPI to determine patch type in kubectl apply patching
2022-08-23 16:04:48 -07:00
Kubernetes Prow Robot
bccb185739 Merge pull request #109884 from qzoscar/patch-1
fix a broken link
2022-08-23 16:04:15 -07:00
Davanum Srinivas
9bbf01bae9 Remove references to openstack and cinder
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-22 16:43:14 -04:00
Kubernetes Prow Robot
a1128e380c Merge pull request #111428 from lzhecheng/skip-instance-not-found
Azure: Skip "instance not found" error for LB backend address pools
2022-08-21 19:33:38 -07:00
zhoumingcheng
b092dafa67 add unit test for /staging/src/k8s.io/kubectl/pkg/util/storage
Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com>
2022-08-19 16:58:07 +08:00
Jordan Liggitt
68758fc5c5 Update removal warnings to 1.26 2022-08-18 14:17:56 -04:00
Jordan Liggitt
79c09f0b31 update-gofmt 2022-08-18 14:17:31 -04:00
Jordan Liggitt
651b4f5b64 Revert "Remove gcp and azure auth plugins"
This reverts commit 916cf16cf1.
2022-08-18 14:16:23 -04:00
David Eads
2f3ffbed2c Revert "Add an option to conditionally disable compression based on client ip."
This reverts commit 023583a155.
2022-08-17 15:08:39 -04:00
Han Kang
6c451da127 add counter metric for dashpole
Change-Id: I4a235c0d8b936da960cf5ce25cdd992e94130391
2022-08-16 09:19:26 -07:00
Han Kang
822c52c220 address comments
Change-Id: I9c9854b8bb3221e4791c70f566361bd0421061c1
2022-08-12 18:11:02 -07:00
Han Kang
895c80be2a add metrics for health checks (for later use in apiserver)
Change-Id: I0dff11cc298c4960ae6620004a071ef6a62ddc9a
2022-08-12 06:21:44 -07:00
Alvaro Aleman
b285beeb3e Apimachinery meta errors: Support errors.Is and error wrapping
Currently, the errors in the pkg/api/meta package don't work correctly
with the stdlibs `errors.Is` because they do not implement an `Is`
method, which makes the matching fall through to use reflect to check
for equality. This change fixes that and as a side-effect also adds
support to match on wrapped errors.
2022-08-11 18:50:51 -04:00
Kubernetes Prow Robot
f5956716e3 Merge pull request #111786 from jeremyrickard/publishing-release-125
staging/publishing: add release-1.25 branch
2022-08-10 11:16:25 -07:00
Jeremy Rickard
ac1d38b750 Add missing codegen rule
Signed-off-by: Jeremy Rickard <jeremyrrickard@gmail.com>
2022-08-10 09:02:35 -06:00
Jeremy Rickard
3d2ffc5287 Add publishing bot rules for 1.25 2022-08-10 08:27:41 -06:00
David Eads
696e41a698 Revert "enforce strict alpha handling for API serving"
This reverts commit 233e0cb8c3.
2022-08-10 09:42:37 -04:00
Kubernetes Prow Robot
3e396dbac5 Merge pull request #111657 from aojea/hc_nodeport
document that services healthcheckNodePort is inmutable once set
2022-08-09 13:20:39 -07:00
André Martins
94e7b2b8fd client-go/rest: check if url is nil to prevent nil pointer dereference
Signed-off-by: André Martins <aanm90@gmail.com>
2022-08-09 16:53:45 +02:00
Arda Güçlü
60680fc1d5 (kubectl cluster-info): Move towards RESTClientGetter instead cmdutil.Factory
To preserve loose coupling, it is needed to pass `RESTClientGetter`
instead `cmdutil.Factory` for all kubectl commands.

This PR removes `cmdutil.Factory` usage in `cluster-info` command and
instead passes `RESTClientGetter`.
2022-08-09 12:50:21 +03:00
SataQiu
5d7d288c04 make the validation logic about LeaderElectionConfiguration consistent between component-base and client-go 2022-08-09 11:47:05 +08:00
André Martins
f8f190cdd2 Revert "client-go: remove no longer used finalURLTemplate"
The functionality provided by the finalURLTemplate is still used by
certain external projects to track the request latency for requests
performed to kube-apiserver.

Using a template of the URL, instead of the URL itself, prevents the
explosion of label cardinality in exposed metrics since it aggregates
the URLs in a way that common URLs requests are reported as being the
same.

This reverts commit bebf5a608f.

Signed-off-by: André Martins <aanm90@gmail.com>
2022-08-08 23:27:45 +02:00
zhaodiaoer
fd67e04d70 Prevent panic in cloud-provider
Prevent panic when cloud-provider InstancesV2.InstanceMetadata
        returns (nil,nil)

Signed-off-by: zhaodiaoer <ddaaren@gmail.com>
2022-08-08 22:15:51 +08:00
Arda Güçlü
cddbb0c563 Use OpenAPI to determine patch type in kubectl apply patching
Currently `kubectl apply` determines correct patch type for given
GVKs by trying to register schema and if it succeeds, it uses
strategic-merge-patch.

But OpenAPI endpoint already stores which patch types are supported
by GVKs. This PR checks OpenAPI endpoint to retrieve patch type,
if OpenAPI is enabled. If it is not enabled, patch type determination
will be done as conventional registration method.
2022-08-08 14:33:11 +03:00
Kubernetes Prow Robot
759785ea14 Merge pull request #109090 from sarveshr7/multicidr-rangeallocator
Enhance NodeIPAM to support multiple ClusterCIDRs
2022-08-07 15:40:18 -07:00
Kubernetes Prow Robot
64ed914545 Merge pull request #111258 from dobsonj/kep-596-ga-feature-flag
KEP-596: Move CSIInlineVolume feature to GA
2022-08-05 13:54:30 -07:00
Alexander Constantinescu
c44ab14e20 Service controller: use a workqueue for node updates
Services which fail to be successfully synced as a cause by a triggered node event
are actually never retried. The commit before this one gave an example of when such
services used to be retried before, but that was not really efficient nor fully
correct. Moving to a workqueue for node events is a more modern approach to syncing
nodes, and placing all service keys that have failed on the service workqueue, in
case they do, fixes the re-sync problem

Also, now that we are using a node workqueue and use one go-routine to service items
from that queue, we don't need the `nodeSyncLock` anymore. So further clean that up
from the controller.
2022-08-05 17:20:11 +02:00
Alexander Constantinescu
72c1c6559e Cleanup service sync path
It dawned on me that `needsFullSync` can never be false. `needsFullSync` was used
to compare the set of nodes that were existing last time the node event handler was
triggered, with the current set of node for this run. However, if `triggerNodeSync`
gets called it's always because the set of nodes have changed due to a condition
changing on one node, or a new node being added/removed. If `needsFullSync` can
never be false then a lot of things in the service sync path was just spurious, for
ex: `servicesToRetry`, `knownHosts`. Essentially: if we ever need to `triggerNodeSync`
then the set of nodes have somehow changed and we always need to re-sync all services.

Before this patch series there was a possibility for `needsFullSync` to be set to false.
`shouldSyncNode` and the predicates used to list nodes were not aligned, specifically
for Unschedulable nodes. This means that we could have been triggered by a change to
the schedulable state but not actually computed any diffs between the old vs. new nodes.
Meaning, whenever there was a change in schedulable state we would just try to re-sync
all service updates that might have failed when we synced last time. But I believe this
to be an overlooked coincidence, rather than something actually intended.
2022-08-05 12:39:59 +02:00
Antonio Ojea
5ec9d4a530 doc services healthcheckNodePort is inmutable 2022-08-05 11:51:50 +02:00
Arda Güçlü
55cb8ba1eb (kubectl certificate): Move towards restClientGetter instead cmdutil.Factory
To preserve loose coupling, it is needed to pass `RESTClientGetter`
instead `cmdutil.Factory` for all kubectl commands.

This PR removes `cmdutil.Factory` usage and instead
passes `RESTClientGetter` as well as required changes in unit tests.
2022-08-05 09:34:10 +03:00
Sarvesh Rangnekar
0ee3719d0b Add describer and printer for ClusterCIDR API 2022-08-05 01:06:42 +00:00
Sarvesh Rangnekar
299724d099 Auto generate code for ClusterCIDR API 2022-08-05 01:06:35 +00:00
Sarvesh Rangnekar
7093b10416 Introduce networking/v1alpha1 api, ClusterCIDR type
Introduce networking/v1alpha1 api group.

Add `ClusterCIDR` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.
2022-08-05 00:54:00 +00:00