Commit Graph

15476 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
83ee27569e Merge pull request #106591 from Kartik494/bumpetcd
Updated Etcd Version to 3.5.1 in go.mod
2022-03-24 07:42:41 -07:00
Kubernetes Prow Robot
b456e70fe9 Merge pull request #108970 from nikhita/publishing-bot-gitattributes
publishing/rules: remove .gitattributes before publishing
2022-03-24 06:39:05 -07:00
Kubernetes Prow Robot
d9819f05d0 Merge pull request #108927 from wojtek-t/unify_pf_metrics
Record dropped requests in apiserver_request_total metric
2022-03-24 06:38:53 -07:00
Kubernetes Prow Robot
c956b1a2c4 Merge pull request #108553 from kerthcet/fix/race-detected-in-TestErrConnKilled
fix: race detected in TestErrConnKilled
2022-03-24 06:38:41 -07:00
Kubernetes Prow Robot
efdb80dcc6 Merge pull request #108936 from stevekuznetsov/skuznets/more-correct-diff
pkg/storage/etcd3: use correct diff in tests
2022-03-24 02:59:26 -07:00
Kubernetes Prow Robot
4e6000a40c Merge pull request #108935 from stevekuznetsov/skuznets/too-large-rv
pkg/storage/etcd3: refactor "too large" resourceVersions
2022-03-24 02:59:18 -07:00
Kubernetes Prow Robot
190f974dd8 Merge pull request #108902 from kolyshkin/bump-golangci-lint
Fix verify:* after go 1.18 upgrade
2022-03-24 02:59:06 -07:00
Kubernetes Prow Robot
8bd198260e Merge pull request #107978 from brianpursley/config-cleanup
kubectl config subcommand cleanup: set-cluster, set-context, set-credentials
2022-03-24 02:58:54 -07:00
Kubernetes Prow Robot
22db936de3 Merge pull request #107750 from shiftstack/issues/cloud-provider/56
Prefer user-provided node IP
2022-03-24 02:58:42 -07:00
Nikhita Raghunath
2f6762c924 publishing/rules: remove .gitattributes before publishing
If a staging repo has .gitattributes files containing the `export-subst`
attribute ([example](b6c06a95d7/staging/src/k8s.io/client-go/pkg/version/.gitattributes)), then git expands the specified placeholders
when git archive is used.

When a published repo is downloaded from GitHub, GitHub does a
"git archive" under the hood. This means that the placeholders get
replaced by their relevant values. This type of "git archive"
application sometimes leads to undesired values. See the example below.

- In client-go, [line 59 in `pkg/version/base.go`](b6c06a95d7/staging/src/k8s.io/client-go/pkg/version/base.go (L59))
is expanded on a git archive. This line is needed as a fallback to
inject k8s version info for client-go when this info is not provided
via ldflags during builds.

- However, when k/client-go is vendored, the line gets expanded to _the
commit of the project vendoring client-go_ -- which is not helpful at
all! This also means that the vendored client-go will now contain
different (expanded) commit shas for different projects.

- To ensure reproducibility of source, this commit helps remove
the .gitattributes files before publishing the staging repos.
Additionally, when client-go is used as a library, we don't care about
the line being expanded to inject version info so it is also safe to
remove these files.
2022-03-24 14:42:54 +05:30
Kubernetes Prow Robot
56f45c5c81 Merge pull request #108725 from pohly/klog-flush-and-exit
klog v2.60.1
2022-03-24 01:22:41 -07:00
Kubernetes Prow Robot
e3982ce472 Merge pull request #108820 from mozillazg/remove-kubectl-deprecated-flags
kubectl: Remove deprecated run flags
2022-03-24 00:14:50 -07:00
Kubernetes Prow Robot
96aa41513e Merge pull request #107859 from ravisantoshgudimetla/promote-PodOS-beta
Promote PodOS field to beta
2022-03-24 00:14:41 -07:00
Kubernetes Prow Robot
bb67b5e9e8 Merge pull request #108717 from lavalamp/remove-clustername
Remove ClusterName
2022-03-23 22:31:33 -07:00
Kubernetes Prow Robot
2786b78b5a Merge pull request #108701 from denkensk/add-preemptionPolicy
support preemptionPolicy in describe PriorityClass
2022-03-23 22:31:24 -07:00
Kubernetes Prow Robot
9a253ed042 Merge pull request #108580 from ardaguclu/remove-diff-discovery
Remove DiscoveryClient from diff command
2022-03-23 22:31:17 -07:00
Kubernetes Prow Robot
8168c68bb6 Merge pull request #108522 from SergeyKanzhelev/grpcToBeta
promote grpcProbes to beta
2022-03-23 22:31:05 -07:00
Joe Betz
363a3e33eb Remove flaky CEL cost tests that rely on map iteration order 2022-03-23 22:29:49 -04:00
Kubernetes Prow Robot
f97825e1ce Merge pull request #107395 from alculquicondor/indexed-job
Graduate IndexedJob to stable
2022-03-23 17:44:41 -07:00
Steve Kuznetsov
8903372e8b pkg/storage/etcd3: use correct diff in tests
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-23 14:28:41 -08:00
Steve Kuznetsov
b973cdc57c pkg/storage/etcd3: refactor "too large" resourceVersions
When tests attempt to validate behavior in the case that a client asks
for a resource version that is "too large" for the underlying storage,
the previous implementation would simply add 1 to the latest revision
seen. This is only appropriate for storage backends that
  a) provide a continuous monotonic logical clock
  b) have no other events occurring while the test runs

For instance, when using a singe etcd backend as a shared fixture for
these tests, adding 1 to a previously-seen revision is not suffcient to
ensure that the resulting revision is "too large". By instead using the
largest possible integer value, we can be certain of this.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-23 12:27:55 -08:00
Kubernetes Prow Robot
697c685187 Merge pull request #108907 from Jefftree/crd-openapi-bug
Fix OpenAPI v3 bug with #/definitions
2022-03-23 13:22:50 -07:00
Kubernetes Prow Robot
3a2509b60e Merge pull request #108841 from tengqm/fix-kubeletcfg-docstring
Fix doc strings for kubelet config APIs
2022-03-23 13:22:27 -07:00
Kubernetes Prow Robot
5d26b111ba Merge pull request #108637 from Jefftree/openapi-proxy
Change aggregator to proxier for OpenAPI v3
2022-03-23 13:22:11 -07:00
Kubernetes Prow Robot
0bc6445b49 Merge pull request #108529 from cici37/celCostStability
Add CEL cost stability test
2022-03-23 13:22:04 -07:00
Kubernetes Prow Robot
7dde0b4bb5 Merge pull request #108342 from tkashem/rate-limit-error
client-go: chain the error returned by rate limiter
2022-03-23 13:21:43 -07:00
Kubernetes Prow Robot
9fbe66a486 Merge pull request #103516 from ykakarap/kubectl-subresources-apiserver
kubectl: apiserver changes to add --subresource support
2022-03-23 13:21:32 -07:00
Kubernetes Prow Robot
2d46f1bc30 Merge pull request #103062 from ikeeip/component_helper_storage
Move volume helpers to "k8s.io/component-helpers/storage/volume".
2022-03-23 13:21:20 -07:00
Kubernetes Prow Robot
14e8db067e Merge pull request #108191 from ravisantoshgudimetla/wire-cert-contexts
Wire cert contexts
2022-03-23 11:20:17 -07:00
Daniel Smith
fad4ba2a34 generated files 2022-03-23 17:59:55 +00:00
kerthcet
dd75d3b9ec fix: race detected in TestErrConnKilled
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-03-24 01:48:49 +08:00
Wojciech Tyczyński
1439634995 Record dropped requests in apiserver_request_total metric 2022-03-23 18:40:29 +01:00
Kir Kolyshkin
4513de06a8 Regen mocks using go 1.18
Generated by ./hack/update-mocks.sh using go 1.18

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:38 -07:00
cici37
303b847dcf Adjust cost after library func introduced. 2022-03-23 10:11:55 -07:00
cici37
0e9eb3d62f Add cel cost stability test. 2022-03-23 10:07:35 -07:00
Jefftree
0974cbad95 Fix OpenAPI v3 bug with #/definitions 2022-03-23 08:32:39 -07:00
Jefftree
ca44e0a4b9 Change aggregator to proxier for OpenAPI v3 2022-03-23 08:32:20 -07:00
Daniel Smith
0710b6836c teach code generator about ugly fields 2022-03-23 15:26:38 +00:00
Daniel Smith
17e74b3936 review comments 2022-03-23 15:26:38 +00:00
Daniel Smith
2831f9a343 remove unneeded references 2022-03-23 15:26:38 +00:00
Daniel Smith
e405ae9ec8 find and replace 2022-03-23 15:26:38 +00:00
Daniel Smith
a3d0dbbf60 change field name 2022-03-23 15:26:37 +00:00
Kubernetes Prow Robot
24a71990e0 Merge pull request #108445 from pohly/storage-capacity-ga
storage capacity GA
2022-03-23 08:06:21 -07:00
Abu Kashem
6acbe7e645 client-go: chain the error returned by rate limiter 2022-03-23 08:29:28 -04:00
kartik494
4285fb547e Updated Etcd Version to 3.5.1 in go.mod 2022-03-23 11:34:25 +05:30
Yuvaraj Kakaraparthi
801c39b478 kubectl: API changes to support --subresource in kubectl
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Co-authored-by: Yuvaraj Kakaraparthi <kakaraparthy@vmware.com>
2022-03-23 11:19:58 +05:30
Joe Betz
3b9c2db9af Add cost calculator for extensions functions, enable regex pre-compilation 2022-03-22 15:46:01 -04:00
Matthew Booth
928a5db93b cloud-provider handles kubelet's --node-ip
When using a legacy cloud provider, if kubelet is passed a node address
in --node-ip it will use this address in preference out the the
addresses by the cloud provider.

When using an external cloud provider, kubelet will annotate the Node
with the first --node-ip for use by the cloud provider. The cloud
provider validates this annotation but does not otherwise use it,
meaning that --node-ip has no effect.

This change moves the node address filtering code from kubelet to
component-helpers and updates both kubelet and cloud-provider to use it.
There is no functional change to kubelet, but cloud-provider now honours
kubelet's --node-ip.
2022-03-22 16:58:37 +00:00
Davanum Srinivas
d8f1da5ecb golang: Update to 1.18 from 1.18rc1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 09:47:35 -04:00
Kubernetes Prow Robot
9a8defda15 Merge pull request #108383 from tkashem/revert
Revert the revert of #107456 - "apf: change controller to use SSA for patches"
2022-03-21 22:09:43 -07:00