docs(api): cut comments to what the code cannot say

Comments carry the mechanism, not the rationale; every argument removed
here is in the design proposal or the PR. Where one claim appeared at
several sites, the copy at the site that constrains the code stays.

Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
This commit is contained in:
Timofei Larkin authored and IvanHunters committed 2026-11-17 12:07:14 +03:00
1 parent 5b86018cb0
commit c96b91f67a
17 files changed
+58 -99

No files matched your search

@@ -159,13 +159,11 @@ func expectedValuesFrom() []helmv2.ValuesReference {
return store.ValuesFrom(nil, "", nil)
}
// releaseValuesFrom returns the valuesFrom a release should carry under its
// definition: the platform values, and for a kind whose block names a
// valuesPath one entry per account, so a release created before the block
// appeared gets the entries on its next reconcile. The accounts are resolved
// from the release's values with the definition's schema defaults applied,
// as the API resolves them on a write. An error means the values declare
// accounts the API would refuse, and leaves the release as it is.
// releaseValuesFrom returns the valuesFrom a release carries under its
// definition, resolving the accounts with the definition's schema defaults as
// the API does on a write, so a release created before the block appeared
// gets its entries on reconcile. An error means values the API would refuse;
// the release is left as it is.
func releaseValuesFrom(hr *helmv2.HelmRelease, appDef *cozyv1alpha1.ApplicationDefinition) ([]helmv2.ValuesReference, error) {
block := appDef.Spec.Credentials
if block == nil || block.ValuesPath == "" {