Remove dapper completely, rename local-XXXX to XXXX targets#13389
Remove dapper completely, rename local-XXXX to XXXX targets#13389dereknola wants to merge 3 commits intok3s-io:mainfrom
local-XXXX to XXXX targets#13389Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Derek Nola <derek.nola@suse.com>
local-XXXX just XXXXX targetslocal-XXXX just XXXXX targets
local-XXXX just XXXXX targetslocal-XXXX to XXXX targets
local-XXXX to XXXX targetslocal-XXXX to XXXX targets
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 . |
There was a problem hiding this comment.
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.
| 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/* |
There was a problem hiding this comment.
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?
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
infracontainer 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