Commit Graph

17423 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d2504c94a0 Merge pull request #114648 from liggitt/publishing-1.23
Update 1.23 publishing go version to go1.19.4
2022-12-21 17:51:26 -08:00
Kubernetes Prow Robot
815e651f39 Merge pull request #114645 from liggitt/publishing-1.24
Update 1.24 publishing go version to go1.19.4
2022-12-21 15:01:37 -08:00
Jordan Liggitt
09f7d54d0b Update 1.23 publishing go version to go1.19.4 2022-12-21 17:54:07 -05:00
Kubernetes Prow Robot
020fb2eb77 Merge pull request #113538 from pohly/e2e-ginkgo-timeline
e2e: ginkgo timeline
2022-12-21 13:53:28 -08:00
Jordan Liggitt
badde798c4 Update 1.24 publishing go version to go1.19.4 2022-12-21 15:16:53 -05: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
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
Patrick Ohly
f3ef400431 dependencies: update to ginkgo v2.6.1, gomega v1.24.2
Ginkgo v2.5.0 adds support for a "timeline": a full description of what happened
while a specific test ran, including failures, timeouts, and log output.

Ginkgo v2.6.0 adds ReportBeforeSuite which we need for
https://github.com/kubernetes/kubernetes/issues/114313.
2022-12-20 07:55:51 +01:00
Paco Xu
329e76db26 drop the api testdata for v1.24.0 2022-12-20 09:37:36 +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
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
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
Jordan Liggitt
78cb3862f1 Fix indentation/spacing in comments to render correctly in godoc 2022-12-17 23:27:38 -05:00
Kubernetes Prow Robot
2f2021e208 Merge pull request #114412 from thockin/api_warn_workloads_name_not_dnslabel
Issue API warnings when workload names are not DNS labels
2022-12-16 18:07:41 -08:00
Kubernetes Prow Robot
0f7409a230 Merge pull request #114190 from tkashem/cors-refactor
refactor CORS handler
2022-12-16 13:08:09 -08:00
Tim Hockin
276c7e860d Change DNS Label validation to check for dots
This will produce a better error message for the more common case of
using a DNS subdomain where a label is needed.
2022-12-16 13:01:02 -08:00
Julianne DeMars
94fd5bd553 Skip resize if fs is readonly (#114325)
* skip resize if fs is readonly

* run formatter + add log line for early return case

* fix error
2022-12-16 03:26:27 -08:00
Kubernetes Prow Robot
b44cbbdcb2 Merge pull request #114266 from dobsonj/vclib-index-out-of-range
legacy-cloud-providers: prevent index out-of-range in getNextUnitNumber
2022-12-15 13:21:36 -08:00
Kubernetes Prow Robot
843b40aeb4 Merge pull request #113985 from lavalamp/improved-has-synced
Propagate HasSynced properly
2022-12-15 12:15:47 -08:00
Kubernetes Prow Robot
3d3a180713 Merge pull request #113942 from mengjiao-liu/remove-feature-gate-expansion
Remove volume expansion feature gates
2022-12-15 10:05:38 -08:00
Abu Kashem
ea251b5605 apiserver: refactor cors filter 2022-12-15 08:59:10 -05:00
Abu Kashem
ae7327ab8e apiserver: refactor cors unit test 2022-12-15 08:59:09 -05:00
Mengjiao Liu
ba9dbe3a07 Remove ExpandCSIVolumes feature gate 2022-12-15 11:43:44 +08:00
Daniel Smith
8100efc7b3 Enable propagration of HasSynced
* Add tracker types and tests
* Modify ResourceEventHandler interface's OnAdd member
* Add additional ResourceEventHandlerDetailedFuncs struct
* Fix SharedInformer to let users track HasSynced for their handlers
* Fix in-tree controllers which weren't computing HasSynced correctly
* Deprecate the cache.Pop function
2022-12-14 18:43:33 +00:00
Max Horstmann
b47748103a client-go: properly return error in fake discovery (#79612)
Fake discovery should return an error if an error-returning reactor was prepended.

This is relevant e.g. for unit tests which test a function which relies
on discovery to check if an API Server is available.

Matches existing behavior of other fake types, for example fake_namespace.

Adds unit test coverage as well.
2022-12-14 11:41:10 -05:00
Ernest Wong
a4e4cec28f Bump github.com/aws/aws-sdk-go to v1.44.147 2022-12-14 14:18:46 +00:00
xin.li
c95d5d5147 fix: remove ioutil for new go version
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-12-14 09:38:09 +08:00
Kubernetes Prow Robot
25efa7701a Merge pull request #114459 from alexzielenski/apiserver/discovery/aggregator-deadlock
fix double lock and excercise its codepath in tests
2022-12-13 15:59:46 -08:00
Kubernetes Prow Robot
3ceb213fc1 Merge pull request #113508 from p-slavcheva/fix-diff-osexit
Replace os.Exit in diff
2022-12-13 15:59:34 -08:00
Andy Goldstein
beb7d6cff1 CRConverter: change to UnstructuredList
Change the CRConverter interface to use *unstructured.UnstructuredList
for input/output to simplify what converter implementers must implement.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-12-13 14:52:39 -05:00
Andy Goldstein
0976267f0f Make empty unstructured check common
Move the empty unstructured object check from the webhook converter to
the delegating converter, so other converters don't have to repeat the
same logic.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-12-13 14:46:28 -05:00
Andy Goldstein
0bdcb93b06 Create new conversion Factory interface
Create a new conversion Factory interface for CRDs, and split out
NewDelegatingConverter as a standalone package-level function, instead
of being part of CRConverterFactory.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-12-13 14:38:21 -05:00
Andy Goldstein
02f8c48f75 Rename crConverterInterface to CRConverter
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-12-13 14:38:05 -05:00
Alexander Zielenski
7510afb72c fix double lock and excercise its codepath in tests
would cause a deadlock if an aggregated apiserver decided to respect ETags for its aggregated discovery document,
2022-12-13 10:01:06 -08:00
Kubernetes Prow Robot
eaa7e1c775 Merge pull request #114435 from seans3/openapi-getter-refactor
Unexport OpenAPIGetter factory method
2022-12-13 08:39:45 -08:00
petya.slavcheva1
2dce194e16 Replace os.exit in diff 2022-12-13 14:27:35 +01:00
Kubernetes Prow Robot
6ae43ffa6d Merge pull request #110252 from swatisehgal/add-security-contact
Noderesourcetopology- api: Repo Bootstrap
2022-12-13 04:43:34 -08:00
Sean Sullivan
1da46b2f28 Unexport OpenAPIGetter factory method 2022-12-12 19:07:59 -08:00
Kubernetes Prow Robot
923ee203f3 Merge pull request #110991 from thockin/svc-typenames-starTrafficPolicyType
Svc typenames star traffic policy type
2022-12-12 18:47:33 -08:00
Kubernetes Prow Robot
49b57ce1e2 Merge pull request #113570 from ztzxt/batch-api-doc
Fix documentation for referenced Batch v1 and v1beta1 API fields
2022-12-12 17:41:44 -08:00
Kubernetes Prow Robot
178f4e2461 Merge pull request #113040 from ardaguclu/rollout-restart-nano
rollout restart: Change error message to more descriptive
2022-12-12 17:41:32 -08:00
Kubernetes Prow Robot
75ec79e30b Merge pull request #112497 from ldsdsy/modify3
update comment of annotation_key_constants.go
2022-12-12 16:35:33 -08:00
Kubernetes Prow Robot
76c93b71b5 Merge pull request #114413 from seans3/refactor-validator
Refactor to simplify factory Validator
2022-12-12 15:19:55 -08:00
Kubernetes Prow Robot
472612ccc6 Merge pull request #114191 from apelisse/uds-pprof
Allow profiling information to be served on Unix-Domain Socket
2022-12-12 15:19:44 -08:00