Remove unused config options
parent
c3f46d1e7c
commit
cd1adcf35d
|
@ -122,18 +122,6 @@ var settings = []Setting{
|
||||||
name: config.ReminderWaitPeriodInHours,
|
name: config.ReminderWaitPeriodInHours,
|
||||||
set: SetInt,
|
set: SetInt,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: config.WantReportError,
|
|
||||||
set: SetBool,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: config.WantReportErrorPrompt,
|
|
||||||
set: SetBool,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: config.WantKubectlDownloadMsg,
|
|
||||||
set: SetBool,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: config.WantNoneDriverWarning,
|
name: config.WantNoneDriverWarning,
|
||||||
set: SetBool,
|
set: SetBool,
|
||||||
|
@ -146,14 +134,6 @@ var settings = []Setting{
|
||||||
name: Bootstrapper,
|
name: Bootstrapper,
|
||||||
set: SetString,
|
set: SetString,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: config.ShowDriverDeprecationNotification,
|
|
||||||
set: SetBool,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: config.ShowBootstrapperDeprecationNotification,
|
|
||||||
set: SetBool,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "insecure-registry",
|
name: "insecure-registry",
|
||||||
set: SetString,
|
set: SetString,
|
||||||
|
|
|
@ -303,12 +303,7 @@ func setupViper() {
|
||||||
|
|
||||||
viper.SetDefault(config.WantUpdateNotification, true)
|
viper.SetDefault(config.WantUpdateNotification, true)
|
||||||
viper.SetDefault(config.ReminderWaitPeriodInHours, 24)
|
viper.SetDefault(config.ReminderWaitPeriodInHours, 24)
|
||||||
viper.SetDefault(config.WantReportError, false)
|
|
||||||
viper.SetDefault(config.WantReportErrorPrompt, true)
|
|
||||||
viper.SetDefault(config.WantKubectlDownloadMsg, true)
|
|
||||||
viper.SetDefault(config.WantNoneDriverWarning, true)
|
viper.SetDefault(config.WantNoneDriverWarning, true)
|
||||||
viper.SetDefault(config.ShowDriverDeprecationNotification, true)
|
|
||||||
viper.SetDefault(config.ShowBootstrapperDeprecationNotification, true)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func addToPath(dir string) {
|
func addToPath(dir string) {
|
||||||
|
|
|
@ -36,20 +36,10 @@ const (
|
||||||
WantBetaUpdateNotification = "WantBetaUpdateNotification"
|
WantBetaUpdateNotification = "WantBetaUpdateNotification"
|
||||||
// ReminderWaitPeriodInHours is the key for ReminderWaitPeriodInHours
|
// ReminderWaitPeriodInHours is the key for ReminderWaitPeriodInHours
|
||||||
ReminderWaitPeriodInHours = "ReminderWaitPeriodInHours"
|
ReminderWaitPeriodInHours = "ReminderWaitPeriodInHours"
|
||||||
// WantReportError is the key for WantReportError
|
|
||||||
WantReportError = "WantReportError"
|
|
||||||
// WantReportErrorPrompt is the key for WantReportErrorPrompt
|
|
||||||
WantReportErrorPrompt = "WantReportErrorPrompt"
|
|
||||||
// WantKubectlDownloadMsg is the key for WantKubectlDownloadMsg
|
|
||||||
WantKubectlDownloadMsg = "WantKubectlDownloadMsg"
|
|
||||||
// WantNoneDriverWarning is the key for WantNoneDriverWarning
|
// WantNoneDriverWarning is the key for WantNoneDriverWarning
|
||||||
WantNoneDriverWarning = "WantNoneDriverWarning"
|
WantNoneDriverWarning = "WantNoneDriverWarning"
|
||||||
// ProfileName represents the key for the global profile parameter
|
// ProfileName represents the key for the global profile parameter
|
||||||
ProfileName = "profile"
|
ProfileName = "profile"
|
||||||
// ShowDriverDeprecationNotification is the key for ShowDriverDeprecationNotification
|
|
||||||
ShowDriverDeprecationNotification = "ShowDriverDeprecationNotification"
|
|
||||||
// ShowBootstrapperDeprecationNotification is the key for ShowBootstrapperDeprecationNotification
|
|
||||||
ShowBootstrapperDeprecationNotification = "ShowBootstrapperDeprecationNotification"
|
|
||||||
// UserFlag is the key for the global user flag (ex. --user=user1)
|
// UserFlag is the key for the global user flag (ex. --user=user1)
|
||||||
UserFlag = "user"
|
UserFlag = "user"
|
||||||
// AddonImages stores custom addon images config
|
// AddonImages stores custom addon images config
|
||||||
|
|
|
@ -29,14 +29,9 @@ Configurable fields:
|
||||||
* WantUpdateNotification
|
* WantUpdateNotification
|
||||||
* WantBetaUpdateNotification
|
* WantBetaUpdateNotification
|
||||||
* ReminderWaitPeriodInHours
|
* ReminderWaitPeriodInHours
|
||||||
* WantReportError
|
|
||||||
* WantReportErrorPrompt
|
|
||||||
* WantKubectlDownloadMsg
|
|
||||||
* WantNoneDriverWarning
|
* WantNoneDriverWarning
|
||||||
* profile
|
* profile
|
||||||
* bootstrapper
|
* bootstrapper
|
||||||
* ShowDriverDeprecationNotification
|
|
||||||
* ShowBootstrapperDeprecationNotification
|
|
||||||
* insecure-registry
|
* insecure-registry
|
||||||
* hyperv-virtual-switch
|
* hyperv-virtual-switch
|
||||||
* disable-driver-mounts
|
* disable-driver-mounts
|
||||||
|
|
Loading…
Reference in New Issue