Skip to content

Commit

Permalink
Merge pull request #2634 from Krishanx92/subscription-ratelimit
Browse files Browse the repository at this point in the history
Remove unwanted types in CRDs
  • Loading branch information
CrowleyRajapakse authored Oct 28, 2024
2 parents a52aef4 + b2a716a commit e0b93c7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 77 deletions.
13 changes: 0 additions & 13 deletions helm-charts/crds/cp.wso2.com_subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,11 @@ spec:
type: object
organization:
type: string
ratelimitRef:
description: RatelimitRef defines the ratelimit associated with the
subscription
properties:
level:
type: string
name:
type: string
required:
- level
- name
type: object
subscriptionStatus:
type: string
required:
- api
- organization
- ratelimitRef
- subscriptionStatus
type: object
status:
Expand Down
62 changes: 0 additions & 62 deletions helm-charts/crds/dp.wso2.com_ratelimitpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,37 +79,6 @@ spec:
description: Value is the value of the custom policy
type: string
type: object
subscription:
description: Subscription level ratelimit policy
properties:
burstControl:
description: BurstControl defines the rule for token count
quota.
properties:
requestsPerUnit:
format: int32
type: integer
unit:
type: string
type: object
organization:
type: string
requestCount:
description: RequestCount defines the rule for request count
quota.
properties:
requestsPerUnit:
format: int32
type: integer
unit:
type: string
type: object
stopOnQuotaReach:
type: boolean
required:
- organization
- stopOnQuotaReach
type: object
type: object
override:
description: RateLimitAPIPolicy defines the desired state of Policy
Expand Down Expand Up @@ -156,37 +125,6 @@ spec:
description: Value is the value of the custom policy
type: string
type: object
subscription:
description: Subscription level ratelimit policy
properties:
burstControl:
description: BurstControl defines the rule for token count
quota.
properties:
requestsPerUnit:
format: int32
type: integer
unit:
type: string
type: object
organization:
type: string
requestCount:
description: RequestCount defines the rule for request count
quota.
properties:
requestsPerUnit:
format: int32
type: integer
unit:
type: string
type: object
stopOnQuotaReach:
type: boolean
required:
- organization
- stopOnQuotaReach
type: object
type: object
targetRef:
description: NamespacedPolicyTargetReference identifies an API object
Expand Down
4 changes: 2 additions & 2 deletions test/cucumber-tests/CRs/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ data:
u0/ITEw=
-----END CERTIFICATE-----
---
apiVersion: cp.wso2.com/v1alpha2
apiVersion: cp.wso2.com/v1alpha3
kind: Subscription
metadata:
name: semantic-versioning-subscription
Expand Down Expand Up @@ -1385,7 +1385,7 @@ spec:
in: "Body"
value: "usage.total_tokens"
---
apiVersion: cp.wso2.com/v1alpha2
apiVersion: cp.wso2.com/v1alpha3
kind: Subscription
metadata:
name: llm-subs
Expand Down

0 comments on commit e0b93c7

Please sign in to comment.