Fabian Fulga
407bd6a4af
Revert "Add e2e tests for node log viewer" ( #114636 )
...
This reverts commit ff92963551
.
2022-12-21 08:07:27 -08:00
Kubernetes Prow Robot
a6d66d15f6
Merge pull request #114632 from neolit123/1.27-fix-dry-run-server-version
...
kubeadm: handle dry run GET actions from fake discovery
2022-12-21 04:11:26 -08:00
Lubomir I. Ivanov
54b73deaca
kubeadm: handle dry run GET actions from fake discovery
...
The kubeadm dry run client reactor code is flawed as it assumes
all invoked "get" verb actions can be casted to GetAction.
Apparently that is not the case when Discovery().ServerVersion()
and other discovery calls are made. In such cases the action
type is the bare ActionImpl.
Catch if an action can be casted to ActionImpl and construct a
GetAction from it. GetActionImpl only suppersets ActionImpl with
a Name field (empty string in this case).
Add unit test for Discovery().ServerVersion().
2022-12-21 11:49:59 +02:00
Kubernetes Prow Robot
55181b72a2
Merge pull request #113799 from r4f4/nettest-priv-ip
...
tests: network: Prefer internal IPs first
2022-12-20 17:37:24 -08:00
Kubernetes Prow Robot
e218e0ede4
Merge pull request #114602 from Shubham82/Remove_context
...
Removed the reverted changes from Changelogv1.26.md
2022-12-20 16:31:36 -08:00
Kubernetes Prow Robot
6a48538090
Merge pull request #114326 from sunnylovestiramisu/fixReconstructionBug
...
Add pod to dsw if termination is not completed during reconstruction
2022-12-20 16:31:24 -08:00
Kubernetes Prow Robot
7814d10882
Merge pull request #114611 from soltysh/wait_timeout
...
Fix wait test timeout
2022-12-20 13:17:25 -08:00
Kubernetes Prow Robot
5882479457
Merge pull request #114585 from JoelSpeed/fix-resource-requirements-claims
...
Resource Claims must be a map type, not set
2022-12-20 12:11:24 -08:00
Joel Speed
e50e8a0c91
Resource claims should be a map type
2022-12-20 19:05:07 +00:00
Kubernetes Prow Robot
ff23a12e64
Merge pull request #112019 from antoninbas/use-framework-helpers-to-create-namespaces
...
e2e: Use framework helpers to create namespaces
2022-12-20 10:17:56 -08:00
Kubernetes Prow Robot
40cdba5bcd
Merge pull request #110710 from harshanarayana/bug/GIT-110697/refactor-active-deadline-second-tests
...
job_controller: refactor job controller to be able to inject FakeClock for UTs
2022-12-20 10:17:45 -08:00
Kubernetes Prow Robot
d84e4baf9a
Merge pull request #114608 from neolit123/1.27-fix-dry-run-kubelet-backup-bug
...
kubeadm: revert feature to backup kubelet config for "upgrade node"
2022-12-20 09:00:06 -08:00
Kubernetes Prow Robot
9b98d873f4
Merge pull request #114594 from pacoxu/remove-testdata-v1.24
...
drop the api testdata for v1.24.0
2022-12-20 08:59:54 -08:00
Kubernetes Prow Robot
b704b96565
Merge pull request #114578 from ardaguclu/wrap-ctx-error-until
...
Embed context deadline exceeded in error to let errors.Is can work
2022-12-20 08:59:43 -08:00
Maciej Szulik
132f8127a3
Fix wait test timeout
2022-12-20 17:02:23 +01:00
Harsha Narayana
208c3868cf
job controller: refactored job controller to be able to inject FakeClock for Unit Test
2022-12-20 21:29:24 +05:30
Kubernetes Prow Robot
3658fd4d86
Merge pull request #114604 from aojea/ccm_logs
...
store cloud-controller-manager logs
2022-12-20 07:47:45 -08:00
Lubomir I. Ivanov
b0f38b223e
kubeadm: revert feature to backup kubelet config for "upgrade node"
...
There seems to be a bug where it's not possible to write to
/etc/kubernetes/tmp... at the time of backing up the old kubelet
config.yaml
Also this kubelet config backup only targets "upgrade node"
and it should also target "upgrade apply".
Revert the related changes until a fully working feature
is implemented.
2022-12-20 16:28:28 +02:00
Kubernetes Prow Robot
05a0ce83a6
Merge pull request #114600 from aojea/e2e_external_nodeport
...
e2e: don't assume NodeIP are reachable
2022-12-20 04:53:43 -08:00
Antonio Ojea
e3d0452bcf
store cloud-controller-manager logs
...
Change-Id: I26ae13c921590b622ce73c101db828c653bd65ff
2022-12-20 11:39:18 +00:00
Antonio Ojea
f333e5b4c5
e2e NodePorts should be tested within the cluster
...
The NodePort functionality can be tested within the cluster.
Testing from outside the cluster assumes that there is connectivity
between the e2e.test binary and the cluster under test, that is not
always true, and in some cases is exposed to external factors or
misconfigurations like wrong routes or firewall rules that impact
on the test.
Change-Id: Ie2fc8929723e80273c0933dbaeb6a42729c819d0
2022-12-20 10:21:59 +00:00
Shubham Kuchhal
3b9dd0421f
Removed the reverted changes from Changelogv1.26
2022-12-20 14:37:41 +05:30
Paco Xu
329e76db26
drop the api testdata for v1.24.0
2022-12-20 09:37:36 +08:00
Antonin Bas
0194705db3
Indicate that manual Namespace creation for local ingress scale tests is intentional
...
Signed-off-by: Antonin Bas <abas@vmware.com>
2022-12-19 12:44:04 -08:00
Antonin Bas
62b77b7c01
e2e: Use framework helpers to create namespaces for webhook tests
...
Signed-off-by: Antonin Bas <abas@vmware.com>
2022-12-19 12:43:59 -08:00
Kubernetes Prow Robot
0fdb14f63a
Merge pull request #114581 from pacoxu/v1.26.0-api-testdata
...
Add v1.26.0 API testdata
2022-12-19 12:15:44 -08:00
Kubernetes Prow Robot
eb34f69562
Merge pull request #114584 from soltysh/describe_cr
...
Skip .metadata.manageFields when describing unkown resources
2022-12-19 11:09:54 -08:00
Kubernetes Prow Robot
a3ca5fd2c8
Merge pull request #114456 from kidddddddddddddddddddddd/status_with_error
...
return error message when calling status.Message()
2022-12-19 11:09:43 -08:00
Arda Güçlü
369534c6ec
kubectl wait: wire generic context ( #114574 )
...
* Wire generic context to better handle timeout
* Add integration test for wait timeout
* kubectl wait: Fix integration test always passing issue
Currently, `kubectl wait` integration test always passes even if
it gets an error. Problem is object check is done after errexit is
turned off.
This PR redirects error to output and correctly assures that
object is expected status and if it is not, test should fail.
2022-12-19 09:21:56 -08:00
Kubernetes Prow Robot
0783cf49e8
Merge pull request #114291 from MaxHorstmann/master
...
#79612 fix(client-go): return error in fake discovery
2022-12-19 09:21:44 -08:00
Maciej Szulik
8e3e3479d9
Skip .metadata.manageFields when describing unkown resources
2022-12-19 17:31:30 +01:00
kidddddddddddddddddddddd
e789beb213
errMsg
2022-12-19 23:52:06 +08:00
Kubernetes Prow Robot
239f0049f6
Merge pull request #114579 from aojea/metrics_context
...
pass context to gomega
2022-12-19 06:21:44 -08:00
Paco Xu
62a2c10c68
Add v1.26.0 API testdata
2022-12-19 21:46:20 +08:00
Arda Güçlü
6b7c365f8f
Embed context deadline exceeded in error to let errors.Is can work
...
Currently, watch package embeds context deadlineexceeded error
in it's own error using `%v`, as can be seen in here;
`fmt.Errorf("UntilWithSync: unable to sync caches: %v", ctx.Err())`
However, consumers of this function can not use
`errors.Is(err, context.DeadlineExceeded)` due this `%v`.
To let consumers can distinguish context deadlineexceeded errors,
this PR changes error embedding format to `%w`.
2022-12-19 16:16:53 +03:00
Antonio Ojea
e0a23577d2
pass context to gomega
...
Change-Id: Ibef02a52d8922984a09efa48361b9876fc91287c
2022-12-19 13:14:02 +00:00
Kubernetes Prow Robot
a864583905
Merge pull request #114573 from pohly/e2e-ginkgo-timeout-fixes
...
e2e ginkgo timeout fixes, II
2022-12-19 04:43:44 -08:00
Kubernetes Prow Robot
c2eb6e69c4
Merge pull request #114576 from pohly/e2e-ginkgo-timeout-fixes-III
...
e2e storage: fix "Stress with local volumes [Serial] should be able to process many pods and reuse local volumes"
2022-12-19 03:37:44 -08:00
Patrick Ohly
4d7e2894b2
e2e storage: fix "Stress with local volumes [Serial] should be able to process many pods and reuse local volumes"
...
The background goroutine was started with the context from ginkgo.BeforeEach,
which then led to "context canceled" errors. While at it, the entire goroutine
start/stop gets moved into the BeforeEach and simplified.
2022-12-19 11:23:53 +01:00
Kubernetes Prow Robot
cbd16cf131
Merge pull request #114569 from aojea/e2e_taint_informer
...
e2e node taints stop controller with context
2022-12-19 01:57:43 -08:00
Patrick Ohly
1bc24630da
e2e scheduling: remove redundant stopCh
...
The ctx.Done() channel associated with the current test can be used
instead. This is a simplification, both approaches work.
2022-12-19 10:00:00 +01:00
Patrick Ohly
29d6d03a3c
e2e scheduling: fix scope of context.WithTimeout
...
The original intend from v1.26.0 was to only apply the timeout to the following
cache.WaitForCacheSync.
2022-12-19 10:00:00 +01:00
Kubernetes Prow Robot
03bfbdd8aa
Merge pull request #114455 from SataQiu/fix-kubeadm-2022121302
...
kubeadm: fix the bug that kubeadm always do CRI detection even if it is not required by phase subcommand
2022-12-19 00:51:44 -08:00
Kubernetes Prow Robot
789dc88fd5
Merge pull request #114567 from aojea/e2e_dns_context
...
e2e dns don't fail if configmap does not exist
2022-12-18 16:05:53 -08:00
Kubernetes Prow Robot
948d5b8d52
Merge pull request #114565 from aojea/fix_e2e_after_contexts
...
cleanup e2e kubectl cli tests
2022-12-18 16:05:42 -08:00
Antonio Ojea
8357eead06
e2e node tains stop controller with context
...
Informers controllers must use the stop channel, and not
cancel the context of the List/Watch.
Change-Id: I42e4ae4bad4fe6ad0da6fe1b3990ebe56c8eabd9
2022-12-18 22:44:20 +00:00
Kubernetes Prow Robot
76522eb1a3
Merge pull request #114559 from liggitt/gofmt
...
Fix indentation/spacing in comments to render correctly in godoc
2022-12-18 13:47:45 -08:00
Antonio Ojea
5d8f745e86
e2e dns don't fail if configmap does not exist
...
don't fail on cleanup if the configmap for kube-dns does not exist
Change-Id: Ia56d9f590baba374e0b687aeda71d547899b1713
2022-12-18 19:23:36 +00:00
Antonio Ojea
e05e96bfdd
e2e kubect run tests
...
These tests create their own pods, however, they were inside a block
that was always creating a pod, that was not used later on the tests,
but can influence on the conditions asserted to succeed the test.
Change-Id: I3bb9a0f123fb0766d75934ef8e197f92e3f5f3b8
2022-12-18 16:22:15 +00:00
Kubernetes Prow Robot
7cf7cc2dfb
Merge pull request #114564 from pohly/e2e-ginkgo-timeout-fixes
...
e2e ginkgo timeout fixes
2022-12-18 08:11:42 -08:00