Skip to content

Commit

Permalink
SANDBOX-681: add 'Reason' field to BannedUserSpec (#442)
Browse files Browse the repository at this point in the history
* add 'Description' field to BannedUserSpec

* improve

* change field to optional

* change description to reason
  • Loading branch information
rsoaresd authored Sep 9, 2024
1 parent de5ee82 commit 3b27dcf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha1/banneduser_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ type BannedUserSpec struct {

// The e-mail address of the account that has been banned
Email string `json:"email"`

// Reason of the ban
// +optional
Reason string `json:"reason,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/docs/apiref.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ BannedUserSpec defines the desired state of BannedUser
|===
| Field | Description | Default | Validation
| *`email`* __string__ | The e-mail address of the account that has been banned + | |
| *`reason`* __string__ | Reason of the ban + | |
|===


Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b27dcf

Please sign in to comment.