Merge pull request #82858 from hwdef/del-unused-var

delete unused var
This commit is contained in:
Kubernetes Prow Robot 2019-09-19 11:05:49 -07:00 committed by GitHub
commit d05183be41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 0 additions and 29 deletions

View File

@ -23,7 +23,6 @@ pkg/controller/resourcequota
pkg/controller/statefulset
pkg/credentialprovider
pkg/credentialprovider/aws
pkg/credentialprovider/azure
pkg/kubeapiserver/admission
pkg/kubectl/cmd/get
pkg/kubelet/apis/podresources
@ -37,7 +36,6 @@ pkg/printers/internalversion
pkg/probe/http
pkg/proxy/healthcheck
pkg/proxy/iptables
pkg/proxy/ipvs
pkg/proxy/userspace
pkg/proxy/winkernel
pkg/proxy/winuserspace
@ -53,9 +51,7 @@ pkg/scheduler
pkg/scheduler/algorithm/predicates
pkg/scheduler/algorithm/priorities
pkg/scheduler/api/v1
pkg/scheduler/apis/config/v1alpha1
pkg/scheduler/internal/queue
pkg/security/podsecuritypolicy/sysctl
pkg/util/coverage
pkg/util/ebtables
pkg/util/ipconfig

View File

@ -37,9 +37,7 @@ import (
// maxUpdateRetries is the maximum number of retries used for update conflict resolution prior to failure
const maxUpdateRetries = 10
// updateConflictError is the error used to indicate that the maximum number of retries against the API server have
// been attempted and we need to back off
var updateConflictError = fmt.Errorf("aborting update after %d attempts", maxUpdateRetries)
var patchCodec = scheme.Codecs.LegacyCodec(apps.SchemeGroupVersion)
// overlappingStatefulSets sorts a list of StatefulSets by creation timestamp, using their names as a tie breaker.

View File

@ -68,7 +68,6 @@ type acrAuthResponse struct {
}
// 5 minutes buffer time to allow timeshift between local machine and AAD
const timeShiftBuffer = 300
const userAgentHeader = "User-Agent"
const userAgent = "kubernetes-credentialprovider-acr"

View File

@ -50,7 +50,6 @@ const (
exampleEventValidate examplePluginEvent = 0
exampleEventRegister examplePluginEvent = 1
exampleEventDeRegister examplePluginEvent = 2
exampleEventError examplePluginEvent = 3
)
// NewExampleHandler provide a example handler

View File

@ -61,15 +61,12 @@ const (
seedContainer2 = 5000
seedSandbox2 = 6000
seedContainer3 = 7000
seedSandbox3 = 8000
seedContainer5 = 9000
)
const (
pName0 = "pod0"
pName1 = "pod1"
pName2 = "pod2"
pName3 = "pod3"
)
const (

View File

@ -66,16 +66,6 @@ const (
kubeNodePortLocalSetUDPComment = "Kubernetes nodeport UDP port with externalTrafficPolicy=local"
kubeNodePortLocalSetUDP = "KUBE-NODE-PORT-LOCAL-UDP"
// This ipset is no longer active but still used in previous versions.
// DO NOT create an ipset using this name
legacyKubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose"
legacyKubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP"
// This ipset is no longer active but still used in previous versions.
// DO NOT create an ipset using this name
legacyKubeNodePortLocalSetSCTPComment = "Kubernetes nodeport SCTP port with externalTrafficPolicy=local"
legacyKubeNodePortLocalSetSCTP = "KUBE-NODE-PORT-LOCAL-SCTP"
kubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose with type 'hash ip:port'"
kubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP-HASH"

View File

@ -17,7 +17,6 @@ go_library(
"//pkg/apis/core:go_default_library",
"//pkg/master/ports:go_default_library",
"//pkg/scheduler/apis/config:go_default_library",
"//staging/src/k8s.io/api/core/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",

View File

@ -20,7 +20,6 @@ import (
"net"
"strconv"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
componentbaseconfigv1alpha1 "k8s.io/component-base/config/v1alpha1"
kubeschedulerconfigv1alpha1 "k8s.io/kube-scheduler/config/v1alpha1"
@ -30,10 +29,6 @@ import (
"k8s.io/kubernetes/pkg/master/ports"
)
// When the --failure-domains scheduler flag is not specified,
// DefaultFailureDomains defines the set of label keys used when TopologyKey is empty in PreferredDuringScheduling anti-affinity.
var defaultFailureDomains string = v1.LabelHostname + "," + v1.LabelZoneFailureDomain + "," + v1.LabelZoneRegion
func addDefaultingFuncs(scheme *runtime.Scheme) error {
return RegisterDefaults(scheme)
}

View File

@ -46,8 +46,6 @@ type mustMatchPatterns struct {
var (
_ SysctlsStrategy = &mustMatchPatterns{}
defaultSysctlsPatterns = []string{"*"}
)
// NewMustMatchPatterns creates a new mustMatchPatterns strategy that will provide validation.