-
Notifications
You must be signed in to change notification settings - Fork 140
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
fix: only replace/set default model reg namespace by webhook if comnent is enabled #1249
fix: only replace/set default model reg namespace by webhook if comnent is enabled #1249
Conversation
…nent is enabled - when modelreg is not set in DSC - when modelreg is set to be Removed these two cases should not block operation, for backwards compataible Signed-off-by: Wen Zhou <[email protected]>
So back to my question do we really need that webhook when there is default value? Is it against explicit "" value? |
better to have an example for this question. |
modelregistry has // +kubebuilder:default="odh-model-registries". So, if I put no RegistriesNamespace in the DSC, I see odh-model-registries there. The only case when len can be 0, IIUC, is setting it explicitly to "". |
yep, see |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CFSNM, ykaliuta 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 |
c87dc1c
into
opendatahub-io:incubation
It sounds as a pretty weird case. I can understand that user can forget to set some value. But why user should explicitly set it to a wrong value? Is it the only value like that (that user can break the system)? What about applicationNamespace in DSCI? |
in theory, if explictily set "" for applicationnamespace in DSCI |
Description
these two cases should not block operation, for backwards compataible
https://issues.redhat.com/browse/RHOAIENG-13052
How Has This Been Tested?
local build: quay.io/wenzhou/opendatahub-operator-catalog:v2.18.13052
Screenshot or short clip
Merge criteria