Commit Graph

116719 Commits

Author SHA1 Message Date
Chris Bandy
2e76ac31fd Replace os.Setenv with testing.T.Setenv in tests
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
2023-06-05 21:08:56 -05:00
Chris Bandy
ac5ce5cbce Replace os.Setenv with testing.T.Setenv in tests
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
2023-06-05 21:03:21 -05:00
Riaan Kleinhans
b274a9bf7c
remove csidriver endpoints from pending_eligible_endpoints.yaml 2023-06-06 11:22:41 +12:00
Stephen Heywood
5d4bf0b6f9 Promote CSIDriver e2e test to Conformance 2023-06-06 10:28:39 +12:00
Kubernetes Prow Robot
c07c739f04
Merge pull request #118282 from wojtek-t/retry_after_followup
Follow up from dynamic retryAfter
2023-06-05 15:03:06 -07:00
Eric Lin
3085b57869 Do not copy bytes for cached serializations
Since cachingObject has the encoded data cached and they are not
supposed to change. It's memory efficient to just copy the slice
references.

Signed-off-by: Eric Lin <exlin@google.com>
2023-06-05 18:03:48 +00:00
Humble Chirammal
c009667c6c deprecate CephFS plugin from available in-tree drivers.
https://groups.google.com/a/kubernetes.io/g/dev/c/g8rwL-qnQhk
based on above, the consensus was to start the deprecation in v1.28.

This commit start the deprecation process of CephFS plugin from
in-tree drivers.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-06-05 23:26:43 +05:30
Kubernetes Prow Robot
2901730626
Merge pull request #118451 from jingxu97/june/podonly
Add mininumKubelet tag into ReadWriteOncePod test
2023-06-05 10:51:27 -07:00
TommyStarK
1fcfd1d509 pkg/util/iptables: use buf.String() instead of string(buf.Bytes())
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-05 19:47:47 +02:00
Yuan Chen
9eaa50cc82 Rename scheduler queue variables for consistency 2023-06-05 09:02:06 -07:00
Kubernetes Prow Robot
bba9833c39
Merge pull request #118404 from pohly/verify-failures
better JUnit failure messages for golangci-lint and verify in general
2023-06-05 08:31:26 -07:00
Kubernetes Prow Robot
34abd36e88
Merge pull request #118443 from TommyStarK/kubectl-clean-code-bytes-buffer
kubectl: use bytes.Buffer.String
2023-06-05 07:31:38 -07:00
Kubernetes Prow Robot
43dd3cce73
Merge pull request #118413 from mimowo/fix-backoff-delay-computation
Adjust the algorithm for computing the pod finish time
2023-06-05 07:31:26 -07:00
jay vyas
6195f96e56
minor fix comments in netpol so its easy to understand the tests for newcomers, remove one misleading comment (#118264)
* Fix comments in the netpol tests for new contributors to understand them better

* typo
2023-06-05 05:31:25 -07:00
Kubernetes Prow Robot
72a3990728
Merge pull request #118442 from SataQiu/clean-scheduler-20230604
Scheduler: fix code style issues for pkg/scheduler
2023-06-05 04:13:25 -07:00
SataQiu
410b6023d6 scheduler: fix code style issues for pkg/scheduler 2023-06-05 17:29:49 +08:00
Michal Wozniak
71ab7dc791 Remarks 2023-06-05 10:48:32 +02:00
Michal Wozniak
70d3bb43e5 Adjust the algorithm for computing the pod finish time
Change-Id: Ic282a57169cab8dc498574f08b081914218a1039
2023-06-05 10:06:56 +02:00
jinxu
b994e639a6 Add mininumKubelet tag into ReadWriteOncePod test
ReadWriteOncePod feature needs min requirement of 1.27 kubelet, add the
tag to skip test if kubelet version is smaller than 1.27

Change-Id: I27959156db90f2477cead6dfc16f42dbc54663bc
2023-06-04 23:10:10 -07:00
Sascha Grunert
db9fcfeed2
Move cri/streaming to k8s.io/kubelet staging repository
Container runtimes like CRI-O and containerd reuse the code by copying
it from Kubernetes. To have a single source of truth for the streaming
server we now move the already isolated implementation to the
k8s.io/kubelet staging repository. This way runtimes can re-use the code
without copying the parts.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-05 08:08:18 +02:00
TommyStarK
da4a8d831b kubectl: use bytes.Buffer.String
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-04 15:45:24 +02:00
Kubernetes Prow Robot
eca1f9d2d5
Merge pull request #118433 from testwill/ipvs
chore: should use buf.String() instead of string(buf.Bytes())
2023-06-04 02:54:41 -07:00
Gunju Kim
f520f6fd06 Add Pod Termination e2e tests to test termination grace period seconds 2023-06-04 01:12:02 +08:00
HirazawaUi
b4dfae25de fix terminationGracePeriod blocked by preStop 2023-06-04 01:04:13 +08:00
Kubernetes Prow Robot
bb87860868
Merge pull request #118356 from ritazh/ec-admission
Add ephemeralcontainer to imagepolicy securityaccount admission plugin
2023-06-03 05:30:41 -07:00
guoguangwu
fd92acba5a chore: should use buf.String() instead of string(buf.Bytes()) 2023-06-03 13:48:15 +08:00
Kubernetes Prow Robot
039ae1edf5
Merge pull request #118414 from thockin/remove_codegen_debug
Fix errant debugging code in codegen
2023-06-02 13:58:41 -07:00
Antoine Pelisse
20866b3f85 dryrun: Don't reuse current object for conversion
dry-run and non-dry-run are currently a little different since dry-run
was using the destination object to get the current status. That causes
a weird duplication bug with the HorizontalPodAutoscaler conversion
code. Addresses the bug by using an empty object for the current state
and keep the destination for its actual "out" purpose.
2023-06-02 13:40:48 -07:00
Dr. Stefan Schimanski
f351c6d1ec
k8s.io/apiserver: apply storage object count tracker implicitly 2023-06-02 20:24:06 +02:00
Tim Hockin
45c9e06616
Fix errant debugging code in codegen 2023-06-02 10:09:51 -07:00
Kubernetes Prow Robot
bd0ac4cba3
Merge pull request #118384 from Jefftree/gnostic-models-branch
Update gnostic library to point to gnostic-models
2023-06-02 10:06:53 -07:00
SataQiu
a51be9786b remove enabled by default beta resources that have been removed 2023-06-03 00:06:50 +08:00
Patrick Ohly
f4d326a1fc verify: produce JUnit file also for pull-kubernetes-verify-strict-lint
Because this doesn't get invoked through verify.sh, we have to call
logJu ourselves to get a JUnit file. errexit must not be set when
calling logJu, otherwise it does no post-processing.
2023-06-02 17:38:14 +02:00
Kensei Nakada
a4ea058cc7 feature(scheduler_perf): distinguish result in scheduler_scheduling_attempt_duration_seconds metric result 2023-06-02 14:45:55 +00:00
Jefftree
322968e9b3 Update unwanted dependencies per CI instructions 2023-06-02 14:34:26 +00:00
Jefftree
2111e79f56 Update gnostic references 2023-06-02 14:34:26 +00:00
Jefftree
1993a4cb37 vendor 2023-06-02 14:34:25 +00:00
Patrick Ohly
0b4efddae0 verify: nicer failure message rendering in Prow
The "message" attribute is redundant. Adding line breaks ensures that the curly
brackets used by Prow are on separate lines.

Before:
    {Script Error ScriptError test/e2e/e2e.go:437:5: var `unused` is unused (unused)
    var unused = 1 // intentionally trigger a golangci-lint warning.
        ^}

After:
    {ScriptError
    test/e2e/e2e.go:437:5: var `unused` is unused (unused)
    var unused = 1 // intentionally trigger a golangci-lint warning.
        ^
    }
2023-06-02 15:39:27 +02:00
Patrick Ohly
dbbb21469f verify: pick relevant lines from verify-golangci-lint.sh as failure message
When sh2ju.sh was called to generate the junit_verify.xml, it used to include
the entire output of a failed script twice: once as failure message, once as
log output.

This output can be large and often the actual failure isn't near the top, but
rather at the end or (in the case of the different golangci-lint invocations)
embedded in the log. This makes them hard to see at a glance when looking at
the Prow result page for a job.

Now a verify script can prefix relevant lines with "ERROR: " and then only
those lines are used as failure message in JUnit, without that prefix.

That string was chosen because Prow itself also then picks up those lines when
viewing the entire build log and it is unlikely that some script prints such
lines when they are not meant to be part of the failure.

If some script outputs no such lines, "see stderr for details" is used as
failure message. This is better than before because it avoids the redundancy.
2023-06-02 15:37:50 +02:00
Kubernetes Prow Robot
2eb4eac581
Merge pull request #118353 from SataQiu/fix-kubeadm-test-20230531
kubeadm: add command-line integration test to ensure that the supported etcd version is always available for the stable Kubernetes version
2023-06-02 04:40:53 -07:00
Kubernetes Prow Robot
08579e8a8a
Merge pull request #118388 from andyzhangx/revert-118236-remove-azurefile
Reinstate the azureFile in-tree storage plugin (revert removal)
2023-06-02 03:32:53 -07:00
Rita Zhang
d6168bb658
Add ephemeralcontainer to imagepolicy securityaccount admission plugin
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-06-01 23:05:06 -07:00
Andy Zhang
1ce285ad3d
Revert "removed the deprecated azureFile in-tree storage plugin" 2023-06-02 10:20:53 +08:00
Kubernetes Prow Robot
decf1e1a9b
Merge pull request #117870 from howardjohn/client/run-errorhandler-race
informer: fix race against Run and SetTransform/SetWatchErrorHandler
2023-06-01 15:41:45 -07:00
Kubernetes Prow Robot
0291a59a8c
Merge pull request #118380 from SataQiu/add-deprecation-message
kubeadm: add deprecation message for UpgradeAddonsBeforeControlPlane feature gate
2023-06-01 10:49:45 -07:00
Kubernetes Prow Robot
2815a28dfa
Merge pull request #118339 from jpbetz/bump-cel-go
Bump cel go to latest version
2023-06-01 09:09:46 -07:00
SataQiu
daa7115907 kubeadm: add deprecation message for UpgradeAddonsBeforeControlPlane feature gate 2023-06-01 23:06:26 +08:00
Kubernetes Prow Robot
33a2438de9
Merge pull request #118341 from pacoxu/add-pacoxu-kubeadm
add pacoxu to kubeadm approvers
2023-06-01 04:33:46 -07:00
Dan Winship
a6c7f63b18 Set the node-ips annotation correctly with CloudDualStackNodeIPs 2023-06-01 07:20:17 -04:00
SataQiu
d49c43abde kubeadm: add integration test to ensure that the supported etcd version is always available for the stable Kubernetes version 2023-06-01 18:45:06 +08:00