-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix stateful sets replicas count #1165
Conversation
// 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); |
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.
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
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.
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 |
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.
when current === desired we should just say 'X replicas'
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 do, i have this on the other page, easy swap
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 now be 3/5 replicas
or 5 replicas
, depending on ===
eb4a4a3
to
7288727
Compare
squashed |
[merge] |
Evaluated for origin web console merge up to 7288727 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/962/) (Base Commit: e50c0c2) |
@jwforres this will take care of the Stateful Set list & individual page.
I'll fix it for monitoring in a separate follow-on.