created attempt at single binary#28
Open
Jayclifford345 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add k8s-test: self-contained CLI for running Helm chart tests
Overview
Introduce a Go-based CLI (
tools/k8s-test) to run chart tests without shell scripts on PATH. It embeds the existingtools/helm-test/manifestsat build time, reusing the repo as the single source of truth.Key features
make buildcopiestools/helm-test/manifests/**into the binary via go:embed.k8s-test,k8s-test runcluster info|check|create|deletedeps list|deploysubject info|deploy|upgrade|deletetest list|run [--phase deploy|upgrade|delete]subject.typetohelmif omitted (no breaking change).subject.pathsupports local source testing; remote charts still supported.--workersflag forrunandcluster create(default 1). If noconfigFile, generates a minimal Kind config with 1 control-plane + N workers.--tidyflag to auto-delete the cluster after tests complete.Usage
cd tools/k8s-test && make buildk8s-test run -d <test-dir> [--workers N] [--tidy]k8s-test cluster create -d <test-dir> [--workers N]k8s-test deps deployk8s-test subject deploy -d <test-dir>k8s-test test run -d <test-dir>Requirements
kubectl,helm,flux, andkind(orminikube).Files added/updated
tools/k8s-test/Go module, Cobra commands, embedded FS, Makefile, README.gitignore: ignoretools/k8s-test/internal/helmtestfs/manifests/andtools/k8s-test/bin/Next steps (optional)
helm upgrade --install).