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

tags existing deployment nodes as "found" #18723

Conversation

juanvallejo
Copy link
Contributor

@juanvallejo juanvallejo commented Feb 22, 2018

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 22, 2018
@@ -259,7 +259,7 @@ func EnsureDeploymentNode(g osgraph.MutableUniqueGraph, deployment *extensions.D
node := osgraph.EnsureUnique(g,
nodeName,
func(node osgraph.Node) graph.Node {
return &DeploymentNode{Node: node, Deployment: deployment}
return &DeploymentNode{Node: node, Deployment: deployment, IsFound: true}
Copy link
Contributor

@liggitt liggitt Feb 22, 2018

Choose a reason for hiding this comment

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

why are we setting this to true? I thought that only got set when we verified its existence in the API

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We set it to false in FindOrCreateSynthetic...Node, when a synthetic node is created if a resource is not able to be retrieved / found.

We appear to set IsFound to true here in Ensure...Node funcs

Copy link
Contributor

Choose a reason for hiding this comment

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

not in &StatefulSetNode{node, statefulSet, false}...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not in &StatefulSetNode{node, statefulSet, false}...

That appears to be a mistake I made in this PR:
https://github.com/openshift/origin/pull/18579/files#diff-5b718bf0b0ba776d85871d51d87dd74a

Ensure...Node functions are called from projectstatus.go for every node that is successfully loaded from the server.

I have updated this PR to correct this.

Additionally, it appears that a ScalingEdgeKind was not being added between hpa nodes and replicaSet nodes. I have updated this PR to address this as well.

@juanvallejo
Copy link
Contributor Author

/test extended_networking_minimal

@juanvallejo juanvallejo force-pushed the jvallejo/mark-found-deployment-nodes branch from fd95fb8 to 8bd8e3b Compare February 22, 2018 23:33
@juanvallejo
Copy link
Contributor Author

/test cmd
/test unit

@liggitt
Copy link
Contributor

liggitt commented Feb 23, 2018

can you add a test that exercises this function that would have failed on the previous bugs? (see existing tests in projectstatus_test.go as examples)

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 24, 2018
@juanvallejo
Copy link
Contributor Author

@liggitt thanks, added a test.

Also, updated PR to address the last comment in https://bugzilla.redhat.com/show_bug.cgi?id=1540560#c7 which calls for displaying statefulsets and daemonsets as part of oc status

@juanvallejo
Copy link
Contributor Author

/retest

@juanvallejo
Copy link
Contributor Author

@liggitt friendly ping

@liggitt
Copy link
Contributor

liggitt commented Feb 26, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 26, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: juanvallejo, liggitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 26, 2018
@openshift-merge-robot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@juanvallejo
Copy link
Contributor Author

/test extended_networking_minimal

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-merge-robot openshift-merge-robot merged commit 1e29a56 into openshift:master Feb 26, 2018
@juanvallejo juanvallejo deleted the jvallejo/mark-found-deployment-nodes branch February 26, 2018 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants