Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipedv1 using auto rollback config from spec.Planner instead #5052

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

The auto rollback configuration is generic for all applications kinds, so it should be placed in spec.Planner instead of spec(Kind).Input

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: khanhtc1202 <[email protected]>
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 22.74%. Comparing base (eca1f46) to head (ad3ecc9).

Files Patch % Lines
...pedv1/plugin/platform/kubernetes/planner/server.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5052      +/-   ##
==========================================
- Coverage   22.75%   22.74%   -0.01%     
==========================================
  Files         406      406              
  Lines       43041    43041              
==========================================
- Hits         9794     9790       -4     
- Misses      32470    32473       +3     
- Partials      777      778       +1     

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

t-kikuc
t-kikuc previously approved these changes Jul 18, 2024
Comment on lines +67 to +69
// Automatically reverts all deployment changes on failure.
// Default is true.
AutoRollback *bool `json:"autoRollback,omitempty" default:"true"`
Copy link
Member

Choose a reason for hiding this comment

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

[imo] How about adding the comment to explain this is only for the v1 for now? It's because we avoid using it on the current version.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can add a deprecated note to the Input.AutoRollback 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

@ffjlabo Done by ebe5f5f

Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

🚀

@khanhtc1202 khanhtc1202 merged commit 7059946 into master Jul 18, 2024
14 of 16 checks passed
@khanhtc1202 khanhtc1202 deleted the autorollback-config branch July 18, 2024 03:59
This was referenced Jul 18, 2024
This was referenced Jul 29, 2024
This was referenced Aug 13, 2024
@github-actions github-actions bot mentioned this pull request Aug 26, 2024
This was referenced Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants