Commit Graph

121759 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
138f99b41a
Merge pull request #123436 from dinhxuanvu/cbor-tests
KEP-4222: Add duplicate key and field case-sensitivity CBOR decode tests.
2024-03-01 14:41:11 -08:00
Kubernetes Prow Robot
3f25211d69
Merge pull request #122882 from Jefftree/agg-discovery-v2-usage
Use Aggregated Discovery v2 types and promote to GA
2024-03-01 14:41:02 -08:00
Erik Godding Boye
9633e25579
feat: add csaupgrade option to upgrade subresource 2024-03-01 23:27:30 +01:00
Ben Luddy
1503997b4f
Make CBOR roundtrip cases pass through interface{} as well. 2024-03-01 16:48:12 -05:00
Kubernetes Prow Robot
fc4613f996
Merge pull request #123570 from Jefftree/filter-openapi-agg
Filter aggregated apiservice gv filter for OpenAPI
2024-03-01 13:41:11 -08:00
Sohan Kunkerkar
3b630ae1af test/e2e_node:add more coverage for the kubelet config drop-in dir feature
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
2024-03-01 16:01:01 -05:00
Patrick Ohly
f34782bb92 hack: re-enable protobindings which use k8s.io/api
Before the workspace changes, it was possible to include proto files via the
vendor path and the symlinks there. Now those symlinks are gone, so the search
path for them must be given separately.
2024-03-01 21:53:13 +01:00
Jefftree
9a404b590b Filter aggregated apiservice gv 2024-03-01 20:39:57 +00:00
Kubernetes Prow Robot
8b8d133770
Merge pull request #123564 from ivelichkovich/tests
promote match conditions e2e tests to conformance
2024-03-01 12:06:09 -08:00
Sohan Kunkerkar
b40b5f86d8 *: promote KubeletConfigDropInDir feature to beta
This change removes the environment variable set during
the Alpha phase and prepares the feature for beta graduation.

xref: https://github.com/kubernetes/enhancements/pull/4419

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
2024-03-01 15:00:50 -05:00
Ivan Valdes
8854d360a5
printers: add status to jobs table 2024-03-01 11:47:35 -08:00
Jefftree
462dd326c2 Use v2 types with agg discovery 2024-03-01 13:15:22 -05:00
Jefftree
301e804c3f Promote AggregatedDiscovery to GA 2024-03-01 13:15:22 -05:00
Jefftree
0593746f60 Remove test for disabling aggregated discovery 2024-03-01 13:15:22 -05:00
Kubernetes Prow Robot
24267f6aa7
Merge pull request #122438 from kannon92/splitfs-tests
[KEP - 4191]: Use Cadvisor labels rather than hard coding them into kubelet
2024-03-01 10:04:57 -08:00
Kubernetes Prow Robot
235d4ffc18
Merge pull request #123615 from aojea/fx_scalability_tests
Fx scalability tests
2024-03-01 08:43:10 -08:00
Kubernetes Prow Robot
df366107d1
Merge pull request #123529 from thockin/go-workspaces
Go workspaces for k/k and k/staging/*
2024-03-01 08:43:03 -08:00
Igor Velichkovich
dde48918dd promote match conditions e2e tests to conformance 2024-03-01 10:04:42 -06:00
Kubernetes Prow Robot
055b51728c
Merge pull request #123554 from jsafrane/selinux-rwx-tests
Add tests for SELinuxMount feature
2024-03-01 06:43:17 -08:00
Jan Safranek
74417b517a Tag all feature gates required by a test
Use all necessary feature gates in SELinuxMount tests.
2024-03-01 14:38:24 +01:00
Kubernetes Prow Robot
d51e2da869
Merge pull request #123613 from aojea/revert_ccm
Revert "[cloud-provider] require providerID to initialize node"
2024-03-01 05:35:47 -08:00
Kubernetes Prow Robot
bed8fed49f
Merge pull request #123259 from Nordix/esotsal/local-up-cluster
Configure cpumanager policy options in local-up-cluster
2024-03-01 04:10:53 -08:00
Lubomir I. Ivanov
99313bea88 kubeadm: remove constants for mirror pod timeout
StaticPodMirroringTimeout and StaticPodMirroringRetryInterval
are use for just an API call to get Pods(). The already existing
constants.KubernetesAPICallRetryInterval
and kubeadmapi.GetActiveTimeouts().KubernetesAPICall.Duration
can be used for that instead.
2024-03-01 13:04:08 +02:00
Lubomir I. Ivanov
ded6354a8f kubeadm: add Timeouts struct to v1beta4.UpgradeConfiguration
Follow the same process of adding the Timeouts struct
to UpgradeConfiguration similarly to how it was done for
other API Kinds.

In the Timeouts struct include one new timeout:
- UpgradeManifests
2024-03-01 13:04:08 +02:00
Sotiris Salloumis
ce8bd8584e Configure cpumanager policy options in local-up-cluster
CPU Manager policy options cannot be configured with
KUBELET_FLAGS. They need to be included in kubelet
configuration instead.

This commit allows the configuration with the use
of three enviroment variables, following same approach
as done for enabling feature gates.
2024-03-01 11:38:02 +01:00
Oleg Guba
ba525460e0 change result size to numAllNodes 2024-03-01 02:06:17 -08:00
Antonio Ojea
45783a630c increase parallelism on node controller ccm
Change-Id: I231855389425a8dde2a5dc0ade2a3ab985ff4d5c
2024-03-01 09:50:48 +00:00
Antonio Ojea
dce0d8a3d3 increase parallelism on service controller
Change-Id: I1ec3e9020b781f22271673a1f7cb9f65d42575d5
2024-03-01 09:50:48 +00:00
Kubernetes Prow Robot
ed1cc43cf7
Merge pull request #123399 from pohly/test-context-use-cancellation
test: use cancellation from ktesting
2024-03-01 01:03:23 -08:00
Craig Newton
20b28312ea
Add namespace to NotFound error for kubectl logs command (#120111)
Signed-off-by: Craig Newton <newtondev@gmail.com>
2024-02-29 23:57:23 -08:00
Antonio Ojea
6b08919473 Revert "[cloud-provider] require providerID to initialize node"
This reverts commit 03bd3e25b1.
2024-03-01 07:09:33 +00:00
Kubernetes Prow Robot
6cc77a577e
Merge pull request #123560 from ivelichkovich/master
kep-3716 GA, remove feature gate
2024-02-29 22:53:38 -08:00
Kubernetes Prow Robot
a6b806910a
Merge pull request #123534 from kannon92/fix-downward-api-comment
uid is also supported in field ref for downward api
2024-02-29 22:53:29 -08:00
Patrick Ohly
1d653e6185 test: use cancelation from ktesting
The return type of ktesting.NewTestContext is now a TContext. Code
which combined it WithCancel often didn't compile anymore (cannot overwrite
ktesting.TContext with context.Context). This is a good thing because all of
that code can be simplified to let ktesting handle the cancelation.
2024-03-01 07:51:22 +01:00
Kevin Hannon
d58ff6c056 allow for cadvisor to detect split filesystem and add some e2e tests 2024-03-01 01:15:53 -05:00
Tim Hockin
00e09374b6
Make update-codegen avoid sub-workspaces 2024-02-29 22:10:39 -08:00
Tim Hockin
21715e6bbd
Fix up go.mod files after reviews
Because of how the previous 100+ commits were done, so changes snuck
thru that properly belong in earlier commits but it's not really
possible to do that without a lot of effort.

We agreed it was OK to "spackle" these cracks with a final commit.
2024-02-29 22:07:45 -08:00
Tim Hockin
78f82b972f
Sort publishing/rules.yaml
Needed because defaulter-gen tests end up depending on apimachinery.
2024-02-29 22:07:44 -08:00
Tim Hockin
ac5664086b
Use path instead of filepath for pkg-paths 2024-02-29 22:07:44 -08:00
Tim Hockin
70d803c1ff
Make make fail better with bad inputs
Ultimately, we're hitting places where bash is just hard to get right.

Instead of:

```
$ make WHAT=nonexist
stat /home/thockin/src/kubernetes/nonexist: directory not found
!!! [0228 12:07:12] Call tree:
!!! [0228 12:07:12]  1: /home/thockin/src/kubernetes/hack/lib/golang.sh:930 kube::golang::normalize_go_targets(...)
!!! [0228 12:07:12]  2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
+++ [0228 12:07:12] Building go targets for linux/amd64
     (non-static)
no Go files in /home/thockin/src/kubernetes
!!! [0228 12:07:12] Call tree:
!!! [0228 12:07:12]  1: /home/thockin/src/kubernetes/hack/lib/golang.sh:820 kube::golang::build_some_binaries(...)
!!! [0228 12:07:12]  2: /home/thockin/src/kubernetes/hack/lib/golang.sh:974 kube::golang::build_binaries_for_platform(...)
!!! [0228 12:07:12]  3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0228 12:07:12] Call tree:
!!! [0228 12:07:12]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0228 12:07:12] Call tree:
!!! [0228 12:07:12]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make: *** [Makefile:95: all] Error 1
```

We now get:

```
$ make WHAT=nonexist
+++ [0228 12:33:49] Building go targets for linux/amd64
    ./nonexist (non-static)
stat /home/thockin/src/kubernetes/nonexist: directory not found
!!! [0228 12:33:49] Call tree:
!!! [0228 12:33:49]  1: /home/thockin/src/kubernetes/hack/lib/golang.sh:823 kube::golang::build_some_binaries(...)
!!! [0228 12:33:49]  2: /home/thockin/src/kubernetes/hack/lib/golang.sh:976 kube::golang::build_binaries_for_platform(...)
!!! [0228 12:33:49]  3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0228 12:33:49] Call tree:
!!! [0228 12:33:49]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0228 12:33:49] Call tree:
!!! [0228 12:33:49]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make: *** [Makefile:95: all] Error 1

$ make test WHAT=nonexist
+++ [0228 12:33:53] Set GOMAXPROCS automatically to 6
+++ [0228 12:33:53] Running tests without code coverage and with -race
stat /home/thockin/src/kubernetes/nonexist: directory not found
make: *** [Makefile:190: test] Error 1
```
2024-02-29 22:07:43 -08:00
Tim Hockin
81ba0f3b44
Make golang::setup-env turn on workspaces
Both GO111MODULE and GOWORK default to on, so this just unsets them.  We
could set them to explicit values but this seems equivalent and cleaner.
2024-02-29 22:07:42 -08:00
Tim Hockin
2e2ae029c3
Fix instrumentation tests
1) Fail if we can't read critical env vars
2) Don't rely on KUBE_ROOT env var when `go list` works
3) Don't rely on GOOS env var when `go env` works
4) Don't quietly ignore "can't read" errors

Once we stop ignoring errors, some tests fail for real (and should
always have failed).

The "Imported k8s.io/staging constant" test seems to not be allowed at
all anymore.  Han said to nix it and he'd look async.

Oversall this test is dodgy.  You REALLY can't glue strings together and
expect valid Go module paths.  We should consider a deeper rework.
2024-02-29 22:07:41 -08:00
Tim Hockin
706c88863f
Use go 1.22 for KMS mock 2024-02-29 22:07:40 -08:00
Tim Hockin
812d5fff40
Remove old gengo detritus 2024-02-29 22:07:39 -08:00
Tim Hockin
16c26b22cb
Run latest openapi generation 2024-02-29 22:07:38 -08:00
Tim Hockin
d6cf98f8ac
Remove errant +required with no validation code 2024-02-29 22:07:37 -08:00
Tim Hockin
1a4450f6ff
Get rid of code-generator/cmd/openapi-gen
It's an exact duplicate of k8s.io/kube-openapi/cmd/openapi-gen.
2024-02-29 22:07:37 -08:00
Tim Hockin
067a328284
Move import-boss: k/code-generator/cmd -> k/k/cmd 2024-02-29 22:07:36 -08:00
Tim Hockin
7776496309
EOL code-generator/generate-groups scripts
There's no easy way to make it work in the new model.  Callers add flags
to the commandline like:

```
"${CODEGEN_PKG}/generate-internal-groups.sh" "client,conversion,deepcopy,defaulter,informer,lister,openapi" \
  k8s.io/code-generator/examples/apiserver \
  k8s.io/code-generator/examples/apiserver/apis \
  k8s.io/code-generator/examples/apiserver/apis \
  "example:v1 example2:v1 example3.io:v1" \
  --output-base "${SCRIPT_DIR}/../../../.." \
  --go-header-file "${SCRIPT_DIR}/boilerplate.go.txt"
```

To support this we would need to parse these flags in these scripts and
try to adapt them to the new CLI tool interfaces.  Not impossible, but
seeing as we deprecated these a few releases ago AND that we have other
breaking changes to the tools, let's just rip this bandaid off?
2024-02-29 22:07:35 -08:00
Tim Hockin
9cf189f4e0
Fix lint found by golangci-lint 2024-02-29 22:07:34 -08:00