Skip to content

feat!: drop the PromotionRequest CRD - #8280

Draft
jsbroks wants to merge 1 commit into
mainfrom
justin-c/drop-promotion-target-crds-df5fd5
Draft

jsbroks wants to merge 1 commit into
mainfrom
justin-c/drop-promotion-target-crds-df5fd5

Conversation

@jsbroks

@jsbroks jsbroks commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Description

PromotionRollouts, which live in the database, replace PromotionRequests as the way a target-aware Stage fans Freight out to its Targets. This removes the PromotionRequest CRD and everything that served it.

Removed

  • The PromotionRequest type, CRD, reconciler, validating webhook, indexers and RBAC
  • The promotion-requests REST endpoints
  • status.currentPromotionRequest and status.lastPromotionRequest on Stage

Changed

  • promote-to-stage and promote-downstream no longer fall back to a PromotionRequest. A server that does not create PromotionRollouts answers 501 for a Stage that selects Targets.
  • A Promotion that names a Target must be a PromotionRollout's child, and every Promotion is owned by its Stage.
  • The UI reads rounds only from PromotionRollouts.

Breaking change

The PromotionRequest CRD, the promotion-requests REST endpoints and the Stage status fields that referred to PromotionRequests are gone.

Checklist

Eligibility

  • Linked to an existing issue with no blocking labels (needs/priority, kind/proposal, needs discussion, needs research, maintainer only, area/security, size/large, size/x-large, size/xx-large).
  • Changes documentation only.
  • Changes ten lines or fewer.

Quality

  • Adds or updates corresponding tests.
  • Adds or updates corresponding documentation.

AI Use Disclosure

This PR was written:

  • By a human without AI assistance.
  • By a human with AI assistance. A human has reviewed every line prior to opening the PR.
  • By an AI with human supervision. A human has reviewed every line prior to opening the PR.
  • Entirely by an AI. No human has reviewed this prior to opening the PR.

Sign-Off

All commits:

  • Are signed off by their author (git commit -s) (required)
  • Are cryptographically signed (git commit -S) (encouraged)

PromotionRollouts, which live in the database, replace PromotionRequests
as the way a target-aware Stage fans Freight out to its Targets. This
removes the PromotionRequest type, CRD, reconciler, validating webhook,
REST endpoints, indexers and RBAC, and the Stage's
status.currentPromotionRequest and status.lastPromotionRequest fields.

The promote-to-stage and promote-downstream endpoints no longer fall
back to a PromotionRequest. A server that does not create
PromotionRollouts now answers 501 for a Stage that selects Targets.

A Promotion that names a Target must now be a PromotionRollout's child,
and every Promotion is owned by its Stage.

The UI reads rounds only from PromotionRollouts.

BREAKING CHANGE: the PromotionRequest CRD, the promotion-requests REST
endpoints and the Stage status fields that referred to PromotionRequests
are removed.

Signed-off-by: Justin Brooks <justin.brooks@akuity.io>
@kargo-governance-bot kargo-governance-bot Bot added the needs/area Issue or PR needs to be labeled to indicate what parts of the code base are affected label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@kargo-governance-bot kargo-governance-bot Bot added the needs/kind Issue or PR needs to be labeled to clarify its nature label Dec 2, 2026
@netlify

netlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 80f2673
🔍 Latest deploy log https://app.netlify.com/projects/docs-kargo-io/deploys/6b1085c8d58bcda1b062e3e9
😎 Deploy Preview https://deploy-preview-8280.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kargo-governance-bot kargo-governance-bot Bot added the needs/priority Priority has not yet been determined; a good signal that maintainers aren't fully committed label Dec 2, 2026
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 70.20%. Comparing base (bc03b1c) to head (80f2673).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/promotions/watches.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8280      +/-   ##
==========================================
+ Coverage   69.96%   70.20%   +0.24%     
==========================================
  Files         624      620       -4     
  Lines       44377    44074     -303     
==========================================
- Hits        31048    30942     -106     
+ Misses      13329    13132     -197     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs/area Issue or PR needs to be labeled to indicate what parts of the code base are affected needs/kind Issue or PR needs to be labeled to clarify its nature needs/priority Priority has not yet been determined; a good signal that maintainers aren't fully committed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant