Skip to content

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

Merged
everettraven merged 2 commits into
operator-framework:mainfrom
rashmigottipati:enable-crd-upgrade-safety-checks
Jun 27, 2024
Merged

✨ Add CRD Upgrade Safety Preflight check to the ClusterExtension controller#979
everettraven merged 2 commits into
operator-framework:mainfrom
rashmigottipati:enable-crd-upgrade-safety-checks

Conversation

@rashmigottipati

Copy link
Copy Markdown
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 ownerJune 25, 2024 16:01
@netlify

netlifyBot commented Jun 25, 2024

Copy link
Copy Markdown

Deploy Preview for olmv1 failed.

NameLink
🔨 Latest commitd84277f
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/667dc85eef573d000864b99b

@codecov

codecovBot commented Jun 25, 2024

Copy link
Copy Markdown

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).

FilesPatch %Lines
api/v1alpha1/zz_generated.deepcopy.go4.00%23 Missing and 1 partial ⚠️
...nternal/controllers/clusterextension_controller.go38.70%15 Missing and 4 partials ⚠️
cmd/manager/main.go57.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 
FlagCoverage Δ
e2e56.23% <26.98%> (-1.56%)⬇️
unit52.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
rashmigottipatiforce-pushed the enable-crd-upgrade-safety-checks branch 3 times, most recently from de72c86 to 86634d8CompareJune 25, 2024 16:32
Comment threadinternal/controllers/clusterextension_controller.go
Comment threadinternal/controllers/clusterextension_controller.go Outdated
Comment threadinternal/controllers/clusterextension_controller.go Outdated
@rashmigottipati
rashmigottipatiforce-pushed the enable-crd-upgrade-safety-checks branch from af4db2b to da48d55CompareJune 27, 2024 16:54
everettraven
everettraven previously approved these changes Jun 27, 2024

@everettraveneverettraven left a comment

Copy link
Copy Markdown
Contributor

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!

Comment threadinternal/controllers/clusterextension_controller.go Outdated
everettraven
everettraven previously approved these changes Jun 27, 2024
Comment threadinternal/controllers/clusterextension_controller.go
…ller
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
@rashmigottipati
rashmigottipatiforce-pushed the enable-crd-upgrade-safety-checks branch from 7ac4221 to 06914d2CompareJune 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 cab41aaJun 27, 2024
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>
@skattojuskattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for freeto 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

@rashmigottipati@everettraven