Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fa0c81cb
Commit
fa0c81cb
authored
Apr 24, 2019
by
guineveresaenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove golint failures from pkg/apis/admissionregistration
Adds test/integration/apiserver/admissionwebhook to golint_failures; it is failing on kubernetes/master currently
parent
ce3ddcd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
.golint_failures
hack/.golint_failures
+0
-1
register.go
pkg/apis/admissionregistration/register.go
+4
-1
types.go
pkg/apis/admissionregistration/types.go
+4
-0
No files found.
hack/.golint_failures
View file @
fa0c81cb
...
...
@@ -4,7 +4,6 @@ cmd/kube-controller-manager/app
cmd/kubeadm/app/apis/kubeadm/v1beta1
pkg/apis/abac/latest
pkg/apis/admission
pkg/apis/admissionregistration
pkg/apis/admissionregistration/v1beta1
pkg/apis/admissionregistration/validation
pkg/apis/apps
...
...
pkg/apis/admissionregistration/register.go
View file @
fa0c81cb
...
...
@@ -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.
...
...
pkg/apis/admissionregistration/types.go
View file @
fa0c81cb
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment