From 4467082ddbcb27a02968c1f35832724d51ec75ec Mon Sep 17 00:00:00 2001 From: wangyysde Date: Tue, 13 Apr 2021 14:09:55 +0800 Subject: [PATCH] removed kubelet's flag chaos-chance --- cmd/kubelet/app/options/options.go | 4 ---- hack/local-up-cluster.sh | 2 -- 2 files changed, 6 deletions(-) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index 74226f8e3d8..666885492a0 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -56,8 +56,6 @@ type KubeletFlags struct { KubeConfig string BootstrapKubeconfig string - // Insert a probability of random errors during calls to the master. - ChaosChance float64 // Crash immediately, rather than eating panics. 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.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.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, " Directory path for seccomp profiles.") fs.MarkDeprecated("seccomp-profile-root", "will be removed in 1.23, in favor of using the `/seccomp` directory") fs.StringVar(&f.ExperimentalMounterPath, "experimental-mounter-path", f.ExperimentalMounterPath, "[Experimental] Path of mounter binary. Leave empty to use the default mount.") diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 1d0ca889dfe..69b723f7cd2 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -234,7 +234,6 @@ CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-"docker"} CONTAINER_RUNTIME_ENDPOINT=${CONTAINER_RUNTIME_ENDPOINT:-""} RUNTIME_REQUEST_TIMEOUT=${RUNTIME_REQUEST_TIMEOUT:-"2m"} IMAGE_SERVICE_ENDPOINT=${IMAGE_SERVICE_ENDPOINT:-""} -CHAOS_CHANCE=${CHAOS_CHANCE:-0.0} CPU_CFS_QUOTA=${CPU_CFS_QUOTA:-true} ENABLE_HOSTPATH_PROVISIONER=${ENABLE_HOSTPATH_PROVISIONER:-"false"} CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s default @@ -751,7 +750,6 @@ function start_kubelet { all_kubelet_flags=( "--v=${LOG_LEVEL}" "--vmodule=${LOG_SPEC}" - "--chaos-chance=${CHAOS_CHANCE}" "--container-runtime=${CONTAINER_RUNTIME}" "--hostname-override=${HOSTNAME_OVERRIDE}" "${cloud_config_arg[@]}"