mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Remove unused variables and constant from pkg/apis/componentconfig/v1alpha1/defaults.go
This commit will remove variables `zeroDuration`, `defaultNodeAllocatableEnforcement` and constants `defaultIPTablesMasqueradeBit` and `defaultIPTablesDropBit` as they are unused.
This commit is contained in:
parent
8ca1d9f19b
commit
62fb675f84
@ -29,21 +29,6 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/master/ports"
|
"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 {
|
func addDefaultingFuncs(scheme *kruntime.Scheme) error {
|
||||||
return RegisterDefaults(scheme)
|
return RegisterDefaults(scheme)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user