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

Make WaitForCRDs work with Unstructured arguments. #1284

Merged
merged 1 commit into from
Jan 17, 2020
Merged

Conversation

porridge
Copy link
Member

What this PR does / why we need it:

We are calling WaitForCRDs with two types of arguments, but so far were
only handling one of them, and silently ignoring the unstructured
objects. In this latter case, this function was effectively a no-op.

Fixes #1282

We are calling WaitForCRDs with two types of arguments, but so far were
only handling one of them, and silently ignoring the unstructured
objects. In this latter case, this function was effectively a no-op.
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Nice find.

Kind: crd.Spec.Names.Kind,
})
case *unstructured.Unstructured:
waitingFor = append(waitingFor, schema.GroupVersionKind{

Choose a reason for hiding this comment

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

What happens if the unstructured object is not a CRD?

Copy link
Member Author

Choose a reason for hiding this comment

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

Then it will be rejected.

@porridge porridge merged commit e737ccd into master Jan 17, 2020
@porridge porridge deleted the get-crds-fix branch January 17, 2020 12:17
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
We are calling WaitForCRDs with two types of arguments, but so far were
only handling one of them, and silently ignoring the unstructured
objects. In this latter case, this function was effectively a no-op.

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
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.

Test harness tool does not wait for CRDs to be processed
3 participants