Commit Graph

110287 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d581cc90ad
Merge pull request #111918 from liggitt/in-tree-auth
Restore in-tree credential plugins for 1.25
2022-08-18 12:36:09 -07: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
Antoni Zawodny
e3ccfb128d Bump prometheus/client_golang to v1.12.2 2022-08-18 13:57:22 +02:00
Antoni Zawodny
a8fb0cab49 Add a possibility of setting GODEBUG env var for kube-apiserver binary 2022-08-18 11:19:52 +02:00
Mikko Ylinen
3128b1a773 e2e: use user provided timeout in WaitForPodsWithLabelRunningReady
The WaitFor* refactoring in 07c34eb400 had an oversight what timeout parameter
is used for calling WaitForAllPodsCondition() in WaitForPodsWithLabelRunningReady()
so the calls to WaitForPodsWithLabelRunningReady() ended up ignoring the user
provided timeout. Fix that.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-18 12:05:06 +03:00
pandaamanda
3d87919a1e refactor: move attachdetach controller param validation ahead 2022-08-18 08:56:57 +00:00
Kubernetes Release Robot
58c10aa6eb CHANGELOG: Update directory for v1.24.4 release 2022-08-17 23:07:54 +00:00
Kubernetes Release Robot
776cff3915 CHANGELOG: Update directory for v1.23.10 release 2022-08-17 22:20:27 +00:00
Kubernetes Release Robot
5b2362e5b9 CHANGELOG: Update directory for v1.22.13 release 2022-08-17 21:19:13 +00:00
Kubernetes Prow Robot
ae62cd6ce2
Merge pull request #111896 from deads2k/revert-compression-disable
Revert "Add an option to conditionally disable compression based on client ip."
2022-08-17 13:28:47 -07: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
Matthew Wong
a322a708f3 Fix PVC nil pointer dereference during migration-enabled volume expand 2022-08-17 11:32:22 -07:00
Kubernetes Prow Robot
93054957c1
Merge pull request #111859 from omertuc/fixparallelclosure2
Fix failing `test/e2e/storage/csi_mock_volume.go` test
2022-08-17 09:09:11 -07:00
Andy Goldstein
d08b69e8d3 watch cache: metrics: objectType -> group resource
Use the group resource instead of objectType in watch cache metrics,
because all CustomResources are grouped together as
*unstructured.Unstructured, instead of 1 entry per type.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-08-17 09:33:34 -04:00
Andy Goldstein
397533a4c2 watch cache: log GroupResource, not objectType
All CustomResources are treated as *unstructured.Unstructured, leading
the watch cache to log anything related to CRs as Unstructured. This
change uses the schema.GroupResource instead of object type for all type
related log messages in the watch cache, resulting in distinct output
for each CR type.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-08-17 09:33:33 -04:00
Omer Tuchfeld
44a59710ea Fix failing test/e2e/storage/csi_mock_volume.go test
Followup on https://github.com/kubernetes/kubernetes/pull/111846. This
particular test was left out from that PR because once it was enabled it
started failing. It was desired to merge
https://github.com/kubernetes/kubernetes/pull/111846 irrespective of
this particular test.

The failure in the test was caused due to the
`createFSGroupRequestPreHook` mock CSI driver hook function assuming
that the request object passed to it is an instance of the respective
struct, but it's actually a pointer instead. This resulted in the hook
function not fulfilling its purpose, and the so the test failed.
2022-08-17 14:38:45 +02:00
Lukasz Szaszkiewicz
be2c707a4c integration: TestCacheControl and TestHSTS close the ResponseBody 2022-08-17 13:29:01 +02:00
lojies
89fdd8858b code cleanup: omit comparison to bool constant 2022-08-17 14:46:32 +08:00
Kubernetes Release Robot
619f1cf552 CHANGELOG: Update directory for v1.25.0-rc.1 release 2022-08-16 17:35:00 +00:00
Han Kang
6c451da127 add counter metric for dashpole
Change-Id: I4a235c0d8b936da960cf5ce25cdd992e94130391
2022-08-16 09:19:26 -07:00
Ashutosh Kumar
08bd22670f incorporate review comments
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>
2022-08-16 21:28:58 +05:30
Dan Winship
946ce55b04 kube-proxy: use API constants for proxy modes rather than local redefinitions 2022-08-16 09:30:42 -04:00
Dan Winship
1609017f2b kube-proxy: remove ipvs-to-iptables fallback
If the user passes "--proxy-mode ipvs", and it is not possible to use
IPVS, then error out rather than falling back to iptables.

There was never any good reason to be doing fallback; this was
presumably erroneously added to parallel the iptables-to-userspace
fallback (which only existed because we had wanted iptables to be the
default but not all systems could support it).

In particular, if the user passed configuration options for ipvs, then
they presumably *didn't* pass configuration options for iptables, and
so even if the iptables proxy is able to run, it is likely to be
misconfigured.
2022-08-16 09:30:08 -04:00
Dan Winship
9f69a3a9d4 kube-proxy: remove iptables-to-userspace fallback
Back when iptables was first made the default, there were
theoretically some users who wouldn't have been able to support it due
to having an old /sbin/iptables. But kube-proxy no longer does the
things that didn't work with old iptables, and we removed that check a
long time ago. There is also a check for a new-enough kernel version,
but it's checking for a feature which was added in kernel 3.6, and no
one could possibly be running Kubernetes with a kernel that old. So
the fallback code now never actually falls back, so it should just be
removed.
2022-08-16 09:21:34 -04:00
Dan Winship
477d14e53b Reorganize "kube-proxy --cleanup-and-exit"
This was implemented partly in server.go and partly in
server_others.go even though even the parts in server.go were totally
linux-specific. Simplify things by putting it all in server_others.go
and get rid of some unnecessary abstraction.
2022-08-16 09:16:05 -04:00
kerthcet
b27ceebc93 Remove out-of-date comments
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-08-16 14:05:11 +08:00
ialidzhikov
7c8a151faa pkg/scheduler: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-08-16 08:39:18 +03:00
Kubernetes Prow Robot
d5fdf3135e
Merge pull request #111846 from omertuc/fixparallelclosure
Fix capture loop vars in parallel or ginkgo tests
2022-08-15 11:51:55 -07:00
Omer Tuchfeld
eb317ecd40 Fix capture loop vars in parallel or ginkgo tests
Fixes instances of #98213 (to ultimately complete #98213 linting is
required).

This commit fixes a few instances of a common mistake done when writing
parallel subtests or Ginkgo tests (basically any test in which the test
closure is dynamically created in a loop and the loop doesn't wait for
the test closure to complete).

I'm developing a very specific linter that detects this king of mistake
and these are the only violations of it it found in this repo (it's not
airtight so there may be more).

In the case of Ginkgo tests, without this fix, only the last entry in
the loop iteratee is actually tested. In the case of Parallel tests I
think it's the same problem but maybe a bit different, iiuc it depends
on the execution speed.

Waiting for the CI to confirm the tests are still passing, even after
this fix - since it's likely it's the first time those test cases are
executed - they may be buggy or testing code that is buggy.

Another instance of this is in `test/e2e/storage/csi_mock_volume.go` and
is still failing so it has been left out of this commit and will be
addressed in a separate one
2022-08-15 16:28:50 +02:00
wanlei
22b0be9842
fix(apf): not reset apf when panic 2022-08-15 10:38:50 +08:00
Stephen Heywood
06346de0bb Create e2e test for endpoint: replaceCoreV1Namespace 2022-08-15 10:14:33 +12:00
ialidzhikov
f2bc2ed2da pkg/proxy: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-08-14 18:27:33 +03:00
ialidzhikov
76bf5a41cf cmd/kubeadm: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-08-14 12:49:45 +03:00
ialidzhikov
17c14ced18 cmd/kube-proxy: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-08-13 22:01:02 +03:00
tianyang ni
8310c8f6cc fix(typo): remove extra " from autoscaling doc string
Signed-off-by: tianyang ni <tianzong48@gmail.com>
2022-08-13 22:51:28 +08:00
Han Kang
822c52c220 address comments
Change-Id: I9c9854b8bb3221e4791c70f566361bd0421061c1
2022-08-12 18:11:02 -07:00
Kubernetes Prow Robot
132f29769d
Merge pull request #111697 from thockin/master
Docs: node-port-range should not overlap ephemeral
2022-08-12 13:44:32 -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
kidddddddddddddddddddddd
b5f0c34ef1 replace os.Exit with FlushAndExit 2022-08-12 17:34:13 +08:00
Wei Huang
a07e27082a
Fix potential context leaking in scheduler 2022-08-11 22:22:40 -07:00
Wei Huang
469e63eb5b
[sched] Add more retriable errors 2022-08-11 20:48:20 -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
7b1b801295
Merge pull request #111773 from amewayne/fix_mem_leak_in_preemption
fix a memory leakage problem when calling DryRunPreemption
2022-08-11 08:36:58 -07:00
SataQiu
25a81a7514 kube-proxy: optimize the format of the flag usage string 2022-08-11 19:37:25 +08:00
Antonin Bas
2e282e8e02 Update Netpol e2e tests to use framework CreateNamespace
The main purpose of this change is to update the e2e Netpol tests to use
the srandard CreateNamespace function from the Framework. Before this
change, a custom Namespace creation function was used, with the
following consequences:

* Pod security admission settings had to be enforced locally (not using
  the centralized mechanism)
* the custom function was brittle, not waiting for default Namespace
  ServiceAccount creation, causing tests to fail in some infrastructures
* tests were not benefiting from standard framework capabilities:
  Namespace name generation, automatic Namespace deletion, etc.

As part of this change, we also do the following:

* clearly decouple responsibilities between the Model, which defines the
  K8s objects to be created, and the KubeManager, which has access to
  runtime information (actual Namespace names after their creation by
  the framework, Service IPs, etc.)
* simplify / clean-up tests and remove as much unneeded logic / funtions
  as possible for easier long-term maintenance
* remove the useFixedNamespaces compile-time constant switch, which
  aimed at re-using existing K8s resources across test cases. The
  reasons: a) it is currently broken as setting it to true causes most
  tests to panic on the master branch, b) it is not a good idea to have
  some switch like this which changes the behavior of the tests and is
  never exercised in CI, c) it cannot possibly work as different test
  cases have different Model requirements (e.g., the protocols list can
  differ) and hence different K8s resource requirements.

For #108298

Signed-off-by: Antonin Bas <abas@vmware.com>
2022-08-10 11:38:26 -07: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
Ashutosh Kumar
707d50d806 chore(e2e): add e2e test for non graceful node shutdown
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>
2022-08-10 21:55:00 +05:30
Kubernetes Prow Robot
3b945fd77d
Merge pull request #111746 from RomanBednar/retro-sc-assignment-int
Add integration test for Retroactive default StorageClass assignement
2022-08-10 09:04:25 -07:00