Skip to content

Commit

Permalink
fix: addon controller adds support for checking if an addon is used b…
Browse files Browse the repository at this point in the history
…y a cluster before deleting or disabling it.(#6434)
  • Loading branch information
刘文豪 committed Apr 24, 2024
1 parent f992c2a commit 4ca56ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ var (
)

func init() {
os.Setenv("CM_NAMESPACE", "kb-system")

utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(appsv1alpha1.AddToScheme(scheme))
Expand Down Expand Up @@ -127,7 +129,7 @@ func init() {
viper.SetDefault("KUBEBLOCKS_SERVICEACCOUNT_NAME", "kubeblocks")
viper.SetDefault(constant.ConfigManagerGPRCPortEnv, 9901)
viper.SetDefault("CONFIG_MANAGER_LOG_LEVEL", "info")
viper.SetDefault(constant.CfgKeyCtrlrMgrNS, "default")
viper.SetDefault(constant.CfgKeyCtrlrMgrNS, "kb-system")
viper.SetDefault(constant.CfgHostPortConfigMapName, "kubeblocks-host-ports")
viper.SetDefault(constant.CfgHostPortIncludeRanges, "1025-65536")
viper.SetDefault(constant.CfgHostPortExcludeRanges, "6443,10250,10257,10259,2379-2380,30000-32767")
Expand Down

0 comments on commit 4ca56ef

Please sign in to comment.