File tree Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,9 @@ pkg/apis/rbac/v1
47
47
pkg/apis/rbac/v1alpha1
48
48
pkg/apis/rbac/v1beta1
49
49
pkg/apis/rbac/validation
50
- pkg/apis/scheduling
51
50
pkg/apis/storage
52
- pkg/apis/storage/util
53
51
pkg/apis/storage/v1
54
- pkg/apis/storage/v1/util
55
52
pkg/apis/storage/v1beta1
56
- pkg/apis/storage/v1beta1/util
57
53
pkg/cloudprovider/providers/fake
58
54
pkg/cloudprovider/providers/photon
59
55
pkg/controller
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
38
38
}
39
39
40
40
var (
41
+ // SchemeBuilder points to a list of functions added to Scheme.
41
42
SchemeBuilder = runtime .NewSchemeBuilder (addKnownTypes )
42
- AddToScheme = SchemeBuilder .AddToScheme
43
+ // AddToScheme applies all the stored functions to the scheme.
44
+ AddToScheme = SchemeBuilder .AddToScheme
43
45
)
44
46
45
47
func addKnownTypes (scheme * runtime.Scheme ) error {
Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ const (
29
29
SystemCriticalPriority = 2 * HighestUserDefinablePriority
30
30
// SystemPriorityClassPrefix is the prefix reserved for system priority class names. Other priority
31
31
// classes are not allowed to start with this prefix.
32
- SystemPriorityClassPrefix = "system-"
33
32
// NOTE: In order to avoid conflict of names with user-defined priority classes, all the names must
34
33
// start with SystemPriorityClassPrefix.
34
+ SystemPriorityClassPrefix = "system-"
35
+ // SystemClusterCritical is the system priority class name that represents cluster-critical.
35
36
SystemClusterCritical = SystemPriorityClassPrefix + "cluster-critical"
36
- SystemNodeCritical = SystemPriorityClassPrefix + "node-critical"
37
+ // SystemNodeCritical is the system priority class name that represents node-critical.
38
+ SystemNodeCritical = SystemPriorityClassPrefix + "node-critical"
37
39
)
38
40
39
41
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
20
20
21
21
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
22
22
// marks a class as the default StorageClass
23
- //TODO: remove Beta when no longer used
24
23
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
24
+
25
+ // BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
26
+ // TODO: remove Beta when no longer used
25
27
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
26
28
27
29
// IsDefaultAnnotationText returns a pretty Yes/No String if
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ import (
22
22
23
23
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
24
24
// marks a class as the default StorageClass
25
- //TODO: remove Beta when no longer used
26
25
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
26
+
27
+ // BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
28
+ // TODO: remove Beta when no longer used
27
29
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
28
30
29
31
// IsDefaultAnnotationText returns a pretty Yes/No String if
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
20
20
21
21
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
22
22
// marks a class as the default StorageClass
23
- //TODO: remove Beta when no longer used
24
23
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
24
+
25
+ // BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
26
+ // TODO: remove Beta when no longer used
25
27
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
26
28
27
29
// IsDefaultAnnotationText returns a pretty Yes/No String if
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
// marks a class as the default StorageClass
29
29
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
30
30
31
- // BetaIsDefaultStorageClassAnnotation is the beta version of BetaIsDefaultStorageClassAnnotation .
31
+ // BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation .
32
32
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
33
33
34
34
// IsDefaultAnnotationText returns a pretty Yes/No String if
You can’t perform that action at this time.
0 commit comments