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: pkg/analysis/optionalorrequired/testdata/src/a/a.go
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -43,44 +43,44 @@ type OptionalOrRequiredTestStruct struct {
43
43
44
44
// MarkedWithK8sRequiredAndKubeBuilderRequired is a field with both k8s and kubebuilder required markers.
45
45
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
46
-
// +k8s:Required
46
+
// +k8s:required
47
47
// +kubebuilder:validation:Required
48
48
MarkedWithK8sRequiredAndKubeBuilderRequiredstring// want "field MarkedWithK8sRequiredAndKubeBuilderRequired should use marker required instead of kubebuilder:validation:Required"
49
49
50
50
// MarkedWithK8sRequiredAndRequired is a field with both k8s and required markers.
51
51
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
52
-
// +k8s:Required
52
+
// +k8s:required
53
53
// +required
54
54
MarkedWithK8sRequiredAndRequiredstring
55
55
56
56
// MarkedWithK8sOptionalAndKubeBuilderOptional is a field with both k8s and kubebuilder optional markers.
57
57
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
58
-
// +k8s:Optional
58
+
// +k8s:optional
59
59
// +kubebuilder:validation:Optional
60
60
MarkedWithK8sOptionalAndKubeBuilderOptionalstring// want "field MarkedWithK8sOptionalAndKubeBuilderOptional should use marker optional instead of kubebuilder:validation:Optional"
61
61
62
62
// MarkedWithK8sOptionalAndOptional is a field with both k8s and optional markers.
63
63
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
64
-
// +k8s:Optional
64
+
// +k8s:optional
65
65
// +optional
66
66
MarkedWithK8sOptionalAndOptionalstring
67
67
68
68
// MarkedWithK8sOptionalAndRequired is a field with both k8s and required markers.
69
69
// The k8s versions of the markers are currently in addition to other markers, but they should match the semantics.
70
-
// +k8s:Optional
70
+
// +k8s:optional
71
71
// +required
72
-
MarkedWithK8sOptionalAndRequiredstring// want "field MarkedWithK8sOptionalAndRequired must not be marked as both k8s:Optional and required"
72
+
MarkedWithK8sOptionalAndRequiredstring// want "field MarkedWithK8sOptionalAndRequired must not be marked as both k8s:optional and required"
73
73
74
74
// MarkedWithK8sRequiredAndOptional is a field with both k8s and optional markers.
75
75
// The k8s versions of the markers are currently in addition to other markers, but they should match the semantics.
76
-
// +k8s:Required
76
+
// +k8s:required
77
77
// +optional
78
-
MarkedWithK8sRequiredAndOptionalstring// want "field MarkedWithK8sRequiredAndOptional must not be marked as both optional and k8s:Required"
78
+
MarkedWithK8sRequiredAndOptionalstring// want "field MarkedWithK8sRequiredAndOptional must not be marked as both optional and k8s:required"
79
79
80
80
// MarkedWithK8sRequiredAndK8sOptional is a field with both k8s and kubebuilder optional markers.
81
-
// +k8s:Required
82
-
// +k8s:Optional
83
-
MarkedWithK8sRequiredAndK8sOptionalstring// want "field MarkedWithK8sRequiredAndK8sOptional must be marked as optional or required" "field MarkedWithK8sRequiredAndK8sOptional must not be marked as both k8s:Optional and k8s:Required"
81
+
// +k8s:required
82
+
// +k8s:optional
83
+
MarkedWithK8sRequiredAndK8sOptionalstring// want "field MarkedWithK8sRequiredAndK8sOptional must be marked as optional or required" "field MarkedWithK8sRequiredAndK8sOptional must not be marked as both k8s:optional and k8s:required"
Copy file name to clipboardExpand all lines: pkg/analysis/optionalorrequired/testdata/src/a/a.go.golden
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -38,44 +38,44 @@ type OptionalOrRequiredTestStruct struct {
38
38
39
39
// MarkedWithK8sRequiredAndKubeBuilderRequired is a field with both k8s and kubebuilder required markers.
40
40
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
41
-
// +k8s:Required
41
+
// +k8s:required
42
42
// +required
43
43
MarkedWithK8sRequiredAndKubeBuilderRequired string // want "field MarkedWithK8sRequiredAndKubeBuilderRequired should use marker required instead of kubebuilder:validation:Required"
44
44
45
45
// MarkedWithK8sRequiredAndRequired is a field with both k8s and required markers.
46
46
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
47
-
// +k8s:Required
47
+
// +k8s:required
48
48
// +required
49
49
MarkedWithK8sRequiredAndRequired string
50
50
51
51
// MarkedWithK8sOptionalAndKubeBuilderOptional is a field with both k8s and kubebuilder optional markers.
52
52
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
53
-
// +k8s:Optional
53
+
// +k8s:optional
54
54
// +optional
55
55
MarkedWithK8sOptionalAndKubeBuilderOptional string // want "field MarkedWithK8sOptionalAndKubeBuilderOptional should use marker optional instead of kubebuilder:validation:Optional"
56
56
57
57
// MarkedWithK8sOptionalAndOptional is a field with both k8s and optional markers.
58
58
// The k8s versions of the markers are currently in addition to other markers so this is accepted.
59
-
// +k8s:Optional
59
+
// +k8s:optional
60
60
// +optional
61
61
MarkedWithK8sOptionalAndOptional string
62
62
63
63
// MarkedWithK8sOptionalAndRequired is a field with both k8s and required markers.
64
64
// The k8s versions of the markers are currently in addition to other markers, but they should match the semantics.
65
-
// +k8s:Optional
65
+
// +k8s:optional
66
66
// +required
67
-
MarkedWithK8sOptionalAndRequired string // want "field MarkedWithK8sOptionalAndRequired must not be marked as both k8s:Optional and required"
67
+
MarkedWithK8sOptionalAndRequired string // want "field MarkedWithK8sOptionalAndRequired must not be marked as both k8s:optional and required"
68
68
69
69
// MarkedWithK8sRequiredAndOptional is a field with both k8s and optional markers.
70
70
// The k8s versions of the markers are currently in addition to other markers, but they should match the semantics.
71
-
// +k8s:Required
71
+
// +k8s:required
72
72
// +optional
73
-
MarkedWithK8sRequiredAndOptional string // want "field MarkedWithK8sRequiredAndOptional must not be marked as both optional and k8s:Required"
73
+
MarkedWithK8sRequiredAndOptional string // want "field MarkedWithK8sRequiredAndOptional must not be marked as both optional and k8s:required"
74
74
75
75
// MarkedWithK8sRequiredAndK8sOptional is a field with both k8s and kubebuilder optional markers.
76
-
// +k8s:Required
77
-
// +k8s:Optional
78
-
MarkedWithK8sRequiredAndK8sOptional string // want "field MarkedWithK8sRequiredAndK8sOptional must be marked as optional or required" "field MarkedWithK8sRequiredAndK8sOptional must not be marked as both k8s:Optional and k8s:Required"
76
+
// +k8s:required
77
+
// +k8s:optional
78
+
MarkedWithK8sRequiredAndK8sOptional string // want "field MarkedWithK8sRequiredAndK8sOptional must be marked as optional or required" "field MarkedWithK8sRequiredAndK8sOptional must not be marked as both k8s:optional and k8s:required"
0 commit comments