Skip to content

Conversation

@bradmwilliams
Copy link
Contributor

When using APIObject.current() to lookup a resource, it was always
using the lowercase qname (kind[.group]/name) to issue a get. This
creates a problem on systems where Uppercase an/or Mixed case name
have been used. The resources are never properly found and any
dependent logic would be impacted. This PR adds the ability to
handle upper|lower|mixed case lookup to the APIObject methods and
preserves existing behaviour. The current() logic will always
lookup objects with lowercase=False.

@bradmwilliams bradmwilliams force-pushed the current-case-fix branch 4 times, most recently from b7ee783 to 914b1b1 Compare December 1, 2020 17:32
@bradmwilliams bradmwilliams merged commit 8941738 into openshift:main Dec 1, 2020
@bradmwilliams bradmwilliams deleted the current-case-fix branch December 1, 2020 18:13
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