Solution skill
Adopt KRM for `apko` file format
Complete solution
Shows how to fix adopt KRM for `apko` file format. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Given that JSON is valid yaml, there's nothing stopping the use of kyaml transformers prior to apko\config's config\contents or even between apko\config and apko\build. [maintainer mattmoor]: (this got a little rambly, but hopefully it makes sense) I don't see them as mutually exclusive TBH.
When to use
You are seeing this: [maintainer mattmoor]: (this got a little rambly, but hopefully it makes sense) I don't see them as mutually exclusive TBH. Use this skill when you run into "Adopt KRM for apko file format".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
[maintainer mattmoor]: (this got a little rambly, but hopefully it makes sense) I don't see them as mutually exclusive TBH. Given that JSON is valid yaml, there's nothing stopping the use of kyaml transformers prior to apko_config's config_contents or even between apko_config and apko_build. I would say the most interesting manipulation of the config (apko_config) is the production of a "locked" file form which is a task that has a level of semantic depth beyond what something like kustomize or kpt could do, since it requires a fairly deep semantic understanding. apko show-packages can be used to get a similar package list directly from apko FWIW. That said, in my mind the main feature of terraform isn't the templating, it is enabling an orchestrated composition of tools, e.g. describing how we take an apko SBOM and attest it with cosign, or tag the resulting digest based on package versions, ...
Context: Issue chainguard-dev/apko#725 (closed, 10 comments): Once you have your image configs and build scripts setup, the majority of the work involved in operating a secure software factory is config management. Kubernetes ecosystem has great config management tooling and libraries, which comes as no surprise given that the Kubernetes Resource Model (KRM) was designed with that intent. Virtually all manipulation that needs to ta
Evidence
Source: Issue chainguard-dev/apko#725 (closed, 10 comments): Once you have your image configs and build scripts setup, the majority of the work involved in operating a secure software factory is config management. Kubernetes ecosystem has great config management tooling and libraries, which comes as no surprise given that the Kubernetes Resource Model (KRM) was designed with that intent. Virtually all manipulation that needs to ta
Verified resolution: [maintainer mattmoor]: (this got a little rambly, but hopefully it makes sense) I don't see them as mutually exclusive TBH. Given that JSON is valid yaml, there's nothing stopping the use of kyaml transformers prior to apko_config's config_contents or even between apko_config and apko_build. I would say the most interesting manipulation of the config (apko_config) is the production of a "locked" file form which is a task that has a level of semantic depth beyond what something like kustomize or kpt could do, since it requires a fairly deep semantic understanding. apko show-packages can be used to get a similar package list directly from apko FWIW. That said, in my mind the main feature of terraform isn't the templating, it is enabling an orchestrated composition of tools, e.g. describing how we take an apko SBOM and attest it with cosign, or tag the resulting digest based on package versions, ...
Source URL: https://github.com/chainguard-dev/apko/issues/725
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_FFqlQO-R_v5zZNCQQjkrQQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Adopt KRM for `apko` file format <span>— Vectle</span></a>