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

Fix stateful sets replicas count #1165

Merged

Conversation

benjaminapetersen
Copy link
Contributor

@jwforres this will take care of the Stateful Set list & individual page.
I'll fix it for monitoring in a separate follow-on.

// we are just using to fix the fact that the replicas count in inaccurate
watches.push(DataService.watch('pods', context, function(podData) {
$scope.pods = podData.by('metadata.name');
var allOwners = _.toArray($scope.statefulSets);
Copy link
Member

Choose a reason for hiding this comment

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

i actually dont think you need to convert it to an array, i think it will accept $scope.statefulSets directly. The only reason we did it on overview is because we have to combine a bunch of different sets of owners

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok cool, ill nix this

<replicas
status="statefulSet.status.replicas"
spec="statefulSet.spec.replicas"
disable-scaling="!isScalable()"
scale-fn="scale(replicas)"
deployment="statefulSet">
</replicas>
-->
{{podsForStatefulSet | hashSize}} current / {{statefulSet.spec.replicas}} desired
Copy link
Member

Choose a reason for hiding this comment

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

when current === desired we should just say 'X replicas'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do, i have this on the other page, easy swap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will now be 3/5 replicas or 5 replicas, depending on ===

@benjaminapetersen benjaminapetersen force-pushed the stateful-sets-replicas-count branch from eb4a4a3 to 7288727 Compare January 20, 2017 21:49
@benjaminapetersen
Copy link
Contributor Author

squashed

@jwforres
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 7288727

@openshift-bot
Copy link

openshift-bot commented Jan 20, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/962/) (Base Commit: e50c0c2)

@openshift-bot openshift-bot merged commit 448422b into openshift:master Jan 20, 2017
@benjaminapetersen benjaminapetersen deleted the stateful-sets-replicas-count branch January 23, 2017 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants