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/statussubresource/testdata/src/a/a.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,3 +47,14 @@ type FooBarSpec struct {
47
47
typeFooBarStatusstruct {
48
48
Namestring`json:"name"`
49
49
}
50
+
51
+
// Test that it works with 'root=true' as well
52
+
// +kubebuilder:object:root=true
53
+
// +kubebuilder:subresource:status
54
+
typeFooBarBazstruct { // want "root object type \"FooBarBaz\" is marked to enable the status subresource with marker \"kubebuilder:subresource:status\" but has no status field"
Copy file name to clipboardExpand all lines: pkg/analysis/statussubresource/testdata/src/a/a.go.golden
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,14 @@ type FooBarSpec struct {
48
48
type FooBarStatus struct {
49
49
Name string `json:"name"`
50
50
}
51
+
52
+
// Test that it works with 'root=true' as well
53
+
// +kubebuilder:object:root=true
54
+
// +kubebuilder:subresource:status
55
+
type FooBarBaz struct { // want "root object type \"FooBarBaz\" is marked to enable the status subresource with marker \"kubebuilder:subresource:status\" but has no status field"
0 commit comments