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
Copy file name to clipboardExpand all lines: tests/integration/testdata/default_configurations/affinity.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ type WeightedPodAffinityTerm struct {
93
93
// in the range 1-100.
94
94
Weightint32`json:"weight" protobuf:"varint,1,opt,name=weight"`// want "optionalorrequired: field WeightedPodAffinityTerm.Weight must be marked as optional or required"
95
95
// Required. A pod affinity term, associated with the corresponding weight. // want "commentstart: godoc for field WeightedPodAffinityTerm.PodAffinityTerm should start with 'podAffinityTerm ...'"
96
-
PodAffinityTermPodAffinityTerm`json:"podAffinityTerm" protobuf:"bytes,2,opt,name=podAffinityTerm"`// want "optionalorrequired: field WeightedPodAffinityTerm.PodAffinityTerm must be marked as optional or required"
96
+
PodAffinityTermPodAffinityTerm`json:"podAffinityTerm" protobuf:"bytes,2,opt,name=podAffinityTerm"`// want "optionalorrequired: field WeightedPodAffinityTerm.PodAffinityTerm must be marked as optional or required" "nonpointerstructs: field WeightedPodAffinityTerm.PodAffinityTerm is a non-pointer struct with no required fields. It must be marked as optional."
97
97
}
98
98
99
99
// Defines a set of pods (namely those matching the labelSelector
@@ -193,7 +193,7 @@ type PreferredSchedulingTerm struct {
193
193
// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. // want "commentstart: godoc for field PreferredSchedulingTerm.Weight should start with 'weight ...'"
194
194
Weightint32`json:"weight" protobuf:"varint,1,opt,name=weight"`// want "optionalorrequired: field PreferredSchedulingTerm.Weight must be marked as optional or required"
195
195
// A node selector term, associated with the corresponding weight. // want "commentstart: godoc for field PreferredSchedulingTerm.Preference should start with 'preference ...'"
196
-
PreferenceNodeSelectorTerm`json:"preference" protobuf:"bytes,2,opt,name=preference"`// want "optionalorrequired: field PreferredSchedulingTerm.Preference must be marked as optional or required"
196
+
PreferenceNodeSelectorTerm`json:"preference" protobuf:"bytes,2,opt,name=preference"`// want "optionalorrequired: field PreferredSchedulingTerm.Preference must be marked as optional or required" "nonpointerstructs: field PreferredSchedulingTerm.Preference is a non-pointer struct with no required fields. It must be marked as optional."
197
197
}
198
198
199
199
// The node this Taint is attached to has the "effect" on
Copy file name to clipboardExpand all lines: tests/integration/testdata/default_configurations/object_references.go
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
package defaultconfigurations
2
2
3
-
import"k8s.io/apimachinery/pkg/types"
4
-
5
3
// ObjectReference contains enough information to let you inspect or modify the referred object.
6
4
// ---
7
5
// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
@@ -33,10 +31,11 @@ type ObjectReference struct {
33
31
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
34
32
// +optional
35
33
Namestring`json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`// want "optionalfields: field ObjectReference.Name should be a pointer."
36
-
// UID of the referent. // want "commentstart: godoc for field ObjectReference.UID should start with 'uid ...'"
34
+
// UID of the referent.
37
35
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
38
36
// +optional
39
-
UID types.UID`json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`// want "optionalfields: field ObjectReference.UID should be a pointer."
// API version of the referent. // want "commentstart: godoc for field ObjectReference.APIVersion should start with 'apiVersion ...'"
41
40
// +optional
42
41
APIVersionstring`json:"apiVersion,omitempty" protobuf:"bytes,5,opt,name=apiVersion"`// want "optionalfields: field ObjectReference.APIVersion should be a pointer."
Copy file name to clipboardExpand all lines: tests/integration/testdata/default_configurations/volume.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1634,7 +1634,7 @@ type PersistentVolumeClaimTemplate struct {
1634
1634
// copied unchanged into the PVC that gets created from this
1635
1635
// template. The same fields as in a PersistentVolumeClaim
1636
1636
// are also valid here.
1637
-
SpecPersistentVolumeClaimSpec`json:"spec" protobuf:"bytes,2,name=spec"`// want "optionalorrequired: field PersistentVolumeClaimTemplate.Spec must be marked as optional or required"
1637
+
SpecPersistentVolumeClaimSpec`json:"spec" protobuf:"bytes,2,name=spec"`// want "optionalorrequired: field PersistentVolumeClaimTemplate.Spec must be marked as optional or required" "nonpointerstructs: field PersistentVolumeClaimTemplate.Spec is a non-pointer struct with no required fields. It must be marked as optional."
0 commit comments