Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/v1alpha1/apikey_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ type APIKeySpec struct {
PlanTier string `json:"planTier"`

// UseCase describes how the API key will be used
// +kubebuilder:validation:Required
UseCase string `json:"useCase"`
// +optional
UseCase string `json:"useCase,omitempty"`

// RequestedBy contains information about who requested the API key
// +kubebuilder:validation:Required
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/devportal.kuadrant.io_apikeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ spec:
- planTier
- requestedBy
- secretRef
- useCase
type: object
status:
description: APIKeyStatus defines the observed state of APIKey.
Expand Down
2 changes: 1 addition & 1 deletion docs/references/apikey.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The APIKey CRD is part of the Developer Portal extension for Kuadrant. It repres
| `apiProductRef` | [APIProductReference](#apiproductreference) | Yes | Reference to the APIProduct this API key provides access to |
| `secretRef` | [LocalObjectReference](#localobjectreference) | Yes | Reference to the secret containing the API key in the consumer's namespace |
| `planTier` | String | Yes | Tier of the plan (e.g., "premium", "basic", "enterprise") |
| `useCase` | String | Yes | Description of how the API key will be used |
| `useCase` | String | No | Description of how the API key will be used |
| `requestedBy` | [RequestedBy](#requestedby) | Yes | Information about who requested the API key |

### APIProductReference
Expand Down
Loading