File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
pkg/apis/admissionregistration Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ cmd/kube-controller-manager/app
4
4
cmd/kubeadm/app/apis/kubeadm/v1beta1
5
5
pkg/apis/abac/latest
6
6
pkg/apis/admission
7
- pkg/apis/admissionregistration
8
7
pkg/apis/admissionregistration/v1beta1
9
8
pkg/apis/admissionregistration/validation
10
9
pkg/apis/apps
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
"k8s.io/apimachinery/pkg/runtime/schema"
22
22
)
23
23
24
+ // GroupName is the name used for this API group
24
25
const GroupName = "admissionregistration.k8s.io"
25
26
26
27
// SchemeGroupVersion is group version used to register these objects
@@ -37,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
37
38
}
38
39
39
40
var (
41
+ // SchemeBuilder is the scheme builder with scheme init functions to run for this API package
40
42
SchemeBuilder = runtime .NewSchemeBuilder (addKnownTypes )
41
- AddToScheme = SchemeBuilder .AddToScheme
43
+ // AddToScheme is a global function that registers this API group & version to a scheme
44
+ AddToScheme = SchemeBuilder .AddToScheme
42
45
)
43
46
44
47
// Adds the list of known types to scheme.
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ type Rule struct {
63
63
Scope * ScopeType
64
64
}
65
65
66
+ // ScopeType specifies the type of scope being used
66
67
type ScopeType string
67
68
68
69
const (
@@ -75,6 +76,7 @@ const (
75
76
AllScopes ScopeType = "*"
76
77
)
77
78
79
+ // FailurePolicyType specifies the type of failure policy
78
80
type FailurePolicyType string
79
81
80
82
const (
@@ -84,6 +86,7 @@ const (
84
86
Fail FailurePolicyType = "Fail"
85
87
)
86
88
89
+ // SideEffectClass denotes the type of side effects resulting from calling the webhook
87
90
type SideEffectClass string
88
91
89
92
const (
@@ -263,6 +266,7 @@ type RuleWithOperations struct {
263
266
Rule
264
267
}
265
268
269
+ // OperationType specifies what type of operation the admission hook cares about.
266
270
type OperationType string
267
271
268
272
// The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go.
You can’t perform that action at this time.
0 commit comments