Skip to content

Commit

Permalink
Fix lint to use proper +default tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Jan 30, 2025
1 parent 7f1c409 commit b5e6152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staging/src/k8s.io/code-generator/cmd/validation-gen/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func ruleOptionalAndRequired(comments []string) (string, error) {
return conflictingTagsRule(comments, "+k8s:optional", "+k8s:required")
}

// ruleRequiredAndDefault checks for conflicting tags +k8s:required and +k8s:default in a slice of comments.
// ruleRequiredAndDefault checks for conflicting tags +k8s:required and +default in a slice of comments.
func ruleRequiredAndDefault(comments []string) (string, error) {
return conflictingTagsRule(comments, "+k8s:required", "+k8s:default")
return conflictingTagsRule(comments, "+k8s:required", "+default")
}

0 comments on commit b5e6152

Please sign in to comment.