Skip to content

Commit

Permalink
DeprecatedAPIRequestStatus.Conditions: makes sure that tags and comme…
Browse files Browse the repository at this point in the history
…nts align

otherwise genereting OpenAPI fails with: "Tags in comment and struct should match for member (Conditions) of (github.com/openshift/api/apiserver/v1.DeprecatedAPIRequestStatus)"
  • Loading branch information
p0lyn0mial committed Apr 19, 2021
1 parent 8696426 commit a86a8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/v1/types_deprecatedapirequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type DeprecatedAPIRequestStatus struct {
// conditions contains details of the current status of this API Resource.
// +patchMergeKey=type
// +patchStrategy=merge
Conditions []metav1.Condition `json:"conditions"`
Conditions []metav1.Condition `json:"conditions" patchStrategy:"merge" patchMergeKey:"type"`

// requestsLastHour contains request history for the current hour. This is porcelain to make the API
// easier to read by humans seeing if they addressed a problem. This field is reset on the hour.
Expand Down

0 comments on commit a86a8c7

Please sign in to comment.