Merge pull request #101057 from wangyysde/remove-chaos-chance
removing kubelet's flag chaos-chance
This commit is contained in:
commit
43b9491055
@ -56,8 +56,6 @@ type KubeletFlags struct {
|
|||||||
KubeConfig string
|
KubeConfig string
|
||||||
BootstrapKubeconfig string
|
BootstrapKubeconfig string
|
||||||
|
|
||||||
// Insert a probability of random errors during calls to the master.
|
|
||||||
ChaosChance float64
|
|
||||||
// Crash immediately, rather than eating panics.
|
// Crash immediately, rather than eating panics.
|
||||||
ReallyCrashForTesting bool
|
ReallyCrashForTesting bool
|
||||||
|
|
||||||
@ -367,8 +365,6 @@ func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) {
|
|||||||
fs.MarkDeprecated("keep-terminated-pod-volumes", "will be removed in a future version")
|
fs.MarkDeprecated("keep-terminated-pod-volumes", "will be removed in a future version")
|
||||||
fs.BoolVar(&f.ReallyCrashForTesting, "really-crash-for-testing", f.ReallyCrashForTesting, "If true, when panics occur crash. Intended for testing.")
|
fs.BoolVar(&f.ReallyCrashForTesting, "really-crash-for-testing", f.ReallyCrashForTesting, "If true, when panics occur crash. Intended for testing.")
|
||||||
fs.MarkDeprecated("really-crash-for-testing", "will be removed in a future version.")
|
fs.MarkDeprecated("really-crash-for-testing", "will be removed in a future version.")
|
||||||
fs.Float64Var(&f.ChaosChance, "chaos-chance", f.ChaosChance, "If > 0.0, introduce random client errors and latency. Intended for testing.")
|
|
||||||
fs.MarkDeprecated("chaos-chance", "will be removed in a future version.")
|
|
||||||
fs.StringVar(&f.SeccompProfileRoot, "seccomp-profile-root", f.SeccompProfileRoot, "<Warning: Alpha feature> Directory path for seccomp profiles.")
|
fs.StringVar(&f.SeccompProfileRoot, "seccomp-profile-root", f.SeccompProfileRoot, "<Warning: Alpha feature> Directory path for seccomp profiles.")
|
||||||
fs.MarkDeprecated("seccomp-profile-root", "will be removed in 1.23, in favor of using the `<root-dir>/seccomp` directory")
|
fs.MarkDeprecated("seccomp-profile-root", "will be removed in 1.23, in favor of using the `<root-dir>/seccomp` directory")
|
||||||
fs.StringVar(&f.ExperimentalMounterPath, "experimental-mounter-path", f.ExperimentalMounterPath, "[Experimental] Path of mounter binary. Leave empty to use the default mount.")
|
fs.StringVar(&f.ExperimentalMounterPath, "experimental-mounter-path", f.ExperimentalMounterPath, "[Experimental] Path of mounter binary. Leave empty to use the default mount.")
|
||||||
|
@ -234,7 +234,6 @@ CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-"docker"}
|
|||||||
CONTAINER_RUNTIME_ENDPOINT=${CONTAINER_RUNTIME_ENDPOINT:-""}
|
CONTAINER_RUNTIME_ENDPOINT=${CONTAINER_RUNTIME_ENDPOINT:-""}
|
||||||
RUNTIME_REQUEST_TIMEOUT=${RUNTIME_REQUEST_TIMEOUT:-"2m"}
|
RUNTIME_REQUEST_TIMEOUT=${RUNTIME_REQUEST_TIMEOUT:-"2m"}
|
||||||
IMAGE_SERVICE_ENDPOINT=${IMAGE_SERVICE_ENDPOINT:-""}
|
IMAGE_SERVICE_ENDPOINT=${IMAGE_SERVICE_ENDPOINT:-""}
|
||||||
CHAOS_CHANCE=${CHAOS_CHANCE:-0.0}
|
|
||||||
CPU_CFS_QUOTA=${CPU_CFS_QUOTA:-true}
|
CPU_CFS_QUOTA=${CPU_CFS_QUOTA:-true}
|
||||||
ENABLE_HOSTPATH_PROVISIONER=${ENABLE_HOSTPATH_PROVISIONER:-"false"}
|
ENABLE_HOSTPATH_PROVISIONER=${ENABLE_HOSTPATH_PROVISIONER:-"false"}
|
||||||
CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s default
|
CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s default
|
||||||
@ -751,7 +750,6 @@ function start_kubelet {
|
|||||||
all_kubelet_flags=(
|
all_kubelet_flags=(
|
||||||
"--v=${LOG_LEVEL}"
|
"--v=${LOG_LEVEL}"
|
||||||
"--vmodule=${LOG_SPEC}"
|
"--vmodule=${LOG_SPEC}"
|
||||||
"--chaos-chance=${CHAOS_CHANCE}"
|
|
||||||
"--container-runtime=${CONTAINER_RUNTIME}"
|
"--container-runtime=${CONTAINER_RUNTIME}"
|
||||||
"--hostname-override=${HOSTNAME_OVERRIDE}"
|
"--hostname-override=${HOSTNAME_OVERRIDE}"
|
||||||
"${cloud_config_arg[@]}"
|
"${cloud_config_arg[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user