mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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 ```
This commit is contained in:
commit
884c6f9146
@ -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