Skip to content

Commit aac5aea

Browse files
authored
Merge pull request #58 from Kuadrant/apikey-usecase-optional
useCase field optional in the APIKey type
2 parents 66c48cf + 7ac5601 commit aac5aea

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

api/v1alpha1/apikey_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ type APIKeySpec struct {
6464
PlanTier string `json:"planTier"`
6565

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

7070
// RequestedBy contains information about who requested the API key
7171
// +kubebuilder:validation:Required

config/crd/bases/devportal.kuadrant.io_apikeys.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ spec:
113113
- planTier
114114
- requestedBy
115115
- secretRef
116-
- useCase
117116
type: object
118117
status:
119118
description: APIKeyStatus defines the observed state of APIKey.

docs/references/apikey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The APIKey CRD is part of the Developer Portal extension for Kuadrant. It repres
1818
| `apiProductRef` | [APIProductReference](#apiproductreference) | Yes | Reference to the APIProduct this API key provides access to |
1919
| `secretRef` | [LocalObjectReference](#localobjectreference) | Yes | Reference to the secret containing the API key in the consumer's namespace |
2020
| `planTier` | String | Yes | Tier of the plan (e.g., "premium", "basic", "enterprise") |
21-
| `useCase` | String | Yes | Description of how the API key will be used |
21+
| `useCase` | String | No | Description of how the API key will be used |
2222
| `requestedBy` | [RequestedBy](#requestedby) | Yes | Information about who requested the API key |
2323

2424
### APIProductReference

0 commit comments

Comments
 (0)