-
Notifications
You must be signed in to change notification settings - Fork 64
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
Selection of Kubernetes components to apply during odo push/deploy #693
Comments
I agree and in #517 suggested a new property like 'autoBuild' or 'autoDeploy' that could be added to image and kubernetes components rather than having the devfile tool reason based on the commands present. (There's quite a bit of extra noise in that issue though, sorry). Looking ahead a bit... I guess the existing proposal more aligns with 'autoBuild' / 'autoDeploy' defaulting to "true", so 'odo' still has a bit of a challenge if it would prefer the default to be false. Still I think this is less verbose, and it's less to conceptually understand. If the command is nothing more than "go look at the component definition" then why do we even have to bother having a command? This type of apply command just seems so different than the build/run/debug/test commands where they happen within the component container. Maybe I just don't get 'apply' commands? |
@feloy Can you explain what is causing the confusion?
(It mentions devworkspace, but should be the behavior for all tools) And |
@yangcao77 I agree that the rule is simple and documented, but can be difficult to apply for a (human) user. As an example: Moreover, |
@feloy If we take out Similarly, as a user, I define a Kubernetes component which I want all resources defined within that will be brought up during startup. and I won't define any additional apply/deploy command unless I want to manually kick off the deployment. If I understands currently, what you are suggesting is that for any Kubernetes components, user should use |
@yangcao77 no, that is not what I'm suggesting. My main concern is that when you have this devfile (https://gist.github.com/feloy/3260e57f38d2eaa5519da669ea4d34d2) it is not trivial to see for a user that none of the two Kubernetes components will be deployed during |
I would like to add that this is not related to just |
Introduce |
/kind bug
In this page (point 4.) , it is specified that the Kubernetes components that are not associated to an Apply command will be applied at startup.
On odo implementation, that means that these non-associated Kubernetes components will be applied when running
odo push
.On the other hand, during
odo deploy
, the Kubernetes components applied will be the ones explicitely associated with thedeploy
command.This difference of selection of Kubernetes components for the commands
odo push
(indirect/implicit selection) andodo deploy
(direct/explicit selection) can be confusing for user and difficult to reason about.Which area this bug is related to?
/area api
/area library
The text was updated successfully, but these errors were encountered: