@@ -25,7 +25,6 @@ import (
2525 "github.com/spf13/pflag"
2626
2727 appsv1beta1 "github.com/apecloud/kubeblocks/apis/apps/v1beta1"
28- cfgutil "github.com/apecloud/kubeblocks/pkg/configuration/container"
2928 cfgcore "github.com/apecloud/kubeblocks/pkg/configuration/core"
3029 viper "github.com/apecloud/kubeblocks/pkg/viperx"
3130)
@@ -89,12 +88,8 @@ type ReconfigureServiceOptions struct {
8988
9089 // EnableRemoteOnlineUpdate enables remote online update
9190 RemoteOnlineUpdateEnable bool
92- // EnableContainerRuntime enables container runtime
93- ContainerRuntimeEnable bool
9491
95- DebugMode bool
96- ContainerRuntime cfgutil.CRIType
97- RuntimeEndpoint string
92+ DebugMode bool
9893}
9994
10095type VolumeWatcherOpts struct {
@@ -115,9 +110,7 @@ func NewVolumeWatcherOpts() *VolumeWatcherOpts {
115110 ServiceOpt : ReconfigureServiceOptions {
116111 GrpcPort : configManagerDefaultPort ,
117112 PodIP : viper .GetString (configPodIPEnvName ),
118- ContainerRuntime : cfgutil .AutoType ,
119113 DebugMode : false ,
120- ContainerRuntimeEnable : false ,
121114 RemoteOnlineUpdateEnable : false ,
122115 },
123116 LogLevel : "info" ,
@@ -129,42 +122,6 @@ func InstallFlags(flags *pflag.FlagSet, opt *VolumeWatcherOpts) {
129122 "volume-dir" ,
130123 opt .VolumeDirs ,
131124 "the config map volume directory to be watched for updates; may be used multiple times." )
132-
133- // flags.Var(&opt.NotifyHandType,
134- // "notify-type",
135- // "the config describes how to process notification messages.",
136- // )
137- //
138- // for signal handle
139- // flags.StringVar(&opt.ProcessName,
140- // "process",
141- // opt.ProcessName,
142- // "the config describes what db program is.")
143- // flags.StringVar((*string)(&opt.Signal),
144- // "signal",
145- // string(opt.Signal),
146- // "the config describes the reload unix signal.")
147- //
148- // for exec handle
149- // flags.StringVar(&opt.Command,
150- // "command",
151- // opt.Command,
152- // "the config describes reload command. ")
153- //
154- // for exec tpl scripts
155- // flags.StringVar(&opt.TPLConfig,
156- // "tpl-config",
157- // opt.TPLConfig,
158- // "the config describes reload behaviors by tpl script.")
159- // flags.StringVar(&opt.BackupPath,
160- // "backup-path",
161- // opt.BackupPath,
162- // "the config describes backup path.")
163- // flags.StringVar(&opt.FileRegex,
164- // "regex",
165- // opt.FileRegex,
166- // "the config sets filter config file.")
167-
168125 flags .StringVar (& opt .LogLevel ,
169126 "log-level" ,
170127 opt .LogLevel ,
@@ -181,23 +138,10 @@ func InstallFlags(flags *pflag.FlagSet, opt *VolumeWatcherOpts) {
181138 "debug" ,
182139 opt .ServiceOpt .DebugMode ,
183140 "the config sets debug mode." )
184- flags .StringVar ((* string )(& opt .ServiceOpt .ContainerRuntime ),
185- "container-runtime" ,
186- string (opt .ServiceOpt .ContainerRuntime ),
187- "the config sets cri runtime type." )
188- flags .StringVar (& opt .ServiceOpt .RuntimeEndpoint ,
189- "runtime-endpoint" ,
190- opt .ServiceOpt .RuntimeEndpoint ,
191- "the config sets cri runtime endpoint." )
192-
193- flags .BoolVar (& opt .ServiceOpt .ContainerRuntimeEnable ,
194- "cri-enable" ,
195- opt .ServiceOpt .ContainerRuntimeEnable ,
196- "the config sets enable cri." )
197141
198142 flags .BoolVar (& opt .ServiceOpt .RemoteOnlineUpdateEnable ,
199143 "operator-update-enable" ,
200- opt .ServiceOpt .ContainerRuntimeEnable ,
144+ opt .ServiceOpt .RemoteOnlineUpdateEnable ,
201145 "the config sets enable operator update parameter." )
202146
203147 // for multi handler
0 commit comments