Skip to content

fix: use ssa for status to avoid conflicts#1184

Draft
zachaller wants to merge 6 commits intoargoproj-labs:mainfrom
zachaller:ssa-status-r2
Draft

fix: use ssa for status to avoid conflicts#1184
zachaller wants to merge 6 commits intoargoproj-labs:mainfrom
zachaller:ssa-status-r2

Conversation

@zachaller
Copy link
Contributor

No description provided.

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
@codecov-commenter
Copy link

Bundle Report

Bundle size has no change ✅

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 92.49147% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.42%. Comparing base (ff88239) to head (bc39923).

Files with missing lines Patch % Lines
...l/utils/statusapply/common_apply_configurations.go 84.40% 15 Missing and 2 partials ⚠️
...nternal/controller/promotionstrategy_controller.go 82.14% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1184      +/-   ##
==========================================
+ Coverage   54.03%   54.42%   +0.38%     
==========================================
  Files          55       56       +1     
  Lines        6344     8491    +2147     
==========================================
+ Hits         3428     4621    +1193     
- Misses       2546     3484     +938     
- Partials      370      386      +16     

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

Comment on lines 84 to 87
// +required
// +kubebuilder:validation:MaxLength=64
// +kubebuilder:validation:Pattern=`^([a-f0-9]{40}|[a-f0-9]{64})$`
// +kubebuilder:validation:Pattern=`^([a-f0-9]{40}|[a-f0-9]{64})?$`
Sha string `json:"sha"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch to optional and add omitempty?

Comment on lines 141 to 145
// +required
// +kubebuilder:validation:MinLength=40
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:MaxLength=64
// +kubebuilder:validation:Pattern=`^([a-f0-9]{40}|[a-f0-9]{64})$`
// +kubebuilder:validation:Pattern=`^([a-f0-9]{40}|[a-f0-9]{64})?$`
ProposedHydratedSha string `json:"proposedHydratedSha"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it optional and remove the redundant MinLength=0 annotation?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add omitempty

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants