-
Notifications
You must be signed in to change notification settings - Fork 903
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
feat(aws): added the ability to modify CPU credits #8736
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/scripts/modules/amazon/src/instance/awsInstanceType.service.js
Outdated
Show resolved
Hide resolved
app/scripts/modules/amazon/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/amazon/src/instance/awsInstanceType.service.spec.js
Outdated
Show resolved
Hide resolved
app/scripts/modules/amazon/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/amazon/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx
Show resolved
Hide resolved
app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/core/src/presentation/ToggleButtonGroupInput.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/core/src/presentation/ToggleButtonGroupInput.tsx
Outdated
Show resolved
Hide resolved
pdk27
force-pushed
the
aws-ec2-burstable
branch
from
November 17, 2020 22:11
b51bd19
to
ee62f98
Compare
app/scripts/modules/amazon/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx
Outdated
Show resolved
Hide resolved
- added a toggle for cpu credits with help fields - added reusable component for a toggle - added the ability to display toggle and reset conditionally - display cpu credits correctly in 'clone' wizard spinnaker/spinnaker#5989
- added a separate setting for cpu credits - converted class components to functional components - other misc. feedback
pdk27
force-pushed
the
aws-ec2-burstable
branch
from
November 18, 2020 21:48
ee62f98
to
5ff27d0
Compare
app/scripts/modules/core/src/presentation/ToggleButtonGroupInput.tsx
Outdated
Show resolved
Hide resolved
app/scripts/modules/core/src/presentation/ToggleButtonGroupInput.tsx
Outdated
Show resolved
Hide resolved
caseyhebebrand
approved these changes
Nov 19, 2020
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.
Thanks for incorporating the feedback.
erikmunson
pushed a commit
that referenced
this pull request
Nov 24, 2020
erikmunson
pushed a commit
that referenced
this pull request
Nov 24, 2020
f4d7d14 feat(core/managed): surface pre-deployment steps for versions (#8750) 0cdf836 chore(core): Upload new illustrations (#8744) e3c80c3 feat(core): Add a container for migration banners (#8735) 976e958 feat(bake): include git/repo artifacts in the list of artifacts to choose when baking helm charts (#8743) 7a8f939 feat(aws): added the ability to modify CPU credits (#8736)
mergify bot
pushed a commit
that referenced
this pull request
Nov 24, 2020
f4d7d14 feat(core/managed): surface pre-deployment steps for versions (#8750) 0cdf836 chore(core): Upload new illustrations (#8744) e3c80c3 feat(core): Add a container for migration banners (#8735) 976e958 feat(bake): include git/repo artifacts in the list of artifacts to choose when baking helm charts (#8743) 7a8f939 feat(aws): added the ability to modify CPU credits (#8736)
rumit-opsmx
pushed a commit
to rumit-opsmx/deck
that referenced
this pull request
Nov 30, 2020
* feat(aws): added the ability to modify CPU credits (spinnaker#8736) * feat(aws): added the ability to modify cpu credits - added a toggle for cpu credits with help fields - added reusable component for a toggle - added the ability to display toggle and reset conditionally - display cpu credits correctly in 'clone' wizard spinnaker/spinnaker#5989 * Addressed PR feedback - added a separate setting for cpu credits - converted class components to functional components - other misc. feedback * PR feedback: added React hooks * Removed unused component * feat(bake): include git/repo artifacts in the list of artifacts to choose when baking helm charts (spinnaker#8743) now that spinnaker/rosco#740 is in Co-authored-by: David Byron <david.byron@avast.com> * fix(titus): Fallback dimensions for target tracking policy (spinnaker#8746) * fix(titus): Disable edits of step scaling dimensions (spinnaker#8747) * feat(core): Add a container for migration banners (spinnaker#8735) * feat(core): Add migrations container component * feat(core): Add container to routes eligible for migrations feat(core): Add container to routes eligible for migrations feat(core): Edit migration config type feat(core): Edit migration config type feat(core): Edit migration config type fix(core): Update css * Refactor and rename Delete test banner Delete test banner * Update app/scripts/modules/core/src/banner/BannerContainer.tsx * chore(core): Upload new illustrations (spinnaker#8744) * feat(core/managed): surface pre-deployment steps for versions (spinnaker#8750) * feat(core/presentation): add bake icon * feat(core/domain): add lifecycle steps to managed artifact versions * feat(core/managed): show status bubble for baking on versions * feat(core/managed): surface baking on version detail pane Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * chore(amazon): publish amazon@0.0.282 2ec9db0 fix(titus): Disable edits of step scaling dimensions (spinnaker#8747) 7a8f939 feat(aws): added the ability to modify CPU credits (spinnaker#8736) * chore(core): publish core@0.0.533 f4d7d14 feat(core/managed): surface pre-deployment steps for versions (spinnaker#8750) 0cdf836 chore(core): Upload new illustrations (spinnaker#8744) e3c80c3 feat(core): Add a container for migration banners (spinnaker#8735) 976e958 feat(bake): include git/repo artifacts in the list of artifacts to choose when baking helm charts (spinnaker#8743) 7a8f939 feat(aws): added the ability to modify CPU credits (spinnaker#8736) * chore(titus): publish titus@0.0.155 2ec9db0 fix(titus): Disable edits of step scaling dimensions (spinnaker#8747) fadab40 fix(titus): Fallback dimensions for target tracking policy (spinnaker#8746) * fix(core): Fix details drawer positioning (spinnaker#8754) * chore(core): Export all generic instance components (spinnaker#8755) * chore(core): publish core@0.0.534 f102966 chore(core): Export all generic instance components (spinnaker#8755) 530f59c fix(core): Fix details drawer positioning (spinnaker#8754) * chore(pluginsdk-peerdeps): Publish 0.0.4 (spinnaker#8757) Co-authored-by: Prathibha Datta Kumar <kprathib@amazon.com> Co-authored-by: David Byron <dbyron@dbyron.com> Co-authored-by: David Byron <david.byron@avast.com> Co-authored-by: Alan Quach <aquach@netflix.com> Co-authored-by: caseyhebebrand <caseyhebebrand@gmail.com> Co-authored-by: Erik Munson <emunson@netflix.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: chebebrand <chebebrand@netflix.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
unlimitedCpuCredits
correctly from source server group to prevent invalid configurationIssue
The background information for the feature addition is detailed in spinnaker/spinnaker#5989
Screenshots and Gifs
Unlimited CPU Credits Help Field
ToggleGroupButtonInput
Unlimited CPU credits is shown only when applicable and reset conditionally (i.e. when selected instance type doesn't support bursting)
Clone a SG, and unlimited CPU credits is populated from source SG
1. Launch templates enabled
standard
cpu credits (Note: SG created with cpu creditsundefined
will default tofalse
for applicable instance types in clouddriver)unlimited
cpu credits2. Launch templates disabled (Toggle is hidden and unset)
Manual Tests
Tests
Create Server Group (SG) with unlimited CPU credits turned on
Create SG with unlimited CPU credits turned off
Create SG with unlimited CPU credits untouched
Result: SG created with unlimited CPU credits turned off, which is the default.
unlimitedCpuCredits
is set toundefined
in Deck, which translates to false in clouddriver.See where default is set.
unlimited CPU credits field is reset when instance type is changed in the wizard and the new type doesn't support bursting.
Clone SG works as expected
Clone SG + change unlimited CPU credits toggle / instance type works as expected
Unlimited CPU credits toggle is displayed only when launch templates is enabled in Deck