mirror of https://github.com/k3s-io/k3s
Merge pull request #52644 from surajnarwade/remove_unused_var_const
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Remove unused variables and constant from pkg/apis/componentconfig/v1… …alpha1/defaults.go This commit will remove variables `zeroDuration`, `defaultNodeAllocatableEnforcement` and constants `defaultIPTablesMasqueradeBit` and `defaultIPTablesDropBit` as they are unused. ```release-note NONE ```pull/6/head
commit
884c6f9146
|
@ -29,21 +29,6 @@ import (
|
|||
"k8s.io/kubernetes/pkg/master/ports"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultRootDir = "/var/lib/kubelet"
|
||||
|
||||
AutoDetectCloudProvider = "auto-detect"
|
||||
|
||||
defaultIPTablesMasqueradeBit = 14
|
||||
defaultIPTablesDropBit = 15
|
||||
)
|
||||
|
||||
var (
|
||||
zeroDuration = metav1.Duration{}
|
||||
// Refer to [Node Allocatable](https://git.k8s.io/community/contributors/design-proposals/node-allocatable.md) doc for more information.
|
||||
defaultNodeAllocatableEnforcement = []string{"pods"}
|
||||
)
|
||||
|
||||
func addDefaultingFuncs(scheme *kruntime.Scheme) error {
|
||||
return RegisterDefaults(scheme)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue