Open JohnNiang opened 2 years ago
@JohnNiang: The label(s) kind/feature
cannot be applied, because the repository doesn't have them.
/cc @kubesphere-sigs/sig-devops
hi @JohnNiang , this is great. Currently, the command ks install xxx --components devops,logging
be able to install KubeSphere (with Kubernetes). So, I prefer to uninstall a component with the following command:
ks uninstall --components xxx
I'd like to work on this issue. /assign
hi @mangoGoForward thanks for helping on this issue. Before you get started, you can share your idea of the command usage.
For DevOps uninstallation, @mangoGoForward could refer to https://github.com/kubesphere/website/issues/2155#issuecomment-982487406.
Thanks, the comment of kubesphere/website#2155 and the document of how to uninstall each component help me a lot. The operation of change the value of enabled
from true
to false
in ks-installer of the CRD ClusterConfiguration seems to be reusable, but remove related resource with each component is different, could we use switch
flow to process?
We can define an interface for the component. Such as:
type component interface {
install() error
uninstall() error
status()
name()
}
then, provide the implements for the different components.
We can define an interface for the component. Such as:
type component interface { install() error uninstall() error status() name() }
then, provide the implements for the different components.
Got it, thanks.
At present, official website has provided a document about how to uninstall each component.
But it's not very friendly for end users to execute so many command at the same time.
Therefore, I request to support component uninstallation in
ks
command. e.g.:/kind feature