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

Show restart count warnings only for latest deployment #10440

Merged
merged 1 commit into from
Aug 17, 2016

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Aug 16, 2016

Fixes: #10417

@Kargakis PTAL

@mfojtik
Copy link
Contributor Author

mfojtik commented Aug 16, 2016

[test]

@@ -937,6 +937,8 @@ func describeDeployments(f formatter, dcNode *deploygraph.DeploymentConfigNode,
out := []string{}
deploymentsToPrint := append([]*kubegraph.ReplicationControllerNode{}, inactiveDeployments...)

latestName := deployutil.LatestDeploymentNameForConfig(dcNode.DeploymentConfig)
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this just before the loop you are using it

@mfojtik mfojtik force-pushed the fix-restart-warnings branch from 49169ed to ccb73b9 Compare August 16, 2016 12:31
@mfojtik
Copy link
Contributor Author

mfojtik commented Aug 16, 2016

@Kargakis fixed PTAL

@mfojtik mfojtik force-pushed the fix-restart-warnings branch from ccb73b9 to bd029bd Compare August 16, 2016 16:35
@mfojtik
Copy link
Contributor Author

mfojtik commented Aug 16, 2016

@Kargakis PTAL

I used different approach, passing the func will allow to get the count for every deployment. I tested this with paused deployment and it works (I can see the pods restarting in "old" deployment).

@mfojtik
Copy link
Contributor Author

mfojtik commented Aug 17, 2016

[test]

#9624

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to bd029bd

@0xmichalis
Copy link
Contributor

I used different approach, passing the func will allow to get the count for every deployment. I tested this with paused deployment and it works (I can see the pods restarting in "old" deployment).

Can't you just execute the function and pass the count?

@mfojtik
Copy link
Contributor Author

mfojtik commented Aug 17, 2016

@Kargakis no because I need the graph

@0xmichalis
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to bd029bd

@openshift-bot
Copy link
Contributor

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

@openshift-bot
Copy link
Contributor

openshift-bot commented Aug 17, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8025/) (Image: devenv-rhel7_4855)

@openshift-bot openshift-bot merged commit 8297f60 into openshift:master Aug 17, 2016
@mfojtik mfojtik deleted the fix-restart-warnings branch September 5, 2018 21:07
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