diff --git a/api/v1alpha1/banneduser_types.go b/api/v1alpha1/banneduser_types.go index 994f681e..a73a5ed9 100644 --- a/api/v1alpha1/banneduser_types.go +++ b/api/v1alpha1/banneduser_types.go @@ -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 diff --git a/api/v1alpha1/docs/apiref.adoc b/api/v1alpha1/docs/apiref.adoc index 7983142c..a5045ebb 100644 --- a/api/v1alpha1/docs/apiref.adoc +++ b/api/v1alpha1/docs/apiref.adoc @@ -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 + | | |=== diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 91d99004..ff81a6d4 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -291,6 +291,13 @@ func schema_codeready_toolchain_api_api_v1alpha1_BannedUserSpec(ref common.Refer Format: "", }, }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason of the ban", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"email"}, },