mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #78558 from tedyu/policy-str
Remove unnecessary string()
This commit is contained in:
commit
d4d8daea73
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2015 The Kubernetes Authors.
|
||||
Copyright 2019 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -33,7 +33,7 @@ func NewPreferredPolicy() Policy {
|
||||
}
|
||||
|
||||
func (p *preferredPolicy) Name() string {
|
||||
return string(PolicyPreferred)
|
||||
return PolicyPreferred
|
||||
}
|
||||
|
||||
func (p *preferredPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2015 The Kubernetes Authors.
|
||||
Copyright 2019 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -33,7 +33,7 @@ func NewStrictPolicy() Policy {
|
||||
}
|
||||
|
||||
func (p *strictPolicy) Name() string {
|
||||
return string(PolicyStrict)
|
||||
return PolicyStrict
|
||||
}
|
||||
|
||||
func (p *strictPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult {
|
||||
|
Loading…
Reference in New Issue
Block a user