Repository navigation
Conversation
Signed-off-by: Moep90 <3042152+Moep90@users.noreply.github.com>
Signed-off-by: Moep90 <3042152+Moep90@users.noreply.github.com>
…rp#318) Signed-off-by: Moep90 <3042152+Moep90@users.noreply.github.com>
Contributor
Author
|
Closing this. The container image will be built in a kadet-hub fork instead, the same way as ghcr.io/kadet-hub/kapitan:next. |
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.
Closes #318. Spec:
docs/specs/cli-and-release.md, CLI-63 and a new row under Release assets.The release workflow gets an
imagejob. It downloads the two Linux archives of the same run, unpackskrabintobin/amd64andbin/arm64, and buildsghcr.io/kapicorp/krab:<version>for both platforms from the newDockerfile, so there is no second compile. On a tag it pushes the image and attaches a build provenance attestation (attest-build-provenancewithpush-to-registry).latestonly moves for tags without-. A manual run builds without pushing (CLI-46).Image contents:
debian:trixie-slimpinned by digest, withca-certificates,git,gnupgandpython3./opt/krab/pythonwithkadet==0.3.2andjinja2==3.1.6, theBASELINEofpyenv.rs, installed at build time.KRAB_PYTHONpoints at it, so a compile installs nothing and the root filesystem can be read-only.helm4.3.2 from its release archive, checked against the.sha256sumfrom get.helm.sh in a separate stage.krab..dockerignorelimits the context tobin/,LICENSEandREADME.md. The action pins are the current releases: setup-qemu v4.4.0, setup-buildx v4.4.1, login v4.8.0, build-push v7.4.0. The image is 348 MB.Checked locally with the amd64 image and the v2.0.0-alpha.7 binary (archive matches
SHA256SUMS), running--read-onlyas uid 999:krab --version,helm version(v4.3.2) andimport kadet, jinja2work.krab compileon three targets of a real Kapitan inventory, covering kadet, helm, jinja2, embedded gpg refs andresolvers.py. Two targets (10 and 24 files) are byte-identical tokapitan compile. The third differs in one file because krab drops a containersecurityContextthe kadet generator writes. That is a parity bug, not an image problem, filed as [parity]: kadet output loses a container securityContext that the generator writes into pod_spec.containers #320.sha256sum *line in thereleasejob.Not checked: the arm64 build (QEMU in CI) and the push to ghcr.io. On the first push the package may be created private and need to be made public once.