File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
pkg/analysis/statussubresource Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
16+
17+ /*
18+ The statussubresource linter ensures that a type marked with
19+ kubebuilder:object:root:=true and containing a status field is marked with
20+ kubebuilder:subresource:status
21+
22+ Status fields should always be considered a subresource for the API, and this
23+ way the linter guarantees that the right marker is added on this field.
24+
25+ The linter will report an issue if the root object has a status field and does
26+ not contain the marker 'kubebuilder:subresource:status'
27+ */
1628package statussubresource
You can’t perform that action at this time.
0 commit comments