Skip to content

feat(ci): RANCHER-2861 add per-entry constraint map and descriptor template support#104

Open
id-jenkins wants to merge 1 commit intomasterfrom
001-RANCHER-2861
Open

feat(ci): RANCHER-2861 add per-entry constraint map and descriptor template support#104
id-jenkins wants to merge 1 commit intomasterfrom
001-RANCHER-2861

Conversation

@id-jenkins
Copy link
Copy Markdown

@id-jenkins id-jenkins commented Apr 7, 2026

Summary

  • Add constraint-map input to update-applications and update-eureka-components actions, allowing per-entry version scope overrides (minor | patch | exact)
  • Implement parse_constraint to strip and interpret ^/~ version prefix semantics from descriptor version strings
  • Components/apps with exact scope are pinned and skipped during version query
  • Add new composite actions: build-constraint-map and validate-descriptor-template
  • Update release-update-flow.yml to detect platform-descriptor-template.json, validate it, build constraint maps, and pass them to update steps
  • Fix release-scan.yml to pin get-update-config call to master branch

Jira

RANCHER-2861

Test plan

  • Verify update-applications and update-eureka-components actions respect constraint-map input
  • Verify ^ prefix maps to minor, ~ to patch, and bare version to exact
  • Verify exact-pinned entries are skipped (no version query)
  • Verify build-constraint-map action correctly produces component-constraint-map and app-constraint-map outputs
  • Verify validate-descriptor-template action fails on invalid template
  • Verify workflow falls back gracefully when platform-descriptor-template.json is absent

🤖 Generated with Codemie Code

…mplate support

- Add constraint-map input to update-applications and update-eureka-components actions
- Implement parse_constraint to handle ^/~ version prefix semantics
- Support exact-pin (skip query), minor, and patch scopes per component/app
- Add build-constraint-map and validate-descriptor-template composite actions
- Add detect/validate/extract steps for platform-descriptor-template.json in release-update-flow
- Pass resolved constraint maps to update steps; fall back to {} if template absent
- Fix release-scan to pin get-update-config call to master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants