-
Notifications
You must be signed in to change notification settings - Fork 350
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(cli): Remove CamelCatalogs CR on kamel uninstall #4162
fix(cli): Remove CamelCatalogs CR on kamel uninstall #4162
Conversation
@@ -62,6 +63,7 @@ func newCmdUninstall(rootCmdOptions *RootCmdOptions) (*cobra.Command, *uninstall | |||
cmd.Flags().Bool("skip-config-maps", false, "Do not uninstall the Camel K Config Maps in the current namespace") | |||
cmd.Flags().Bool("skip-registry-secret", false, "Do not uninstall the Camel K Registry Secret in the current namespace") | |||
cmd.Flags().Bool("skip-kamelets", false, "Do not uninstall the Kamelets in the current namespace") | |||
cmd.Flags().Bool("skip-camel-catalogs", false, "Do not uninstall the Camel Catalogs in the current namespace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for this. Really good idea, thanks!
pkg/util/defaults/defaults.go
Outdated
@@ -26,7 +26,7 @@ const ( | |||
Version = "2.0.0-SNAPSHOT" | |||
|
|||
// DefaultRuntimeVersion -- | |||
DefaultRuntimeVersion = "1.18.0-SNAPSHOT" | |||
DefaultRuntimeVersion = "3.20.1-SNAPSHOT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was changed automatically, should I revert this change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's okey to keep it.
8b9b579
to
0005546
Compare
0005546
to
a08fc76
Compare
Please, let me know when this is ready to be merged. |
Check failure unrelated. Merging. |
Thanks. |
Fixes #4160
Motivation
When using
kamel uninstall
command the CamelCatalogs CR are not removed from the cluster. When an operator with the same Runtime is installed, it is already considered as Ready so the builder image container is not builded again with the code from the operator.Description
Remove all the CamelCatalogs in the namespace of the operator on
kamel uninstall call
and add askip-camel-catalogs
flag.Release Note