Skip to content

Remove dapper completely, rename local-XXXX to XXXX targets#13389

Open
dereknola wants to merge 3 commits intok3s-io:mainfrom
dereknola:no_dapper
Open

Remove dapper completely, rename local-XXXX to XXXX targets#13389
dereknola wants to merge 3 commits intok3s-io:mainfrom
dereknola:no_dapper

Conversation

@dereknola
Copy link
Member

@dereknola dereknola commented Dec 29, 2025

Proposed Changes

Remove dapper completely from k3s. Most of the make targets had already transition to nondapper, multistage docker build and run operations. This remove the remaining dapper targets and allows instead a "in-docker-XXXX" target for running extra scripts inside the infra container layer.

Types of Changes

CI improvements.

Verification

Tested release and GHA workflows

Testing

Linked Issues

N/A, perhaps stuff related to RISCV?

User-Facing Change


Further Comments

@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.45%. Comparing base (5fa9226) to head (20b3e75).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13389      +/-   ##
==========================================
- Coverage   21.48%   21.45%   -0.03%     
==========================================
  Files         190      190              
  Lines       15479    15492      +13     
==========================================
- Hits         3325     3324       -1     
- Misses      11701    11712      +11     
- Partials      453      456       +3     
Flag Coverage Δ
unittests 21.45% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Derek Nola <derek.nola@suse.com>
@dereknola dereknola marked this pull request as ready for review January 22, 2026 18:56
@dereknola dereknola requested a review from a team as a code owner January 22, 2026 18:56
@dereknola dereknola changed the title Remove dapper completly, make local-XXXX just XXXXX targets Remove dapper completely, make local-XXXX just XXXXX targets Jan 22, 2026
@dereknola dereknola changed the title Remove dapper completely, make local-XXXX just XXXXX targets Remove dapper completely, move local-XXXX to XXXX targets Jan 22, 2026
@dereknola dereknola changed the title Remove dapper completely, move local-XXXX to XXXX targets Remove dapper completely, rename local-XXXX to XXXX targets Jan 22, 2026
Makefile Outdated
BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//-/g')
in-docker-%: ## Advanced: wraps any script in Docker environment, for example: in-docker-package-cli
mkdir -p ./bin/ ./dist ./build
docker buildx build -t k3s:$(BRANCH) --target infra -f Dockerfile .
Copy link
Member

@brandond brandond Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we actually need any context for this, since we end up mounting everything in? You can avoid having any context if you read the Dockerfile from stdin.

Suggested change
docker buildx build -t k3s:$(BRANCH) --target infra -f Dockerfile .
docker buildx build -t k3s:$(BRANCH) --target infra - < Dockerfile

Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
cd $(dirname $0)/..

rm -rf dist bin build k3s hyperkube kubectl
rm -rf dist bin build k3s kubectl ./pkg/deploy/embed/* ./pkg/static/embed/* ./pkg/data/embed/*
Copy link
Member

@brandond brandond Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't do this. there are .empty files in the embed directories that must exist, otherwise go:embed will fail go vet if you don't have all the embedded stuff pre-staged by make download

Maybe just do git clean -xffd to remove all untracked files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants