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
[US3990]refactor:(cstor-operator): refactor cstor operator #867
[US3990]refactor:(cstor-operator): refactor cstor operator #867
Conversation
This commit will do following: 1. Iteration for pool creation will not happen at runtasks rather cstor-operator will one by one create pools to converge to maxPool count. 2. minPool field in SPC is deprecated. Providing minPool field in SPC won't do any thing. 3. maxPool field for manual provisioning is manadatory now to support reconciliation for manual provisioned pool. 4. Reconciliation has been added to manual provisioned pool. Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #867 +/- ##
==========================================
- Coverage 42.27% 42.12% -0.15%
==========================================
Files 141 141
Lines 9380 9275 -105
==========================================
- Hits 3965 3907 -58
+ Misses 5149 5103 -46
+ Partials 266 265 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sonasingh46 I have provided some comments.
Comments on name of custom resources needs to be resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
351f4fc
to
8a357e4
Compare
Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
cbc19e9
to
ee5f590
Compare
|
||
// If current pool count is less than maxpool count, try to converge to maxpool | ||
if currentPoolCount < int(spcGot.Spec.MaxPools) { | ||
maxPoolCount := int(spcGot.Spec.MaxPools) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since manual pool SPC didn't have this in 0.8, test if the upgrade will cause a failure here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not cause but I will test it.
Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
// validate can mutate spc object -- for example if maxPool field is not present in case | ||
// of auto provisioning, maxPool will default to 3. | ||
// We need to immediately patch SPC object here. | ||
if mutateSpc && !resync { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this case cause any issue with the following scenario:
- maya-apiserver (cstor-operator) is down
- SPC yaml is applied.
What does resync variable indicate?
Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
…rchive#867) * refactor:(cstor-operator): refactor cstor operator This commit will do following: 1. Iteration for pool creation will not happen at runtasks rather cstor-operator will one by one create pools to converge to maxPool count. 2. minPool field in SPC is deprecated. Providing minPool field in SPC won't do any thing. 3. maxPool field for manual provisioning is manadatory now to support reconciliation for manual provisioned pool. 4. Reconciliation has been added to manual provisioned pool. Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
* refactor:(cstor-operator): refactor cstor operator This commit will do following: 1. Iteration for pool creation will not happen at runtasks rather cstor-operator will one by one create pools to converge to maxPool count. 2. minPool field in SPC is deprecated. Providing minPool field in SPC won't do any thing. 3. maxPool field for manual provisioning is manadatory now to support reconciliation for manual provisioned pool. 4. Reconciliation has been added to manual provisioned pool. Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
This PR will do following:
Iteration for pool creation will not happen at runtasks
rather cstor-operator will one by one create pools to converge
to maxPool count.
minPool field in SPC is deprecated. Providing minPool field in
SPC won't do any thing.
Reconciliation has been added to manual provisioned pool.
Signed-off-by: sonasingh46 sonasingh46@gmail.com