Skip to content

Commit

Permalink
make removedInRelease setable to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Apr 19, 2021
1 parent 8696426 commit 08f0636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions apiserver/v1/apiserver.openshift.io_apirequestcount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ spec:
description: removedInRelease is when the API will be removed.
type: string
maxLength: 64
minLength: 0
pattern: ^[0-9][0-9]*\.[0-9][0-9]*$
requestCount:
description: requestCount is a sum of all requestCounts across all
Expand Down
3 changes: 2 additions & 1 deletion apiserver/v1/types_apirequestcount.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ type APIRequestCountStatus struct {
Conditions []metav1.Condition `json:"conditions"`

// removedInRelease is when the API will be removed.
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:Pattern=^[0-9][0-9]*\.[0-9][0-9]*$
// +kubebuilder:validation:MaxLength=64
// +optional
RemovedInRelease string `json:"removedInRelease"`
RemovedInRelease string `json:"removedInRelease,omitempty"`

// requestCount is a sum of all requestCounts across all current hours, nodes, and users.
// +kubebuilder:validation:Minimum=0
Expand Down

0 comments on commit 08f0636

Please sign in to comment.