fix: register helm values templates for argo-workflows and arc#92
Conversation
📝 WalkthroughWalkthroughThis PR introduces Helm values templates for managing container image configuration across Argo Workflows and Artifact-Conduit charts. It adds a new ChangesHelm Values Template Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Fix
ocm-kit"helm values template not found" error for argo-workflows and artifact-conduit by registering missing values-template resources.Why
ocm-kitlocates its Helm values template by scanning for ayaml-typed resource carrying the labelopendefense.cloud/helm/values-for: <chart-resource-name>. Neitherargo-workflowsnorartifact-conduitdeclared such a resource, soocm-kitfailed with:Error: failed to get helm values template: failed to find first helm values template: not found
flux,solution-arsenal,zot,ocm-demo, andsolution-arsenal-discoveryall follow a consistent pattern — a dedicated<chart>-values-templateresource (separate from the*-minimal-config/*-production-configprofiles) carrying the label and pointing at avalues.yaml.tplthat injects localized image references via.OCIResources. This PR brings both components in line with that pattern:argo-workflowsalready had an orphanedvalues.yaml.tpl(added in a prior commit but never wired up) — it's now registered asargo-workflows-chart-values-template.artifact-conduithad no template file at all — added a newvalues.yaml.tpl(modeled on argo-workflows'/flux's) templatingapiserver,controller, andetcdimage refs, and registered it asarc-chart-values-template.Testing
ocm add componentversion --create --file ./ctf component-constructor.yamland confirmed they succeed.ocm get resourcesthatargo-workflows-chart-values-templateandarc-chart-values-templateare present and carry theopendefense.cloud/helm/values-forlabel pointing at the correct chart resource.values.yaml.tplfiles byte-for-byte.Notes for reviewers
No CRD/API/RBAC changes. Purely additive — new
yamlresources and one new template file; existingminimal-config/production-configresources are untouched (kept unlabeled, consistent with precedent).
Checklist
Summary by CodeRabbit