Merge pull request #74582 from SataQiu/fix-golint-2019022602

fix some golint failures for plugin/pkg/admission/...
This commit is contained in:
Kubernetes Prow Robot
2019-03-05 06:50:46 -08:00
committed by GitHub
4 changed files with 7 additions and 6 deletions

View File

@@ -22,8 +22,10 @@ import (
)
var (
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = SchemeBuilder.AddToScheme
)
// GroupName is the group name use in this package

View File

@@ -28,8 +28,10 @@ const GroupName = "podtolerationrestriction.admission.k8s.io"
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
var (
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = SchemeBuilder.AddToScheme
)
// Kind takes an unqualified kind and returns a Group qualified GroupKind

View File

@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// security contains admission plugins specific to cluster security.
// Package security contains admission plugins specific to cluster security.
package security // import "k8s.io/kubernetes/plugin/pkg/admission/security"