Commit Graph

18467 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
631c3cce41 Merge pull request #117009 from mouuii/mouuii-dev
fix doc mismatch
2023-04-11 19:18:00 -07:00
Kubernetes Prow Robot
01c0495463 Merge pull request #116987 from wojtek-t/fix_non_recursive_list_test
Deflake TestGetListNonRecursive
2023-04-11 19:17:30 -07:00
Kubernetes Prow Robot
ab4ce0e9b8 Merge pull request #116916 from mhuxtable/mhuxtable/update-signals-documentation
Fix sample-controller docs after moving to context-based cancellation
2023-04-11 19:16:58 -07:00
Kubernetes Prow Robot
d78ca2a552 Merge pull request #116893 from aramase/aramase/t/generate_transformer_test
[KMSv2] add tests for generate transformer
2023-04-11 19:16:43 -07:00
Kubernetes Prow Robot
66c78653f1 Merge pull request #116881 from ritazh/kms-test-fix
kmsv2: test cleanup
2023-04-11 19:16:31 -07:00
Kubernetes Prow Robot
5052d31d65 Merge pull request #116869 from MikeSpreitzer/add-structure
Add structured alternatives to strings in client-go/tools/cache
2023-04-11 18:20:12 -07:00
Kubernetes Prow Robot
dcf3792310 Merge pull request #116730 from danwinship/network-owners
sig-network OWNERS fixups
2023-04-11 18:19:44 -07:00
Kubernetes Prow Robot
27f5601182 Merge pull request #116681 from stlaz/webhook_impersonate_uid
don't ignore UID impersonation in webhook clients
2023-04-11 18:19:16 -07:00
Kubernetes Prow Robot
61457b939d Merge pull request #116648 from ncdc/admission-clients
admission ApplyTo: take in clients
2023-04-11 18:18:41 -07:00
Kubernetes Prow Robot
62d00139e8 Merge pull request #116374 from sxllwx/optimize/etcd3-getlist
ftr(etcd): add benchmarks for getlist
2023-04-11 15:36:18 -07:00
Kubernetes Prow Robot
68f873250f Merge pull request #116348 from jkh52/knp-0.1.2
Bump Konnectivity to 0.1.2
2023-04-11 15:36:11 -07:00
wangxiang
75f17eb38f optimize watch-cache getlist (#116327)
* ftr(watch-cache): add benchmarks

* ftr(kube-apiserver): faster watch-cache getlist

* refine: testcase name

* - refine var name make it easier to convey meaning
- add comment to explain why we need to apply for a slice of runtime.Object instead of making a slice of ListObject.Items directly.
2023-04-11 15:36:03 -07:00
Kubernetes Prow Robot
779abe6ebe Merge pull request #115399 from 3u13r/feat/documentTLS13Exception
Add note about TLS 1.3 cipher suites
2023-04-11 15:35:27 -07:00
Kubernetes Prow Robot
d0fc9d16ce Merge pull request #114800 from haoruan/feature-8976-spew-sprintf-refactor
Capture spew.Sprintf() with all our favorite config into a util func
2023-04-11 15:34:57 -07:00
Naman Lakhwani
9c15d75f23 Migrated pod-security-admission to contextual logging (#114471)
* migrated pod-security-admission to contextual logging

Signed-off-by: Naman <namanlakhwani@gmail.com>

* updating test files for contextual logging

Signed-off-by: Naman <namanlakhwani@gmail.com>

* smalll nit

Signed-off-by: Naman <namanlakhwani@gmail.com>

* doing inline if

Signed-off-by: Naman <namanlakhwani@gmail.com>

---------

Signed-off-by: Naman <namanlakhwani@gmail.com>
2023-04-11 15:34:43 -07:00
Tim Hockin
893ec0ca45 Codegen: simpler k8s.io/code-generator/examples
This moves the hack/ directory and scripts to the examples dir, which is
a distinct module.  This avoids some Go unpleasantness around module
boundaries and just makes more sense.
2023-04-11 14:19:45 -07:00
Tim Hockin
af29cca6ce Codegen: new tools will not become part of 'all' 2023-04-11 12:47:45 -07:00
Tim Hockin
5f7345deaa Codegen subprojects: consolidate generate-*groups
They both still exist, with the same API as before, but now
generate-groups calls generate-internal-groups, which is a superset.
2023-04-11 12:46:53 -07:00
Tim Hockin
95e614b371 Codegen subprojects: deprecate "all" in scripts
Replace "all" with the historical meaning of it in the generate-groups
scripts.
2023-04-11 12:45:45 -07:00
Tim Hockin
a94ed5b8ac Codegen metrics: include v1beta2
This is why these scripts are terrible - open-coded lists always drift.
We will have to tackle that later.
2023-04-11 12:45:45 -07:00
Tim Hockin
8b68e063e1 Codegen subprojects: regen defaulters when needed
If you manually remove generated defaults, they do not get regenerated
without this.
2023-04-11 12:45:44 -07:00
Tim Hockin
5200f4b0d3 Codegen subprojects: reify 'all' into explicit 2023-04-11 12:45:43 -07:00
Tim Hockin
201653aa87 Trivial change to reduce diffs
This just makes it easier to diff generate-groups and
generate-internal-groups
2023-04-11 12:45:42 -07:00
Lukasz Szaszkiewicz
f138d29bf2 watchcache: currentCapacity acquires read lock 2023-04-07 10:16:46 +02:00
John Howard
1cce3b3e2f wait: fix incorrect suggested method
Followup to https://github.com/kubernetes/kubernetes/pull/107826. The
referenced method doesn't exist.

This leads to confusing lint's with 1.27. I would recommend a backport
to 1.27 but not sure if that aligns with the release schedule.
2023-04-06 08:01:41 -07:00
Arda Güçlü
d9bd22115f Alias deprecated genericclioptions.IOStreams with new one 2023-04-06 16:32:16 +03:00
Marko Mudrinić
4e0bc2397d Update publishing-bot rules for release branches to Go 1.19.8
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-04-06 10:31:33 +02:00
Marko Mudrinić
2a69edb43d [go] Bump images, dependencies and versions to go 1.20.3
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-04-05 23:46:34 +02:00
Arda Güçlü
f91518b81a Add genericiooptions in allowed list of genericclioptions 2023-04-05 17:05:37 +03:00
Arda Güçlü
b4e4db336f More migrations from genericclioptions to genericiooptions 2023-04-05 17:05:23 +03:00
Arda Güçlü
8d9386fc40 Remove genericclioptions.IOStreams struct
Since the codebase already migrates to genericiooptions.IOStreams,
external tools will automatically start consuming the new one.

This PR deletes deprecated struct because codebase does not rely on it
already. We keep `NewTestIOStreams` and `NewTestIOStreamsDiscard` functions
to provide users a smooth migration.
2023-04-05 15:03:35 +03:00
Arda Güçlü
00c3094126 Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
Arda Güçlü
51a7751a49 Move genericclioptions.IOStreams into genericiooptions.IOStreams
Currently, `genericclioptions` package imports `resource` package in cli-runtime
(i.e. builder_flags uses builder object in resource). Therefore, it is not allowed
that `resource` can import any package in `genericclioptions`(due to disallowed import cycles).
It is already reasonable burden except `genericclioptions.IOStreams`.

There are some cases we want to raise a warning to user in builder but
it can not be achieved due to resource package can not depend on
IOStreams. Since IOStreams solely contains go primitives, this PR
deprecates `genericclioptions.IOStreams` and adds `genericiooptions.IOStreams`.

Thanks to that, that will add capability of using IOStreams also in
builders, etc.
2023-04-05 13:07:33 +03:00
Nick Turner
873127e3b0 Export WebhookHandler struct because some CCMs use Run directly 2023-04-04 13:25:49 +00:00
Arda Güçlü
457bb58ebb kubectl events: Support fully qualified names for --for flag
Users can pass resources into `kubectl events` command via `--for` flag,
if they have desire to only get events for the resource they specify.

However, current `kubectl events` does not support passing fully qualified
names(e.g. `replicasets.apps`, `cronjobs.v1.batch`, etc.). This PR adds support
for this.
2023-03-31 12:34:00 +03:00
mouuii
56755b8ffd fix doc mismatch
Signed-off-by: mouuii <49775493+mouuii@users.noreply.github.com>
2023-03-30 17:08:59 +08:00
Anish Ramasekar
dac85fe2d3 [KMSv2] cleanup comments in v2 proto api
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-03-29 20:14:54 +00:00
scott
db92cc1388 ftr(etcd): add benchmarks 2023-03-29 21:52:38 +08:00
Wojciech Tyczyński
05f4e497f1 Deflake TestGetListNonRecursive 2023-03-29 13:46:49 +02:00
Rita Zhang
906f0607ef Clean up kms test
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-03-28 22:36:41 -07:00
Mike Spreitzer
8d92cfb131 Added conversions to/from NamespacedName
Also renamed file to something more on-point.
2023-03-27 11:22:09 -04:00
Madhav Jivrajani
63b5ca69f1 .*: update vendor dir and cleanup
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-03-27 19:18:05 +05:30
Hao Ruan
f638e2849f replaced spew.Sprintf with a util pretty print function 2023-03-27 09:24:22 +08:00
Kubernetes Prow Robot
8f15859afc Merge pull request #116919 from dims/publishing-bot-rules-for-new-release-1.27-branch
publishing-bot rules for the new release-1.27 branch
2023-03-24 18:59:53 -07:00
Kubernetes Prow Robot
f393e7da7f Merge pull request #116877 from enj/enj/i/validate_encrypt_resp_early
kmsv2: validate encrypt response at DEK generation time
2023-03-24 15:18:03 -07:00
Davanum Srinivas
1ad7cacba5 publishing-bot rules for the new release-1.27 branch
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-03-24 18:08:53 -04:00
Matthew Huxtable
03be789851 Fix sample-controller docs after moving to context-based cancellation
Since the stop channels were replaced in e346475, the commentary is
incorrect and confusing.
2023-03-24 15:39:20 +00:00
Anish Ramasekar
f2fe1fff65 [KMSv2] add tests for generate transformer
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-03-23 16:40:16 +00:00
Monis Khan
479fcf0b13 kmsv2: validate encrypt response at DEK generation time
Prior to this change, we wait until the DEK is used to perform an
encryption before validating the response.  This means that the
plugin could report healthy but all TransformToStorage calls would
fail.  Now we correctly cause the plugin to become unhealthy and do
not attempt to use the newly generated DEK.

Signed-off-by: Monis Khan <mok@microsoft.com>
2023-03-23 16:22:56 +00:00
Monis Khan
5469c198e5 kmsv2: validate encrypt response at DEK generation time
Prior to this change, we wait until the DEK is used to perform an
encryption before validating the response.  This means that the
plugin could report healthy but all TransformToStorage calls would
fail.  Now we correctly cause the plugin to become unhealthy and do
not attempt to use the newly generated DEK.

Signed-off-by: Monis Khan <mok@microsoft.com>
2023-03-22 21:48:53 -04:00