cleanup useless functions in pkg/quota/evaluator/core/services.go

pull/6/head
tianshapjq 2017-12-19 13:57:48 +08:00
parent 3e78c4904e
commit 08427e022a
1 changed files with 0 additions and 9 deletions

View File

@ -132,15 +132,6 @@ func (p *serviceEvaluator) UsageStats(options quota.UsageStatsOptions) (quota.Us
var _ quota.Evaluator = &serviceEvaluator{} var _ quota.Evaluator = &serviceEvaluator{}
// QuotaServiceType returns true if the service type is eligible to track against a quota
func QuotaServiceType(service *v1.Service) bool {
switch service.Spec.Type {
case v1.ServiceTypeNodePort, v1.ServiceTypeLoadBalancer:
return true
}
return false
}
//GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return "" //GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return ""
func GetQuotaServiceType(service *v1.Service) v1.ServiceType { func GetQuotaServiceType(service *v1.Service) v1.ServiceType {
switch service.Spec.Type { switch service.Spec.Type {