-
Notifications
You must be signed in to change notification settings - Fork 120
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
Cannot module delete
docker-registry when it was installed with custom cr-path and channel
#2319
Comments
Custom CR doesn't do anyhting in this scenario. I think that the issue is because ModuleTemplate for old and new modules is different/broken/not documented enough. In the new modules ( In docker-registy, and most of the old modules (all of them?) the Currently, our code loops over all ModuleTemplates, and matches one based on the module name and version: cli/internal/kube/kyma/kyma.go Lines 83 to 86 in 50e5878
I think the question is:
|
I see that both "old" and "new" moduletemplate have @kyma-project/jellyfish |
This observation is correct. New module tempaltes always have
May I ask about the use case to determine the template by version? As long as users still must install it via a channel, I think the lookup also should work via channel. In KLM, we have implemented this like we first check if there is an old module ( In the future, if it will be possible for the end user to install a module by version, then we could look it up by directly by |
Description
It seems there is a bug in
kyma alpha module delete
command as it tries to locate moduletemplate matching the global release channel.For example, when I install a module from channel
experimental
(overriden as global channel for this particular Kyma isfast
) and with a custom CR then I cannot delete it via CLIExpected result
After adding a module with custom CR and channel i should be able to remove module from Kyma CR with kyma CLI (having removed the custom CR first)
Actual result
Then I cannot delete it using CLI
☝ it seems like the logic is trying to find module template based on the kyma global channel, not the overridden one (experimental)
The same scenario works in kyma dashboard
Related issues
#1328
The text was updated successfully, but these errors were encountered: