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

✨ Add CRD Upgrade Safety Preflight check to the ClusterExtension controller #979

Conversation

rashmigottipati
Copy link
Member

Description

  • Adds a new preflight field to the ClusterExtensionSpec
  • Updates the ClusterExtension controller to be configured with preflight checks and run them if they're enabled

Fixes #877

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@rashmigottipati rashmigottipati requested a review from a team as a code owner June 25, 2024 16:01
Copy link

netlify bot commented Jun 25, 2024

Deploy Preview for olmv1 failed.

Name Link
🔨 Latest commit d84277f
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/667dc85eef573d000864b99b

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 26.98413% with 46 lines in your changes missing coverage. Please review.

Project coverage is 76.89%. Comparing base (208e584) to head (06914d2).

Files Patch % Lines
api/v1alpha1/zz_generated.deepcopy.go 4.00% 23 Missing and 1 partial ⚠️
...nternal/controllers/clusterextension_controller.go 38.70% 15 Missing and 4 partials ⚠️
cmd/manager/main.go 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #979      +/-   ##
==========================================
- Coverage   79.40%   76.89%   -2.51%     
==========================================
  Files          17       17              
  Lines        1170     1225      +55     
==========================================
+ Hits          929      942      +13     
- Misses        165      201      +36     
- Partials       76       82       +6     
Flag Coverage Δ
e2e 56.23% <26.98%> (-1.56%) ⬇️
unit 52.00% <0.00%> (-2.45%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@rashmigottipati rashmigottipati force-pushed the enable-crd-upgrade-safety-checks branch 3 times, most recently from de72c86 to 86634d8 Compare June 25, 2024 16:32
everettraven
everettraven previously approved these changes Jun 27, 2024
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Changes LGTM - thanks @rashmigottipati !

Would love to see a demo of this functioning in the next community call!

everettraven
everettraven previously approved these changes Jun 27, 2024
…ller

Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
@rashmigottipati rashmigottipati force-pushed the enable-crd-upgrade-safety-checks branch from 7ac4221 to 06914d2 Compare June 27, 2024 20:34
@everettraven everettraven added this pull request to the merge queue Jun 27, 2024
Merged via the queue into operator-framework:main with commit cab41aa Jun 27, 2024
15 of 17 checks passed
perdasilva pushed a commit to LalatenduMohanty/operator-controller that referenced this pull request Aug 13, 2024
…roller (operator-framework#979)

* Add CRD Upgrade Safety Preflight check to the ClusterExtension controller

Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>

* add nil pointer check

Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>

---------

Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
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.

Transplant pre-flight logic introduced in rukpak to operator-controller
2 participants