-
Notifications
You must be signed in to change notification settings - Fork 129
Labels
testsPull requests that update testsPull requests that update tests
Description
Overview
As a user of NGF, I would like to add CEL tests for the ClientSettingsPolicies CRD so that I can be confident that the CEL validation works as I expect
UACs
- Add test for the
timeout
CEL validation - Add test for the
targetRef
CEL validation
timeout
validation:
x-kubernetes-validations:
- message: header can only be specified if server is specified
rule: '!(has(self.header) && !has(self.server))'
targetRef
validation:
x-kubernetes-validations:
- message: 'TargetRef Kind must be one of: Gateway, HTTPRoute, or
GRPCRoute'
rule: (self.kind=='Gateway' || self.kind=='HTTPRoute' || self.kind=='GRPCRoute')
- message: TargetRef Group must be gateway.networking.k8s.io.
rule: (self.group=='gateway.networking.k8s.io')
Metadata
Metadata
Assignees
Labels
testsPull requests that update testsPull requests that update tests
Type
Projects
Status
👀 In Review