fix some golint failures for plugin/pkg/admission/...

This commit is contained in:
SataQiu
2019-02-26 17:09:12 +08:00
parent 4e8e3c2f02
commit f8c4aba0cb
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"