Commit Graph

110895 Commits

Author SHA1 Message Date
Patrick Ohly
c45a924c5e e2e framework: move dumping of information into sub package
This reduces the size of the test/e2e/framework itself. Because it does not
dump anything anymore by default, E2E test suites must set their own dump
function or set the original one by importing
"k8s.io/kubernetes/test/e2e/framework/debug/init".
2022-10-06 08:16:47 +02:00
Patrick Ohly
2c8ef492ae e2e framework: move kubectl and pod helper code 2022-10-06 08:16:47 +02:00
Patrick Ohly
e95c2dbbe3 e2e framework: introduce todo sub packages 2022-10-06 08:16:47 +02:00
Patrick Ohly
37d562b454 e2e framework: support callbacks during framework creation and before each test
This will be used as mechanism for invoking some of the code which is currently
hard-coded in the framework once that code is placed in optional packages.
2022-10-06 08:16:47 +02:00
Kubernetes Prow Robot
fbb6ccc0c6
Merge pull request #112869 from xmcqueen/master
moved the downloading of the node_perf tensorflow test-data artifact …
2022-10-05 20:29:54 -07:00
Kubernetes Prow Robot
38bc7131b3
Merge pull request #112892 from robscott/patch-kube-proxy
Updating kube-proxy base impage to distroless-iptables:v0.1.2
2022-10-05 19:21:51 -07:00
Rob Scott
d18c8919b0
Updating kube-proxy base impage to distroless-iptables:v0.1.2
Change-Id: Idcbed345085926fdcff952b503f0bac82cb89e82
2022-10-06 01:19:00 +00:00
Kubernetes Prow Robot
b4eec3c2ad
Merge pull request #112792 from cici37/celAd
Add feature gate CelValidatingAdmission
2022-10-05 16:39:53 -07:00
Kubernetes Prow Robot
44a0b4e145
Merge pull request #112881 from logicalhan/slis
put component slis endpoint behind a feature gate
2022-10-05 12:53:46 -07:00
Cici Huang
d8ab3fea0d Update feature gate name to CELValidatingAdmission 2022-10-05 19:40:50 +00:00
Kubernetes Prow Robot
4511da23c3
Merge pull request #112872 from ameukam/regional-bucket
Test startup: make staging bucket regional
2022-10-05 11:35:46 -07:00
Han Kang
f043544cb5 add feature gate for component SLIs to component-base
Change-Id: I39896ce970e5700764253389e77293ebe58856c3
2022-10-05 10:52:29 -07:00
Kubernetes Prow Robot
4a894be926
Merge pull request #112866 from BenTheElder/em
emeritus fejta
2022-10-05 10:14:04 -07:00
Kubernetes Prow Robot
5556d3336b
Merge pull request #112846 from Richabanker/stability-fix-test
Add test for internal metric
2022-10-05 00:00:03 -07:00
Kubernetes Prow Robot
e9f28c0254
Merge pull request #112870 from BenTheElder/nogopkg
drop Gopkg.toml from publishing bot rules
2022-10-04 22:10:02 -07:00
Arnaud Meukam
9987e4635f
Test startup: make staging bucket regional
Make GCS buckets created by the e2e tests regional.
There are by default multi-regional in US location. The change is
introduced to minimize GCS global cost.
GCS new pricing changed since Oct 1, 2022. See https://cloud.google.com/storage/pricing-announce

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2022-10-05 06:34:04 +02:00
Benjamin Elder
a3e3608fd7 drop Gopkg.toml from publishing bot rules 2022-10-04 20:55:33 -07:00
Kubernetes Prow Robot
4e3b3764ff
Merge pull request #112864 from BenTheElder/nobzl
remove more lingering bazel references
2022-10-04 20:42:03 -07:00
Kubernetes Prow Robot
4dc65c4353
Merge pull request #112865 from thockin/no-make-generators
Clean up detritus from generated_files
2022-10-04 18:16:03 -07:00
Brian McQueen
f6c71328cf moved the downloading of the node_perf tensorflow test-data artifact into the Dockerfile to be downloaded at image-build time 109295 2022-10-04 17:35:32 -07:00
Benjamin Elder
cee4ee074d emeritus fejta, Erick is inactive after leaving google for spaceX 2022-10-04 17:07:35 -07:00
Tim Hockin
5da7ca9b0f
Clean up detritus from generaed_files
Now that tests are fixed, it should be OK to remove these.
2022-10-04 17:04:49 -07:00
Benjamin Elder
f96d61d916 remove BUILD files from publishing bot rules
bazel has been removed since 1.21, the rules only go back to 1.22

TODO: remove Gopkg.toml rule as well ...?
2022-10-04 16:52:27 -07:00
Benjamin Elder
23cdaa2ee7 remove clearly unnecessary lingering bzl file references 2022-10-04 16:47:39 -07:00
Benjamin Elder
db9c760ee7 remove clearly unnecessary lingering BUILD file references 2022-10-04 16:47:25 -07:00
Kubernetes Prow Robot
27344212ce
Merge pull request #112827 from SataQiu/clean-scheduler-20221003
scheduler: cleanup the unused event types about Service
2022-10-04 16:24:00 -07:00
Kubernetes Prow Robot
3ef7784b75
Merge pull request #112837 from daschott/daschott/winkernel-lb-id-regression
Fix winkernel proxier setting the wrong HNS loadbalancer ID for ingresss IP
2022-10-04 15:16:00 -07:00
Kubernetes Prow Robot
98233be715
Merge pull request #112709 from swagatbora90/kubelet-tracing
Support otel tracing in cri remote image service
2022-10-04 14:12:00 -07:00
Kubernetes Prow Robot
8db0d1a8e0
Merge pull request #112819 from thockin/no-make-generators
Kill off makefile-driven code-generation
2022-10-04 10:16:16 -07:00
Tim Hockin
1c65dc535f
Remove refs to .make 2022-10-04 08:58:52 -07:00
Tim Hockin
d8988801c2
Remove old make-helper script 2022-10-04 08:58:46 -07:00
Tim Hockin
48b5b0c238
Remove go2make 2022-10-04 08:50:32 -07:00
Tim Hockin
e477d45f56
Neutralize obsolete verify scripts
This is all obsolete or covered by verify-codegen now.
2022-10-04 08:50:31 -07:00
Tim Hockin
70c1c795e8
Remove generated file rules in make
This is all covered by update-codegen.sh now.

The old `make generated_files` rule still exists, but just prints a
warning.
2022-10-04 08:50:30 -07:00
Tim Hockin
7afaf23b01
Copy make's codegen logic to update-codegen.sh
The `make` rules which auto-generate some of our API stuff are
incredibly baroque, and hard to maintain.  They were originally added on
the assumption that we would stop checking generated files into git.
Since then we have moved away from that goal, and the worst problems
with generated files have been resolved.

Reasons to kill this:
* It is slow on every build, as opposed to just being slow when running
  the generators.  It is even slow to calculate that there's nothing to
  update.
* Most development work doesn't involve changing APIs.
* It only covers about half (or less) of the generated code, and making
  it cover more would be even slower.
* Approximately 1 person knows how this all works.
* We have CI to make sure changes do not get merged without updating
  this code.
* We have corner cases where this does the WRONG thing and tracking
  those down is ugly and hard in perpetuity.

So this commit puts all the same logic that WAS in the
Makefile.generated_files into update-codegen.sh.

I do not love this script, especially WRT sub-packages, but I am trying
not to boil the ocean.  I hope to follow up with some more cleanups over
time.

I have tested this manually and with the scripts and it still seems to
catch errors properly.

This includes a change to kube::util::read-array to make it not unset
variables and not over-write non-array variables.
2022-10-04 08:48:39 -07:00
Tim Hockin
b52b50bcea update-codegen: reorder some lines for later diffs 2022-10-04 08:45:57 -07:00
Tim Hockin
89e0e09eb9 Format calls to codegens
No functional changes here,just formatting.  Makes future commits
easier.
2022-10-04 08:45:57 -07:00
Tim Hockin
436bebf47d Codegens: Do not auto-set boilerplate path
Make each invocation pass it explicitly.  This will make later commits
cleaner.
2022-10-04 08:45:57 -07:00
Kubernetes Prow Robot
afebf498d7
Merge pull request #111314 from BinacsLee/binacs/cleanup-use-clone-to-avoid-interim-slice
cleanup: use sets.Clone() to avoid interim slice
2022-10-04 07:34:22 -07:00
Kubernetes Prow Robot
85e7ddbcfb
Merge pull request #111313 from BinacsLee/binacs/use-len-in-options
cleanup: use sets.Len() insead of len(sets.List())
2022-10-04 07:34:16 -07:00
Kubernetes Prow Robot
e8a288833f
Merge pull request #112853 from pohly/vendoring-script-tweaks
update-vendor.sh tweaks
2022-10-04 06:18:14 -07:00
Patrick Ohly
9b5e9d8978 update-vendor.sh: add reminder about LICENSE files
The script might have added or removed LICENSE files. Those changes also need
to be added manually to a commit.
2022-10-04 12:39:05 +02:00
Patrick Ohly
f737c5d341 update-vendor.sh: handle empty staging repo
A staging repo which just got created with only the doc.go file in it won't
have any dependencies yet, which caused the script to fail because the
dependency files didn't get created:

    +++ [0926 14:33:22] go.mod: tidying
    cat: /tmp/update-vendor.1VTv/group_replace.ZbIT/go.mod.require_direct.tmp: No such file or directory
    !!! [0926 14:33:23] Call tree:
    !!! [0926 14:33:23]  1: hack/update-vendor.sh:354 group_directives(...)
2022-10-04 12:37:15 +02:00
Kubernetes Prow Robot
ff4e517add
Merge pull request #112833 from andrewsykim/revert-112821-avoid-tainting-with-noschedule-when-cloud-providers-are-disabled
Revert "Avoid tainting with NoSchedule when DisableCloudProviders feature is on"
2022-10-03 23:04:14 -07:00
Kubernetes Prow Robot
a15ce1503c
Merge pull request #112823 from ii/create-service-account-replace-test
Write e2e test for  replaceCoreV1NamespacedServiceAccount - +1 Endpoint
2022-10-03 19:00:14 -07:00
Richa Banker
b71d580489 Add test for internal metric 2022-10-03 17:14:49 -07:00
daschott
5bbf421841 Fix winkernel proxier setting the wrong HNS loadbalancer ID for ingress IP 2022-10-03 13:23:56 -07:00
Stephen Heywood
a3f7da0421 Create e2e test for ServiceAccount endpoint
e2e test validates the following 1 endpoint
- replaceCoreV1NamespacedServiceAccount
2022-10-04 09:21:25 +13:00
Kubernetes Prow Robot
a6bee7d5fc
Merge pull request #112575 from tkashem/apf-fix-reset-fields-test
apf: don't omit flowschemas from reset fields test
2022-10-03 13:20:13 -07:00
Andrew Sy Kim
4e2a2b6053
Revert "Avoid tainting with NoSchedule when DisableCloudProviders feature is on" 2022-10-03 15:13:43 -04:00