Commit Graph

44631 Commits

Author SHA1 Message Date
renzheng.wang
7486d1bf1b fix comment of IngressClassParametersReferenceScopeCluster 2022-04-15 23:22:50 +08:00
Aldo Culquicondor
3b18613be8 Disable JobTrackingWithFinalizers due to unresolved bug
Change-Id: Ieeeab689ae51dfe0dc06bdca88519d0ecf66d636
2022-04-14 15:08:14 -04:00
Kensei Nakada
ccd6f7aa55 Copy recordPluginMetrics in CycleState.Clone 2022-04-14 15:26:20 +00:00
Stephen Augustus
621c4aa599 etcd: Update container repo to gcr.io/etcd-development/etcd
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 19:04:01 -04:00
Kubernetes Prow Robot
4cdeab4696 Merge pull request #109436 from JamesLaverack/revert-108290
Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
2022-04-13 07:02:46 -07:00
James Laverack
7d57d5c70d Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
This reverts commit b9792a9dae.
2022-04-13 13:58:19 +01:00
Abdullah Gharaibeh
6d499ee9ea Correct event registration for multiple scheduler plugins. 2022-04-12 18:32:24 -04:00
Miciah Masters
5832b84200 kubelet: parseResolvConf: Handle "search ."
When parsing a resolv.conf file that has "search .", parseResolvConf should
accept the "." entry verbatim.  Before this commit, parseResolvConf
unconditionally trimmed the "." suffix, which in the case of "." resulted
in a "" entry (that is, the empty string).  This empty entry could lead
parseResolvConf to produce a resolv.conf file with "search ".  Resolvers
could fail to parse such a resolv.conf file from parseResolvConf, thus
breaking DNS resolution in pods.  After this commit, parseResolvConf
accepts a resolv.conf file with "search ." and passes the "." entry through
verbatim to produce a valid resolv.conf file.  The "." suffix is still
trimmed for any entry that does not solely comprise ".".

Follow-up to commit a215a88d91.

* pkg/kubelet/network/dns/dns.go (parseResolvConf): Handle a "." entry in
the search path by copying it verbatim.
* pkg/kubelet/network/dns/dns_test.go (TestParseResolvConf): Add a test
case for "search .".
2022-04-12 15:39:31 -04:00
Vladimir Nachev
9b4927be15 Fix typo in TokenRequest doc string 2022-04-11 23:58:06 +03:00
Dan Winship
0ecf11a23b proxy/iptables: add a general test of internal vs external traffic
Add TestInternalExternalMasquerade, which tests whether various
packets are considered internal or external for purposes of traffic
policy, and whether they get masqueraded, with and without
--masquerade-all, with and without a working LocalTrafficDetector.
(This extends and replaces the old TestMasqueradeAll.)
2022-04-11 13:23:08 -04:00
Dan Winship
f4261283ac proxy/iptables: add packet-flow-based tests of iptables rules
Add a new framework for testing out how particular packets would be
handled by a given set of iptables rules. (eg, "assert that a packet
from 10.180.0.2 to 172.30.0.41:80 gets NATted to 10.180.0.1:80 without
being masqueraded"). Add tests using this to all of the existing unit
tests.

This makes it easier to tell whether a given code change has any
effect on behavior, without having to carefully examine the diffs to
the generated iptables rules.
2022-04-11 13:23:08 -04:00
Dan Winship
cd55f35306 proxy/iptables: tweak sortIPTablesRules a bit
It's confusing to have the "this must be the last rule" get sorted to
be the first rule in KUBE-SERVICES...
2022-04-07 08:38:14 -04:00
Dan Winship
d9ca665551 proxy/iptables: fix up some test case comments 2022-04-07 08:38:14 -04:00
Dan Winship
261f4f9e2d proxy/iptables: remove redundant test
We originally had one HealthCheckNodePort test that used
assertIPTablesRulesEqual() and one that didn't, but later I went
through and made all the tests use assertIPTablesRulesEqual() and
didn't notice that this resulted in there now being two
nearly-identical HealthCheckNodePort tests.
2022-04-07 08:36:34 -04:00
Deepak Kinni
8bfd9d63cf Rollback HonorPVReclaimPolicy feature to Alpha
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
2022-04-07 16:10:50 +05:30
Deepak Kinni
a7b1fcba40 Add or Remove PV deletion protection finalizer considering the recalimPolicy
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
2022-04-07 00:48:35 +05:30
Mayank Kumar
376b3c4b9a fix some nits from API changes 2022-04-05 13:41:29 -07:00
Kubernetes Prow Robot
2da1558909 Merge pull request #109213 from bridgetkromhout/kep-1435
Feature flag change when moving from alpha to beta
2022-04-05 10:33:37 -07:00
zhucan
1c1faf97ee generated code and doc
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-04-05 11:36:24 +08:00
Humble Chirammal
c74b393771 csi: add nodeExpandSecret support for CSI client
CSI spec 1.5 enhanced the spec to add optional secrets field to
NodeExpandVolumeRequest. This commit adds NodeExpandSecret to the
CSI PV source and also derive the expansion secret in csiclient to
send it out as part of the nodeexpand request.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-04-05 11:36:23 +08:00
zhucan
eb2ebddf61 fix: add unit test
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-04-05 11:35:14 +08:00
Kubernetes Prow Robot
c4fdf3ded6 Merge pull request #109290 from gnufied/fix-inline-migrations-spec
Fix error for inline migrated volumes
2022-04-04 14:35:47 -07:00
Kubernetes Prow Robot
11a6146283 Merge pull request #109245 from alculquicondor/fix-nominate
Fix: abort nominating a pod that was already scheduled to a node
2022-04-04 12:55:51 -07:00
Hemant Kumar
5da524d973 Fix error for inline migrated volumes
Inline migrated volumes report a PV, even though they are not backed
by PV.
2022-04-04 13:14:29 -04:00
Jordan Liggitt
34522912d7 Revert "Enable ServerSideFieldValidation feature gate on by default in beta"
This reverts commit a3a24e1c7b.
2022-04-04 12:26:49 -04:00
Kubernetes Prow Robot
a814b2af1c Merge pull request #109272 from liggitt/cronjob-feature-gate
Move cron job feature gate to correct file
2022-04-04 08:56:23 -07:00
Aldo Culquicondor
429457e184 Fix: abort nominating a pod that was already scheduled to a node
Change-Id: Iacb8530769e7a93e3bc8384cf51d7a8fd9a192e1
2022-04-04 10:52:59 -04:00
Kubernetes Prow Robot
3b5044fefd Merge pull request #109218 from Abirdcfly/delete_test
cleanup: skip a test validate time_zone letter case in darwin
2022-04-04 07:38:12 -07:00
Johannes Scheerer
a3b7f219a1 Cleanup KUBE-NODE-PORT chain in filter table.
When cleaning up iptables rules and ipsets used by kube-proxy in IPVS mode
iptables chain KUBE-NODE-PORT needs to be deleted before ipset
KUBE-HEALTH-CHECK-NODE-PORT can be removed. Therefore, deletion of
iptables chain KUBE-NODE-PORT is added in this change.
2022-04-04 16:10:06 +02:00
Abirdcfly
ceceb96f3d cleanup: skip a test validate time_zone letter case in darwin
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-04-04 16:50:45 +08:00
Jordan Liggitt
495b01ef6c Move cron job feature gate to correct file 2022-04-03 22:56:01 -04:00
Qiming Teng
37d5e9292e Generated files 2022-04-02 10:16:51 -07:00
Kubernetes Prow Robot
e04a4e1c5b Merge pull request #105599 from jonyhy96/fix-pod-workers-test
fix: pod workers test
2022-04-02 06:50:09 -07:00
Kubernetes Prow Robot
14cc997d03 Merge pull request #107178 from SataQiu/deprecated-20211222
kube-controller-manager: remove unused option deployment-controller-sync-period for deployment controller
2022-04-01 21:22:10 -07:00
Kubernetes Prow Robot
3024ddcfe2 Merge pull request #109241 from ravisantoshgudimetla/sts-ar-optional
Make STS available replicas optional
2022-04-01 19:52:20 -07:00
Kubernetes Prow Robot
bfaeca817c Merge pull request #109119 from Huang-Wei/shorten-taint-msg
compact scheduling failure msg for taint/toleration mismatch
2022-04-01 13:50:10 -07:00
Kubernetes Prow Robot
978d9683f5 Merge pull request #108930 from MaxRenaud/kep2086
Add sync_proxy_rules_no_endpoints_total metric
2022-04-01 10:00:47 -07:00
ravisantoshgudimetla
807ae0c318 [sts] api: Make available replicas optional 2022-04-01 11:54:50 -04:00
ravisantoshgudimetla
9eb544e78a [sts] Generated: Make available replicas optional 2022-04-01 11:54:02 -04:00
Max Renaud
6454248b6b Moved counting logic to accommodate rebase 2022-04-01 15:52:21 +00:00
Bridget Kromhout
3143cd71d0 Feature flag change when moving from alpha to beta
Signed-off-by: Bridget Kromhout <bridget@kromhout.org>
2022-03-31 19:23:36 -05:00
Kubernetes Prow Robot
cc3a250f6a Merge pull request #108491 from liggitt/feature-defaults-test
Exercise defaulting tests with/without features enabled
2022-03-31 14:43:06 -07:00
Kubernetes Prow Robot
17381762dd Merge pull request #109200 from dashpole/fix_lint
Fix copylock vet errors in component-base metrics
2022-03-31 12:06:36 -07:00
Max Renaud
61b7e6c49c Changed usage of NodeLocal* to *PolicyLocal 2022-03-31 18:55:47 +00:00
Max Renaud
198367a486 Added test where both policies are set 2022-03-31 18:54:28 +00:00
Max Renaud
ba4f5c4e7b use sets.String for tracking IPVS no local endpoint metric 2022-03-31 18:54:27 +00:00
Max Renaud
f0dfac5d07 Add sync_proxy_rules_no_local_endpoints_total metric 2022-03-31 18:54:23 +00:00
Jordan Liggitt
2b52a1e509 Drop enum tag from certificate request condition 2022-03-31 12:31:47 -04:00
David Ashpole
120da3bb9b fix copylock vet errors in component-base metrics 2022-03-31 15:07:11 +00:00
Maciej Wyrzuc
1108bed763 Revert "Field status.hostIPs added for Pod (#101566)"
This reverts commit 61b3c028ba.
2022-03-31 12:39:45 +00:00