118 Commits
Author SHA1 Message Date
Kartavya Sonar 6e78ffbbae pkg/proxy: add multi-namespace veth topology test for rootless nftables testing
Extends TestProxyRulesInUserNS with a new TestProxyTopologyInUserNS test
that builds the ns-pod1 <-> ns-kproxy <-> ns-pod2 topology described in
issue 130926 using veth pairs inside an unprivileged user+network namespace.

The topology uses two veth pairs:
  veth0 (10.0.1.1/24 in ns-kproxy) <-> veth0-peer (10.0.1.2/24 in ns-pod1)
  veth1 (10.0.2.1/24 in ns-kproxy) <-> veth1-peer (10.0.2.2/24 in ns-pod2)

This is phase 2 of the rootless kube-proxy integration testing work.
Phase 3 will install real Service/Endpoint rules via the proxier and
verify packet forwarding behaviour end-to-end.

Related to kubernetes/kubernetes#130926
2026-09-16 10:30:52 +05:30
yongruilin 8b2eb9090e chore: Remove vet target and associated script from Makefile and hack directory 2025-06-25 17:39:14 +00:00
elieser pereiraandPatrick Ohly 35f584187a accept GINKGO_FLAGS for test-e2e-node.sh (#129215)
* accept GINKGO_FLAGS for test-e2e-node.sh

* Update Makefile to document LABEL_FILTER

* --label-filter part of ginkgoflags

* Update Makefile

* if label-filter then avoid skip and focus defaults

* LABEL_FILTER can be empty

* Update build/root/Makefile

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* skip defaults only if label-filter not set

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* focus and label_fiter can live together

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* skip and label_filter can live together

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

---------

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-12-24 02:48:10 +01:00
Ed Bartosh 3c58cab7a0 Revert "fix bug in Makefile"
This reverts commit 9dc27e93fb.
2024-10-12 23:27:19 +03:00
Daniel Vega-Myhre 9dc27e93fb fix bug in Makefile 2024-10-01 21:14:05 -07:00
Jeremy Rickard f62cf3914f Revert "build: Adds Windows kube-proxy image"
This reverts commit 3b0cec323e.
2024-06-01 10:43:08 -06:00
Kubernetes Prow Robot 802983e714 Merge pull request #109939 from claudiubelu/windows/kube-proxy-hostprocess
build: Adds Windows kube-proxy image
2024-05-31 07:19:57 -07:00
Claudiu Belu 3b0cec323e build: Adds Windows kube-proxy image
Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images,
which will allow it to build the a Windows kube-proxy image as well. That image can
then be used with Windows Host Process Containers to start the kube-proxy
service on Windows nodes.
2024-05-31 08:04:00 +00:00
Benjamin Elder 0973b4b6c4 define BRANCH to silence undefined variable warning 2024-05-20 17:05:52 -07:00
Patrick Ohly d97b67d97a e2e node: support running the test binary under a debugger
Single-stepping interactively through a test can be useful to understand what's
happening and to investigate the state at each step.

Similar support was added early to hack/ginkgo-e2e.sh, so the same env variable
is used again.
2024-04-16 11:46:28 +02:00
Tim Hockin 4d37426a3a Update Makefile comments 2024-02-29 22:06:59 -08:00
Tim Hockin 3c2940f2ae Kill off PRJ_SRC_PATH 2024-02-29 22:06:50 -08:00
Christoph Blecker ca41a9222d Fix makefile variable expansion for test-integration target 2024-02-26 09:01:04 -08:00
Tim Hockin 6fee657d3a Makefile: enable warn-undefined-variables 2023-12-08 20:51:47 -08:00
Vyom-Yadav f730dc39f9 Fix verify target to not update env var if already set
Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>
2023-11-23 14:57:35 +05:30
Kubernetes Prow Robot fea759baeb Merge pull request #119063 from saschagrunert/makefile-remote-runtime
Remove reference to `RUNTIME` variable in `build/root/Makefile`
2023-10-14 23:49:52 +02:00
tao.yang a215b29d7c remove makefile:generated_files in v1.29.
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-08-01 16:14:18 +08:00
upodroid 7d13c9b096 set map to nil if an empty string is passed 2023-07-26 10:32:27 +03:00
Sascha Grunert 7ff4572f79 Remove reference to RUNTIME variable in build/root/Makefile
All runtimes are remote now, which is one of the last artifacts from
dockershim removal. We can mention that we fallback to the runtime
endpoint for the image endpoint, though.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-07-04 12:12:12 +02:00
Ed Bartosh c48c4c679a Fix ginkgo deprecation warning
Fixed ginkgo warning
   You're using deprecated Ginkgo functionality:
   =============================================
   --untilItFails is deprecated, use --until-it-fails instead

Used consistent approach with this flag in e2e_node and e2e scripts.
2023-05-31 12:53:11 +03:00
Todd Neal 23f71f0eba refactor remote test running 2023-03-12 21:26:01 -05:00
TommyStarK f38ccc1d40 Makefile: Add example of how to run integration tests and get code coverage report.
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2022-12-16 18:00:44 +01:00
Kubernetes Prow Robot 9313a1f2a6 Merge pull request #113452 from brianpursley/DBG2
Allow DBG=1 to be used with make release-images and make quick-release-images
2022-11-01 19:59:30 -07:00
Brian Pursley 8a1b48046d Allow DBG=1 to be used with make release-images and make quick-release-images 2022-11-01 13:23:16 -04:00
Oscar Utbult 0564fcce0f Add Makefile target lint 2022-10-31 23:57:01 +01:00
Oscar Utbult de53dcc438 Fix Makefile help target 2022-10-23 14:59:25 +02:00
RuquanZhao a2a2d5c13b fix typo in Makefile
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2022-10-18 16:33:35 +08: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
Tim Hockin 1c65dc535f Remove refs to .make 2022-10-04 08:58:52 -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
Patrick Ohly f7427d07e0 build: add ginkgo aliases for WHAT
The alias for vendor/github.com/onsi/ginkgo/ginkgo ensures that code like
https://github.com/chendave/test-infra/blob/30e99cb2a97fdee7bb41316881cfbca91bb600db/experiment/kind-conformance-image-e2e.sh#L110
continues to work. The one without "vendor/" is there just in case that it
was used because it also worked.

Long term, "ginkgo" is a nicer, version independent alias. It gets used
internally to avoid future churn and gets documented also publicly in the
Makefile help.

The caveat is that there's no guarantee that a future v3 CLI will be compatible
with current invocations. But the most common usage is through
hack/ginkgo-e2e.sh, which can deal with such differences.
2022-07-08 10:46:11 +08:00
Dave Chen 375b2a5fb2 Build Ginkgo binary
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Jiabao Qu b6a976058d remove bazel BUILD in EXCLUDE_TARGET in makefile 2022-06-08 14:24:28 +08:00
Davanum Srinivas 50bea1dad8 Move from k8s.gcr.io to registry.k8s.io
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-05-31 10:16:53 -04:00
Jordan Liggitt 7227c442c0 drop vendor from makefile 2022-05-05 08:47:33 -04:00
Danielle Lancashire f1f45df2c1 hack: make test-e2e-node: remove old project refs
This commit cleans up references to the old kubernetes-node-e2e-images
project. In the process it removes the `LIST_IMAGES` mode as listing
large numbers of public cloud projects is not particularly useful, and
has been somewhat broken for a long period of time - as we defaulted
launching a VM to a different project than listing.
2022-04-22 00:59:25 +02:00
Tim Hockin ebbc4716a7 Makefile: Pass SHELL to sub-make
It turns out that:

a) SHELL does not automatically get passed down
b) we were resetiing SHELL in the sub-make anyway
2022-03-11 14:51:38 -08:00
Dave Chen ace64c0138 Switch to use the DBG flag to build debug binaries
With the merging of #108371, the old way to build the debug binaries
won't work anymore.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 14:57:59 +08:00
Tim Hockin ed5e549cde Makefile: Add a DBG flag to build debug binaries
Now `make DBG=1` will produce binaries with no optimizaions and no
inlining, but with symbols and DWARF information.
2022-03-01 08:47:34 -08:00
Tim Hockin 457e8778f7 Makefile: emit codegen info via kube::log::status 2022-02-27 11:33:52 -08:00
Kubernetes Prow Robot e9760925f9 Merge pull request #108369 from thockin/makefile-errexit
Makefile: use errexit, pipefail, and nounset
2022-02-26 17:45:16 -08:00
Tim Hockin 9ad4a659ae Makefile: use errexit, pipefail, and nounset 2022-02-26 12:32:48 -08:00
Tim Hockin 7a3dded74d Makefile: remove superfluous @ 2022-02-26 12:17:45 -08:00
Danielle Lancashire 9e5fac5bb2 make: test-e2e-node: default to containerd
Since removing dockershim, `make test-e2e-node` will fail by default as
there is no provided container runtime endpoint.

This commit defaults us to using containerd's default socket path as the
local test target, rather than failing hard.
2022-02-01 16:36:06 +01:00
Jonathan Lebon 3ebd93cd02 test-e2e-node: support pure SSH mode
Right now, `run_remote.go` only supports GCE instances. But actually
running the tests is completely independent of GCE and could work just
as well on any SSH-accessible machine.

This patch adds a new `--mode` switch, which defaults to `gce` for
backwards compatibility, but can be set to `ssh`. In that mode, the GCE
API is not used at all, and we simply connect to the hosts given via
`--hosts`.

This is still better than `run_local.go` because the latter mixes build
environment with test environment, which doesn't fit well with
container-optimized operating systems.

This is part of an effort to setup the e2e node tests on Fedora CoreOS
(see https://github.com/coreos/fedora-coreos-tracker/issues/990).

Patch best viewed with whitespace ignored.
2021-11-22 10:13:15 -05:00
Jonathan Lebon e0723c1e64 test-e2e-node: add SSH_OPTIONS
This allows overriding the default options.
2021-11-22 10:13:13 -05:00
Namanl2001 d9bd480edd adding comment in makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-11-16 01:24:39 +05:30
Benjamin Elder 71071d13ab remove make rule for test-e2e-kubeadm
this target depended on a broken binary and is clearly unused

kubeadm e2e development should be done with: https://github.com/kubernetes/kubeadm/tree/main/kinder
2021-11-02 12:04:14 -07:00
Namanl2001 952e2732d5 adding make comment
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-30 01:12:32 +05:30
Namanl2001 1b69338460 amending desc in makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 21:57:42 +05:30