You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Kind of the referent. // want "commentstart: godoc for field Kind should start with 'kind ...'"
24
+
// Kind of the referent. // want "commentstart: godoc for field ObjectReference.Kind should start with 'kind ...'"
25
25
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
26
26
// +optional
27
27
Kindstring`json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`// want "optionalfields: field Kind should be a pointer."
28
-
// Namespace of the referent. // want "commentstart: godoc for field Namespace should start with 'namespace ...'"
28
+
// Namespace of the referent. // want "commentstart: godoc for field ObjectReference.Namespace should start with 'namespace ...'"
29
29
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
30
30
// +optional
31
31
Namespacestring`json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`// want "optionalfields: field Namespace should be a pointer."
32
-
// Name of the referent. // want "commentstart: godoc for field Name should start with 'name ...'"
32
+
// Name of the referent. // want "commentstart: godoc for field ObjectReference.Name should start with 'name ...'"
33
33
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
34
34
// +optional
35
35
Namestring`json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`// want "optionalfields: field Name should be a pointer."
36
-
// UID of the referent. // want "commentstart: godoc for field UID should start with 'uid ...'"
36
+
// UID of the referent. // want "commentstart: godoc for field ObjectReference.UID should start with 'uid ...'"
37
37
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
38
38
// +optional
39
39
UID types.UID`json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`// want "optionalfields: field UID should be a pointer."
40
-
// API version of the referent. // want "commentstart: godoc for field APIVersion should start with 'apiVersion ...'"
40
+
// API version of the referent. // want "commentstart: godoc for field ObjectReference.APIVersion should start with 'apiVersion ...'"
41
41
// +optional
42
42
APIVersionstring`json:"apiVersion,omitempty" protobuf:"bytes,5,opt,name=apiVersion"`// want "optionalfields: field APIVersion should be a pointer."
43
-
// Specific resourceVersion to which this reference is made, if any. // want "commentstart: godoc for field ResourceVersion should start with 'resourceVersion ...'"
43
+
// Specific resourceVersion to which this reference is made, if any. // want "commentstart: godoc for field ObjectReference.ResourceVersion should start with 'resourceVersion ...'"
44
44
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
45
45
// +optional
46
46
ResourceVersionstring`json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`// want "optionalfields: field ResourceVersion should be a pointer."
47
47
48
-
// If referring to a piece of an object instead of an entire object, this string // want "commentstart: godoc for field FieldPath should start with 'fieldPath ...'"
48
+
// If referring to a piece of an object instead of an entire object, this string // want "commentstart: godoc for field ObjectReference.FieldPath should start with 'fieldPath ...'"
49
49
// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
50
50
// For example, if the object reference is to a container within a pod, this would take on a value like:
51
51
// "spec.containers{name}" (where "name" refers to the name of the container that triggered
@@ -72,7 +72,7 @@ type ObjectReference struct {
72
72
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
73
73
// +structType=atomic
74
74
typeLocalObjectReferencestruct {
75
-
// Name of the referent. // want "commentstart: godoc for field Name should start with 'name ...'"
75
+
// Name of the referent. // want "commentstart: godoc for field LocalObjectReference.Name should start with 'name ...'"
76
76
// This field is effectively required, but due to backwards compatibility is
77
77
// allowed to be empty. Instances of this type with an empty value here are
78
78
// almost certainly wrong.
@@ -102,15 +102,15 @@ type LocalObjectReference struct {
102
102
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
103
103
// +structType=atomic
104
104
typeTypedLocalObjectReferencestruct {
105
-
// APIGroup is the group for the resource being referenced. // want "commentstart: godoc for field APIGroup should start with 'apiGroup ...'"
105
+
// APIGroup is the group for the resource being referenced. // want "commentstart: godoc for field TypedLocalObjectReference.APIGroup should start with 'apiGroup ...'"
106
106
// If APIGroup is not specified, the specified Kind must be in the core API group.
107
107
// For any other third-party types, APIGroup is required.
108
108
// +optional
109
109
APIGroup*string`json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`// want "optionalfields: field APIGroup should have the omitempty tag."
110
-
// Kind is the type of resource being referenced // want "commentstart: godoc for field Kind should start with 'kind ...'"
111
-
Kindstring`json:"kind" protobuf:"bytes,2,opt,name=kind"`// want "optionalorrequired: field Kind must be marked as optional or required"
112
-
// Name is the name of resource being referenced // want "commentstart: godoc for field Name should start with 'name ...'"
113
-
Namestring`json:"name" protobuf:"bytes,3,opt,name=name"`// want "optionalorrequired: field Name must be marked as optional or required"
110
+
// Kind is the type of resource being referenced // want "commentstart: godoc for field TypedLocalObjectReference.Kind should start with 'kind ...'"
111
+
Kindstring`json:"kind" protobuf:"bytes,2,opt,name=kind"`// want "optionalorrequired: field TypedLocalObjectReference.Kind must be marked as optional or required"
112
+
// Name is the name of resource being referenced // want "commentstart: godoc for field TypedLocalObjectReference.Name should start with 'name ...'"
113
+
Namestring`json:"name" protobuf:"bytes,3,opt,name=name"`// want "optionalorrequired: field TypedLocalObjectReference.Name must be marked as optional or required"
114
114
}
115
115
116
116
// SecretReference represents a Secret Reference. It has enough information to retrieve secret
@@ -127,16 +127,16 @@ type SecretReference struct {
127
127
128
128
// TypedObjectReference contains enough information to let you locate the typed referenced object
129
129
typeTypedObjectReferencestruct {
130
-
// APIGroup is the group for the resource being referenced. // want "commentstart: godoc for field APIGroup should start with 'apiGroup ...'"
130
+
// APIGroup is the group for the resource being referenced. // want "commentstart: godoc for field TypedObjectReference.APIGroup should start with 'apiGroup ...'"
131
131
// If APIGroup is not specified, the specified Kind must be in the core API group.
132
132
// For any other third-party types, APIGroup is required.
133
133
// +optional
134
134
APIGroup*string`json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`// want "optionalfields: field APIGroup should have the omitempty tag."
135
-
// Kind is the type of resource being referenced // want "commentstart: godoc for field Kind should start with 'kind ...'"
136
-
Kindstring`json:"kind" protobuf:"bytes,2,opt,name=kind"`// want "optionalorrequired: field Kind must be marked as optional or required"
137
-
// Name is the name of resource being referenced // want "commentstart: godoc for field Name should start with 'name ...'"
138
-
Namestring`json:"name" protobuf:"bytes,3,opt,name=name"`// want "optionalorrequired: field Name must be marked as optional or required"
139
-
// Namespace is the namespace of resource being referenced // want "commentstart: godoc for field Namespace should start with 'namespace ...'"
135
+
// Kind is the type of resource being referenced // want "commentstart: godoc for field TypedObjectReference.Kind should start with 'kind ...'"
136
+
Kindstring`json:"kind" protobuf:"bytes,2,opt,name=kind"`// want "optionalorrequired: field TypedObjectReference.Kind must be marked as optional or required"
137
+
// Name is the name of resource being referenced // want "commentstart: godoc for field TypedObjectReference.Name should start with 'name ...'"
138
+
Namestring`json:"name" protobuf:"bytes,3,opt,name=name"`// want "optionalorrequired: field TypedObjectReference.Name must be marked as optional or required"
139
+
// Namespace is the namespace of resource being referenced // want "commentstart: godoc for field TypedObjectReference.Namespace should start with 'namespace ...'"
140
140
// Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
141
141
// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
0 commit comments