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

PWX-32850: When preflight is unsupported we need to make sure we are … #1195

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

jrivera-px
Copy link
Contributor

…setting the pre-flight annotation to false.

What this PR does / why we need it:
When preflight was not supposed to be run. We were only setting the annotation to false when the annotation did not exist. Problem here was it existed and was set to "true". This prevented the cluster configuration changes from being applied since it continually though preflight should be run. The fix is to make sure preflight annotation is set to false when pre-flight is not supported.
Which issue(s) this PR fixes (optional)
Closes #
PWX-32850
Special notes for your reviewer:

…setting the pre-flight annotation to false.

Signed-off-by: Jose Rivera <jose@portworx.com>
Copy link
Contributor

@nrevanna nrevanna left a comment

Choose a reason for hiding this comment

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

LGTM.
I tested this image and it worked for my usecase too.

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (d139354) 75.68% compared to head (99c811d) 75.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1195      +/-   ##
==========================================
- Coverage   75.68%   75.68%   -0.01%     
==========================================
  Files          64       64              
  Lines       18250    18249       -1     
==========================================
- Hits        13813    13812       -1     
  Misses       3453     3453              
  Partials      984      984              
Files Changed Coverage Δ
pkg/controller/storagecluster/storagecluster.go 76.61% <100.00%> (-0.03%) ⬇️

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

@jrivera-px jrivera-px merged commit 7e5c4ff into master Aug 10, 2023
10 checks passed
jrivera-px added a commit that referenced this pull request Aug 10, 2023
…setting the pre-flight annotation to false. (#1195)

Signed-off-by: Jose Rivera <jose@portworx.com>
jrivera-px added a commit that referenced this pull request Aug 10, 2023
…setting the pre-flight annotation to false. (#1195) (#1200)

Signed-off-by: Jose Rivera <jose@portworx.com>
@piyush-nimbalkar piyush-nimbalkar deleted the PWX-32850-preflt-unsupported-set-annot branch September 15, 2023 17:52
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.

None yet

2 participants