File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ linters:
5555 description : " A field with a default value cannot be required"
5656 forbiddenmarkers :
5757 markers :
58+ # We don't want to do any defaulting (including OpenAPI) anymore on API fields because we prefer
59+ # to have a clear signal on user intent. This also allows us to easily change the default behavior if necessary.
5860 - identifier : " kubebuilder:default"
5961 - identifier : " default"
6062 conditions :
@@ -163,7 +165,6 @@ linters:
163165 - kubeapilinter
164166
165167 # Excludes for existing default markers
166- # We don't want to use OpenAPI defaulting anymore.
167168 - path : " api/core/v1beta2/clusterclass_types.go"
168169 text : ' forbiddenmarkers: field Reason has forbidden marker "kubebuilder:default=FieldValueInvalid"'
169170 linters :
You can’t perform that action at this time.
0 commit comments