-
Notifications
You must be signed in to change notification settings - Fork 28
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
CNV-32485: Use cluster-wise eviction strategy configuration #1554
CNV-32485: Use cluster-wise eviction strategy configuration #1554
Conversation
@upalatucci: This pull request references CNV-32485 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@upalatucci: This pull request references CNV-32485 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
e2651e8
to
675a3fa
Compare
@upalatucci: This pull request references CNV-32485 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
src/utils/components/EvictionStrategy/EvictionStrategyModal.tsx
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
|
||
setChecked(EVICTION_STRATEGY_DEFAULT === EVICTION_STRATEGIES.LiveMigrate); |
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.
?
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.
If the vm and the hyperconverge do not have a strategy, make it true.
I can even use true directly
I should use that outside the useEffect and as a default value of the useState btw
...erview/SettingsTab/ClusterTab/components/TemplatesProjectSection/TemplatesProjectSection.tsx
Outdated
Show resolved
Hide resolved
675a3fa
to
993aaf5
Compare
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's looking great! I just had a few small suggestions.
src/utils/components/EvictionStrategy/EvictionStrategyModal.tsx
Outdated
Show resolved
Hide resolved
src/views/templates/details/tabs/scheduling/components/EvictionStrategyModal.tsx
Outdated
Show resolved
Hide resolved
src/views/templates/details/tabs/scheduling/components/EvictionStrategyModal.tsx
Outdated
Show resolved
Hide resolved
993aaf5
to
e44d91d
Compare
e44d91d
to
2386d77
Compare
/retest |
Looks good to me. I'd like for @metalice to take another look, though. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: metalice, upalatucci The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
/cherry-pick release-4.14 |
@gouyang: #1554 failed to apply on top of branch "release-4.14":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
📝 Description
EvictionStrategy on 4.14 can be configured cluster-wise using the Hyperconverge configuration
When VM does not specify an evictionStrategy, the vmi will be created with the configured strategy.
This means that on other screens like the schedule tab, when we show 'No eviction strategy' we have to show the cluster strategy.
Steps:
🎥 Demo
Before
After
reading from the cluster configuration