Skip to content

Commit 0e3433f

Browse files
committed
Test files modification
1 parent eef97b4 commit 0e3433f

File tree

7 files changed

+403
-403
lines changed

7 files changed

+403
-403
lines changed

tests/integration/testdata/default_configurations/affinity.go

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

tests/integration/testdata/default_configurations/container.go

Lines changed: 130 additions & 130 deletions
Large diffs are not rendered by default.

tests/integration/testdata/default_configurations/ephemeral_container.go

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

tests/integration/testdata/default_configurations/object_references.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,31 @@ import "k8s.io/apimachinery/pkg/types"
2121
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2222
// +structType=atomic
2323
type ObjectReference struct {
24-
// 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 ...'"
2525
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2626
// +optional
2727
Kind string `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 ...'"
2929
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
3030
// +optional
3131
Namespace string `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 ...'"
3333
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3434
// +optional
3535
Name string `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 ...'"
3737
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
3838
// +optional
3939
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 ...'"
4141
// +optional
4242
APIVersion string `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 ...'"
4444
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
4545
// +optional
4646
ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"` // want "optionalfields: field ResourceVersion should be a pointer."
4747

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 ...'"
4949
// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
5050
// For example, if the object reference is to a container within a pod, this would take on a value like:
5151
// "spec.containers{name}" (where "name" refers to the name of the container that triggered
@@ -72,7 +72,7 @@ type ObjectReference struct {
7272
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
7373
// +structType=atomic
7474
type LocalObjectReference struct {
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 ...'"
7676
// This field is effectively required, but due to backwards compatibility is
7777
// allowed to be empty. Instances of this type with an empty value here are
7878
// almost certainly wrong.
@@ -102,15 +102,15 @@ type LocalObjectReference struct {
102102
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
103103
// +structType=atomic
104104
type TypedLocalObjectReference struct {
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 ...'"
106106
// If APIGroup is not specified, the specified Kind must be in the core API group.
107107
// For any other third-party types, APIGroup is required.
108108
// +optional
109109
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-
Kind string `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-
Name string `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+
Kind string `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+
Name string `json:"name" protobuf:"bytes,3,opt,name=name"` // want "optionalorrequired: field TypedLocalObjectReference.Name must be marked as optional or required"
114114
}
115115

116116
// SecretReference represents a Secret Reference. It has enough information to retrieve secret
@@ -127,16 +127,16 @@ type SecretReference struct {
127127

128128
// TypedObjectReference contains enough information to let you locate the typed referenced object
129129
type TypedObjectReference struct {
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 ...'"
131131
// If APIGroup is not specified, the specified Kind must be in the core API group.
132132
// For any other third-party types, APIGroup is required.
133133
// +optional
134134
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-
Kind string `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-
Name string `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+
Kind string `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+
Name string `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 ...'"
140140
// 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.
141141
// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
142142
// +featureGate=CrossNamespaceVolumeDataSource

0 commit comments

Comments
 (0)