mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-02 11:02:16 +00:00
Remove golint failures from pkg/apis/admissionregistration
Adds test/integration/apiserver/admissionwebhook to golint_failures; it is failing on kubernetes/master currently
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
// GroupName is the name used for this API group
|
||||
const GroupName = "admissionregistration.k8s.io"
|
||||
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
@@ -37,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
|
||||
}
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
// Adds the list of known types to scheme.
|
||||
|
||||
@@ -63,6 +63,7 @@ type Rule struct {
|
||||
Scope *ScopeType
|
||||
}
|
||||
|
||||
// ScopeType specifies the type of scope being used
|
||||
type ScopeType string
|
||||
|
||||
const (
|
||||
@@ -75,6 +76,7 @@ const (
|
||||
AllScopes ScopeType = "*"
|
||||
)
|
||||
|
||||
// FailurePolicyType specifies the type of failure policy
|
||||
type FailurePolicyType string
|
||||
|
||||
const (
|
||||
@@ -84,6 +86,7 @@ const (
|
||||
Fail FailurePolicyType = "Fail"
|
||||
)
|
||||
|
||||
// SideEffectClass denotes the type of side effects resulting from calling the webhook
|
||||
type SideEffectClass string
|
||||
|
||||
const (
|
||||
@@ -263,6 +266,7 @@ type RuleWithOperations struct {
|
||||
Rule
|
||||
}
|
||||
|
||||
// OperationType specifies what type of operation the admission hook cares about.
|
||||
type OperationType string
|
||||
|
||||
// The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go.
|
||||
|
||||
Reference in New Issue
Block a user