-
Notifications
You must be signed in to change notification settings - Fork 347
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
Normalize object references #2158
Comments
cc: @johnpoth , @lburgazzoli, @astefanutti |
+1 |
I like the I would avoid the |
Yes, I think that if we want to make more than 1 field optional, we cannot treat "/" and ":" as interchangeable.. Hoping that there are no other ambiguities.. |
Right, I'd rather not make |
Right I remember searching for a "standard" thinking this would be easy to find but came up empty handed ... If we look at how the API server exposes the resource URLs, in order it goes I think I would prefer not having two different separators but it seems that way in most cases I see. If we look at At this stage I feel like I would +1 anything :) |
Another case against Generally, For the namespace, it seems there is a consensus it's a path / scope, applied to the resource location "unit", hence, if we follow the above generality, should be followed by For the type, it is less obvious to find a consensus in all the places that re-surface its serialised forms. As @johnpoth pointed out, you have
Which is a serialised form of object reference! So maybe |
The problem is ambiguity with optional fields: If the pattern is
Is With: |
Right, that's possible the A couple of examples to see how it compares to
|
Also in the context of #2083, we should normalize the way we reference generic Kubernetes resources.
I cannot find a standard for that. I see in the service-binding trait we're using a convention like:
Which is not natural... A better way would be to use the Knative CLI convention using colon separators:
Which also can simplify to:
We can also allow both
:
and/
as separators, to account for something like:Like the
kn
CLI, we can also use lowercase prefixes for special types, e.g.The text was updated successfully, but these errors were encountered: