-
Notifications
You must be signed in to change notification settings - Fork 630
Change field names in TrafficPolicy to be more consistent before release #13254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change field names in TrafficPolicy to be more consistent before release #13254
Conversation
Signed-off-by: Joshua Pritchard <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR renames fields in the TrafficPolicy API for improved consistency before the release. The changes rename jwt to jwtAuth and apiKeyAuthentication to apiKeyAuth in the TrafficPolicySpec, along with corresponding type renames from JWTAuthentication to JWTAuth and APIKeyAuthentication to APIKeyAuth.
Key changes:
- Updated API type definitions and generated deepcopy code for renamed types
- Modified CRD templates to reflect new field names
- Updated plugin implementations to use renamed fields
- Updated test data files and translator test inputs within the PR scope
Reviewed changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| api/v1alpha1/kgateway/traffic_policy_types.go | Updated field names from JWT to JWTAuth and APIKeyAuthentication to APIKeyAuth |
| api/v1alpha1/kgateway/jwt_types.go | Renamed type from JWTAuthentication to JWTAuth |
| api/v1alpha1/kgateway/zz_generated.deepcopy.go | Updated generated deepcopy methods for renamed types |
| pkg/kgateway/extensions2/plugins/trafficpolicy/jwt.go | Updated field access from in.Spec.JWT to in.Spec.JWTAuth |
| pkg/kgateway/extensions2/plugins/trafficpolicy/api_key_auth.go | Updated field access from spec.APIKeyAuthentication to spec.APIKeyAuth |
| install/helm/kgateway-crds/templates/gateway.kgateway.dev_trafficpolicies.yaml | Updated CRD schema with new field names and descriptions |
| test/e2e/features/jwt/testdata/jwt.yaml | Updated TrafficPolicy spec from jwt: to jwtAuth: |
| test/e2e/features/jwt/testdata/jwt-rbac.yaml | Updated TrafficPolicy spec from jwt: to jwtAuth: |
| test/e2e/features/apikeyauth/testdata/*.yaml | Updated all API key auth test files from apiKeyAuthentication: to apiKeyAuth: |
| pkg/kgateway/translator/gateway/testutils/inputs/traffic-policy/*.yaml | Updated all traffic policy test input files with new field names |
| pkg/kgateway/translator/gateway/testutils/inputs/jwt/*.yaml | Updated JWT test input files with new field names |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Joshua Pritchard <[email protected]>
Head branch was pushed to by a user without write access
Signed-off-by: Joshua Pritchard <[email protected]>
|
/merge |
Description
Change field names in TrafficPolicy to be more consistent before release #13254
Change Type
/kind breaking_change
Changelog
Additional Notes
resolves #13069