Commit Graph

107901 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
65178fec72
Merge pull request #109442 from ahg-g/ahg-fix
Correct event registration for multiple scheduler plugins
2022-04-12 16:48:46 -07:00
Abdullah Gharaibeh
6d499ee9ea Correct event registration for multiple scheduler plugins. 2022-04-12 18:32:24 -04:00
Kevin Delgado
581ac7f446 Add Apply and ApplyStatus methods to dynamic ResourceInterface 2022-04-12 21:55:40 +00: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
Abhijit Hoskeri
ea6e653db1 conformance-test: use kubelet healthz port.
The readonly port could be disabled.

Since we are only using the /healthz endpoint,
we can use the healthz port.

Change-Id: If004f2888ca5847b9e2d8c02d5615bed52d94b24
2022-04-11 16:57:29 -07: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
Davanum Srinivas
984037d4f7
Set default flake attempt to 1 (not 2)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-04-10 20:24:17 -04:00
Kubernetes Prow Robot
7380fc735a
Merge pull request #109109 from mborsz/exec_time
Add apf_execution_time log field.
2022-04-08 07:50:43 -07:00
Kubernetes Prow Robot
9984048bd5
Merge pull request #109365 from alculquicondor/fix-integration
Retry Job update on conflict
2022-04-08 05:04:42 -07:00
Elana Hashman
eb540aaa4a
Update OWNERS file for stable metrics 2022-04-07 13:22:39 -07:00
Aldo Culquicondor
77d9243623 Retry Job update on conflict
Once JobReadyPods is enabled, the Job status might be updated at a later stage after the pods are running.

Change-Id: I4c13c9e55ab7e11b1f9428d6cf0a560a41be1c6a
2022-04-07 09:38:20 -04:00
Kubernetes Prow Robot
707b8b6efd
Merge pull request #109362 from deepakkinni/rollback_alpha_v1
Rollback HonorPVReclaimPolicy feature to Alpha
2022-04-07 05:41:57 -07: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
Kubernetes Prow Robot
df1a3ddc98
Merge pull request #109205 from deepakkinni/fix_fin_v1
Add or Remove PV deletion protection finalizer based on PV recalimPolicy
2022-04-07 02:57:57 -07:00
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
Kubernetes Prow Robot
21184400a4
Merge pull request #109340 from liggitt/revert-generate-name
Revert generate name
2022-04-06 10:38:55 -07:00
Jordan Liggitt
e570744ca9 Revert "add test to dry-run for unwanted generated values"
This reverts commit 48994c1518.
2022-04-06 12:34:49 -04:00
Jordan Liggitt
adb7621919 Revert "remove unwanted values returned from dry-run"
This reverts commit 60c1d58d02.
2022-04-06 12:34:42 -04:00
kerthcet
fbf07e989c fix: forget to call close() in error
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-06 22:21:23 +08:00
pengpeng wu
0b076a3dc3 Fix: test case wrong output in cmd/kubeadm/app/cmd/completion_test.go 2022-04-06 10:59:58 +08:00
Kubernetes Prow Robot
820247a3ae
Merge pull request #109321 from jsturtevant/disable-conformance-test-for-windows
Disable newly enabled Conformance node->pod tests for Windows
2022-04-05 19:42:55 -07:00
Kubernetes Prow Robot
e9497e5999
Merge pull request #109212 from alexzielenski/copylock-fix
apimachinery: remove implicit copy of a lock
2022-04-05 17:16:55 -07:00
James Sturtevant
3d09201dbd Disable node->pod tests for Windows 2022-04-05 16:17:13 -07:00
Kubernetes Prow Robot
8cd689e40d
Merge pull request #109283 from s-urbaniak/ratchet-e2e
test/e2e/framework: use restricted policy by default, default existing tests to privileged
2022-04-05 14:37:25 -07:00
Mayank Kumar
376b3c4b9a fix some nits from API changes 2022-04-05 13:41:29 -07:00
Kubernetes Prow Robot
25fa92cd7d
Merge pull request #109314 from SergeyKanzhelev/properRetryInSSH
fix the retry logic in ssh in test framework
2022-04-05 13:34:01 -07:00
Kubernetes Prow Robot
66369f47ec
Merge pull request #109294 from Riaankl/NetworkPolicyStatus_endpoints
Add NetworkPolicyStatus to ineligible_endpoints.yaml
2022-04-05 13:33:49 -07:00
Kubernetes Prow Robot
a1a9dc066c
Merge pull request #109256 from chendave/nullpointer
Fix the nil pointer dereference for comformance spec validation
2022-04-05 13:33:37 -07:00
Kubernetes Prow Robot
5163909f64
Merge pull request #108867 from pohly/storage-capacity-conformance
storage capacity conformance
2022-04-05 13:33:24 -07:00
Alexander Zielenski
0706fb72b6 fix remove implicit copy of a lock
addressing #109197

fix packag enaming
2022-04-05 11:56:48 -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
Sergey Kanzhelev
ee80dd19db fix the retry logic in ssh in test framework 2022-04-05 17:14:58 +00:00
Kubernetes Prow Robot
c13d3369d5
Merge pull request #109267 from ii/promote-job-status-test
Promote Read, Replace, Patch BatchV1NamespacedJobStatus test - +3 endpoints
2022-04-05 08:23:49 -07:00
Kubernetes Prow Robot
68d26c868f
Merge pull request #107631 from lzhecheng/fix-retry-svc-to-update
Avoid updating Services with stale specs
2022-04-05 08:23:37 -07:00
Madhav Jivrajani
ae55bcda44 hack/jenkins: Remove GODEBUG workaround for sha1 changes
This commit undoes the GODEBUG=x509sha1=1 workaround.
The problem should be fixed in Go 1.18.1 now.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-04-05 20:41:19 +05:30
Kubernetes Prow Robot
c6478308f8
Merge pull request #109154 from jsafrane/fix-azure-disk-migrated-zones
Fix translation of Azure availability zones
2022-04-05 06:15:36 -07:00
Sergiusz Urbaniak
1495c9f2cd
test/e2e/*: default existing tests to privileged pod security policy
This is to ensure that all existing tests don't break when defaulting
the pod security policy to restricted in the e2e test framework.
2022-04-05 08:41:12 +02: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
0424c7c74d
Merge pull request #109114 from tkashem/client-go-retry-thread-safe
client-go: make retry in Request thread safe
2022-04-04 16:49:36 -07:00
Abu Kashem
6618b8ef7c
client-go: make retry in Request thread safe 2022-04-04 18:02:15 -04: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
71cf2ea2da
Merge pull request #108664 from mkimuram/e2e-anyvolumedatasource
Add initial E2E tests for `AnyVolumeDatasource` feature
2022-04-04 14:35:36 -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