-
Notifications
You must be signed in to change notification settings - Fork 244
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
Support using built-in resource types for inlined Kubernetes-typed components #4685
Comments
This is interesting. would this show up in |
No odo won't be showing this. |
@kadel a couple of questions based on your comment:
Scope of the issue: At the moment, odo checks if the |
Correct. Let's not show them anywhere. Unless of course, it is Service (Operator CR)
Yes, to the first question. The resources should be created and deleted on odo push / odo delete. I don't understand the second question.
+1 |
I am using the example mentioned in the issue description. As a first step, I'm trying to figure out if the GVK in the specified Kubernetes inlined component is supported by the underlying cluster. But I'm hitting an issue that, at the moment, I can't figure how to overcome. PTAL at the WIP code - https://github.com/dharmit/odo/commit/5bb6c313e1490b6ab4f8e9e2aae5a418cfad0a4e. We're calling below function with the values supported, _ := client.IsResourceSupported(group, version, kind) The problem is with the All other calls to |
This issue will spill over to Sprint 205. I need to research how to circumvent the issues being faced in the WIP PR. |
Current state of things is documented in #4908 (comment). There are two main issues right now.
To get over the first problem, we could do either of the following:
A mix of solutions 2 & 3 could be to set only one label For the PVC error, I will have to dig further. @kadel @feloy @mik-dass @valaparthvi thoughts? |
I remember discussing this with you, @dharmit. Is there still something that you need? If I remember it correctly the outcome was that we should make sure that the resources created from |
The way I have gone about it in the code is to put only one label on Kubernetes inlined component - |
/kind bug
What versions of software are you using?
Operating System: Win10, Linux
Output of
odo version
: odo v2.1.0 (8479050)How did you run odo exactly?
Well, I'm not saying I had a compelling business or technical case for doing this, but just to understand the technology, I tried adding some buit-in type defs as inlined kubernetes-typed components, like this:
(Note there's no reference to this component from any of the
commands
.)I get similar results with including an inline Job type.
Actual behavior
In the VSCode debug console I see:
and nothing matching the nginx pod in the namespace via
kubectl get all
.In the debugger I see we step through:
fail to find a CSV match for the Pod type, and exit.
Expected behavior
I'd expect this definition to have been passed to "kubectl apply". odo shouldn't only be creating operator-backed resources.
Any logs, error output, etc?
See above
LINK
This could be grouped with this issue: #4159
The text was updated successfully, but these errors were encountered: