You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use dynamic target version in lint check messages
Replace hardcoded "RHOAI 3.x" in lint check condition messages with the
actual target version (e.g. "RHOAI 3.0", "RHOAI 3.3") derived from the
--target-version flag.
- Add version.MajorMinorLabel() helper to format semver as "major.minor"
- Embed full check.Target in ComponentRequest and WorkloadRequest so
validation callbacks can access target version info
- Update validate.Removal() to auto-inject target version label
- Update all lint checks to use dynamic version in runtime messages
- Static check names/descriptions kept as-is (set at construction time)
Co-authored-by: Cursor <cursoragent@cursor.com>
check.WithMessage("DataSciencePipelines component (state: %s) will be renamed to AIPipelines in DSC v2 (RHOAI 3.x). The field path changes from '.spec.components.datasciencepipelines' to '.spec.components.aipipelines'", req.ManagementState),
69
+
check.WithMessage("DataSciencePipelines component (state: %s) will be renamed to AIPipelines in DSC v2 (RHOAI %s). The field path changes from '.spec.components.datasciencepipelines' to '.spec.components.aipipelines'", req.ManagementState, tv),
68
70
check.WithImpact(result.ImpactAdvisory),
69
71
check.WithRemediation("No action required - the component will be automatically renamed. Update any automation referencing '.spec.components.datasciencepipelines' to use '.spec.components.aipipelines' after upgrade"),
0 commit comments