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

[release-0.1] Improve the heuristics we use to identify resource types #61

Merged
merged 1 commit into from
May 6, 2021
Merged

[release-0.1] Improve the heuristics we use to identify resource types #61

merged 1 commit into from
May 6, 2021

Conversation

negz
Copy link
Member

@negz negz commented May 6, 2021

Description of your changes

Backport of #60

This makes GetKubernetesResource a little more robust in the face of ambiguous resources, for example an XR that has a composition selector set but that is not able to set its composition ref because no composition matches.

These heuristics are still flawed; for example we would be unable to identify a pathological XR with no compositionRef, compositionSelector, or resourceRefs.

I have:

  • Read and followed xgql's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

See #60

This makes GetKubernetesResource a little more robust in the face of ambiguous
resources, for example an XR that has a composition selector set but that is not
able to set its composition ref because no composition matches.

These heuristics are still flawed; for example we would be unable to identify a
pathological XR with no compositionRef, compositionSelector, or resourceRefs.

Signed-off-by: Nic Cope <negz@rk0n.org>
@negz negz merged commit 0607b87 into upbound:release-0.1 May 6, 2021
@negz negz deleted the release-0.1-taxonomy branch May 6, 2021 21:47
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.

1 participant