From 9193f77fe3df5fb2d84e682a5a16522f3033d67f Mon Sep 17 00:00:00 2001 From: Nash Tsai Date: Thu, 9 Mar 2023 10:12:47 +0800 Subject: [PATCH] chore: update release notes template --- docs/release_notes/template.md | 7 ++++++- internal/cli/cmd/addon/addon.go | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/release_notes/template.md b/docs/release_notes/template.md index b501d18d4..bca03a7c2 100644 --- a/docs/release_notes/template.md +++ b/docs/release_notes/template.md @@ -20,7 +20,12 @@ We would like to extend our appreciation to all contributors who helped make thi * KB_CLUSTER_NAME - KubeBlock Cluster API object name * KB_COMP_NAME - Running pod's KubeBlock Cluster API object's `.spec.components.name` * KB_CLUSTER_COMP_NAME - Running pod's KubeBlock Cluster API object's `<.metadata.name>-<.spec.components.name>`, same name is used for Deployment or StatefulSet workload name, and Service object name - * New addons.extensions.kubeblocks.io API, with Addon management controller, where KubeBlocks allow addon extensions instead of using Helm sub-charts dependencies. + * New addons.extensions.kubeblocks.io API, with Addon management controller, where KubeBlocks allow addon extensions instead of using Helm sub-charts dependencies. Following addons are provided: + * Prometheus and Alertmanager + * Grafana + * S3 CSI driver + * Snapshot Controller + * KubeBlocks private network Load Balancer * ClusterDefinition API `spec.connectionCredential` add following built-in variables: * A random UUID v4 generator `$(UUID)` * A random UUID v4 generator with BASE64 encoded `$(UUID_B64)` diff --git a/internal/cli/cmd/addon/addon.go b/internal/cli/cmd/addon/addon.go index e885edecf..f62e24c6c 100644 --- a/internal/cli/cmd/addon/addon.go +++ b/internal/cli/cmd/addon/addon.go @@ -405,10 +405,6 @@ func (o *addonCmdOpts) buildPatch(flags []*pflag.Flag) error { install := map[string]interface{}{} if o.addonEnableFlags != nil { - if o.addon.Spec.InstallSpec.Enabled { - fmt.Fprintf(o.Out, "%s/%s is already enbled\n", o.GVR.GroupResource().String(), o.Names[0]) - return cmdutil.ErrExit - } if err = o.buildEnablePatch(flags, spec, install); err != nil { return err }