← Back to Pull requests

ROSAENG-67854 | feat: enable day-2 HCP AWS tag edits #3647

Closed
unknown closed this pull request without merging on Oct 28, 2026 13:55 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 22:30 UTC
Author

Summary

Enable day-2 AWS tag editing through rosa edit cluster --tags and rosa edit machinepool --tags for ROSA HCP clusters with control-plane version 4.20+. The flag supplies the complete desired customer tag set: omitted tags are removed, and --tags '' clears the editable set. Classic and older HCP clusters reject tag edits.

Machine pool edits preserve inherited cluster tags. Tag removals are sent as JSON null values in the same OCM PATCH as any other requested edits. This change utilizes ocm-common v0.0.46 for shared tag validation and diff helpers.

Jira

  • ROSAENG-67854
  • Type of Change

  • feat

  • fix

  • docs / style / refactor / test / chore / build / ci / perf
  • Testing

  • make basic-checks and make test passed.

  • Added unit and fake-OCM-server tests for version gating, replacement and clearing, inherited tags, null deletions, unchanged edits, combined PATCH requests, and keys and values containing spaces.

  • Added day-2 E2E coverage for cluster and machine pool tag changes, AWS worker tags, and worker identities. The E2E package compiled; live E2E cases were not run because no cluster fixture was available.

  • Manual testing against integration and staging are complete. This has not yet been rolled out to production. While testing, we found that clusters service was terminally propagating cluster tags to NodePool objects, which is not the expected behavior. We have a secondary PR up to address this, but that does not change the API behavior. As such, this is good to merge.
  • Breaking Changes

  • No breaking changes
  • Checklist

  • Commit format follows ROSAENG-67854 | type: description

  • make install-hooks has been run

  • Tests added/updated where appropriate

  • Manually tested the change
  • [ROSAENG-67854]: https://redhat.atlassian.net/browse/ROSAENG-67854?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Edit customer-managed AWS tags on ROSA Hosted Control Plane clusters running control plane version 4.20 or later, and on their machine pools, using repeatable --tags options or interactive prompts.
    Specify the desired tag set to replace existing tags; omitted tags are removed. Use --tags '' to clear customer-managed tags.
    Machine pools inherit cluster tags unless overridden with pool-specific tags. Tag changes can be combined with other cluster or machine-pool edits; if tags are already current, no update is made.
    Documentation
    Updated tag-flag help with quoting guidance for common shells and clarified machine-pool tag behavior.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 365 lines (+273 / -92) across 4 files Reviewer: michaelryanmcneill Review duration: 19645m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 365 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.353
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3647"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.7% (MEDIUM) · Higher = larger blast radius
    42.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.9% · Safe to merge
    16.9%
    Repository