fix: resourceRef should be a required property#411
Merged
Conversation
morri-son
previously approved these changes
May 2, 2024
Mend Scan Summary: ❌Repository: open-component-model/ocm-controller
|
Contributor
Author
|
Investigating test failure... interesting. |
Contributor
Author
|
hm, it passes locally |
Contributor
Author
|
ah, that's not the right one. Found it: Of course there was something without the resource thing. :D And here I was wondering what the hell would create a resource without a resource ref. :D |
Contributor
Author
|
ah, I see why it's optional... If it's a configuration or a localization it doesn't require a resource because it's using the Snapshot directly. Ah. :D |
Contributor
Author
|
Ugh, I'm looking for a nicer way to do this. :D Because configRef also uses this. I wanted to create a Validation webhook, but all the scaffolding required seems overkill. So I'm thinking of redesigning the API instead and using concrete values instead. I'll see what I can do tomorrow. |
5759d5b to
1a4471b
Compare
morri-son
approved these changes
May 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes open-component-model/ocm-project#66
What type of PR is this? (check all applicable)
Related Tickets & Documents
Screenshots
Added tests?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added to documentation?
Checklist: