Skip to content

Comments

Web console: editing compute resource limits#6853

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
spadgett:limits
Feb 4, 2016
Merged

Web console: editing compute resource limits#6853
openshift-bot merged 1 commit intoopenshift:masterfrom
spadgett:limits

Conversation

@spadgett
Copy link
Member

  • Allow editing compute resource requests and limits for deployment configs and replication controllers that don't have a deployment config.
  • Allow setting compute resource requests and limits during create.

https://trello.com/c/23NdtCwN

Browse deployment config:

openshift_web_console

Set resource limits page:

openshift_web_console

/cc @jwforres @derekwaynecarr @sosiouxme

@spadgett spadgett force-pushed the limits branch 6 times, most recently from bb18f89 to 881ee30 Compare January 27, 2016 20:29
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 28, 2016
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 28, 2016
@spadgett spadgett force-pushed the limits branch 4 times, most recently from 3162eaa to 341a269 Compare January 28, 2016 19:47
@spadgett spadgett changed the title [WIP] Web console: editing compute resource limits Web console: editing compute resource limits Jan 28, 2016
@spadgett
Copy link
Member Author

@jwforres PTAL

Copy link
Member

Choose a reason for hiding this comment

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

limit ranges very very rarely change, wondering if we should just list here and save a websocket connection, when we originally talked about watching for this stuff it was for quota which was going to be updating potentially.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'll make the change.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 28, 2016
@spadgett
Copy link
Member Author

@jwforres thoughts on this alternative for showing limit range and default?

openshift_web_console

@spadgett
Copy link
Member Author

Hm, maybe the placeholder is a bad idea for the default.

Copy link
Member

Choose a reason for hiding this comment

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

same thing here, change to a list

@spadgett
Copy link
Member Author

Rebased and removed the limit range watches.

Copy link
Member

Choose a reason for hiding this comment

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

trying to follow exactly where unit normalization is happening with the current value vs the min and max. some comments might help here

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 28, 2016
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 29, 2016
@spadgett spadgett force-pushed the limits branch 2 times, most recently from 0101412 to ddf4faa Compare January 29, 2016 13:52
@spadgett
Copy link
Member Author

Rebased and updated. Current UI:

openshift_web_console

@jwforres please have another look

@jwforres
Copy link
Member

LGTM fork_ami

@spadgett
Copy link
Member Author

Rebased and fixed java/bindata conflict.

@spadgett
Copy link
Member Author

spadgett commented Feb 2, 2016

Rebased.

@sosiouxme
Copy link
Member

@spadgett FYI I think the PodLimitRequest mechanics are firmed up, will confirm more solidly at scrum this afternoon.

See implementation details under https://trello.com/c/rRN7m0zv

PR #6901

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2016
@spadgett
Copy link
Member Author

spadgett commented Feb 4, 2016

Rebased.

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 4, 2016
@spadgett
Copy link
Member Author

spadgett commented Feb 4, 2016

[test]

@spadgett spadgett force-pushed the limits branch 2 times, most recently from c47b4ae to 8bef1c6 Compare February 4, 2016 14:57
angular.forEach(containers, function(container) {
var resources = container.resources;
if (!resources) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this container's defaults still matter, you wouldn't have validation on these fields but the defaults should still go against the total

* Allow editing compute resource requests and limits for deployment
  configs and replication controllers that don't have a deployment
  config.
* Allow setting compute resource requests and limits during create.
@jwforres
Copy link
Member

jwforres commented Feb 4, 2016

LGTM [merge]

@jwforres jwforres added the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2016
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4852/) (Image: devenv-rhel7_3333)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d0cafa7

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d0cafa7

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/815/)

openshift-bot pushed a commit that referenced this pull request Feb 4, 2016
@openshift-bot openshift-bot merged commit 2f92d7d into openshift:master Feb 4, 2016
$scope.resourceURL = Navigate.resourceURL($scope.name, "ReplicationController", $routeParams.project);
$scope.showPodWarning = true;
} else {
Navigate.toErrorPage("A replication controller or deployment config must be provided.");
Copy link
Contributor

Choose a reason for hiding this comment

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

return here?

@spadgett spadgett deleted the limits branch February 4, 2016 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/web lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants