-
Notifications
You must be signed in to change notification settings - Fork 2
Add new overlays #24
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
Merged
kbatuigas
merged 10 commits into
main
from
DOC-1657-modify-acl-and-api-gateway-access-values
Oct 9, 2025
Merged
Add new overlays #24
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
092fd03
Address coderabbit suggestion on removing internal only value NETWORK…
04574e9
RESOURCE_TYPE_ANY is not available when creating a new ACL
c50fead
Tiny changes to force deploy preview with overlays applied
d1c85e2
Fix JSONPath
ff90cb6
Apply suggestions from automated review
b9a0c4f
Fix workflow errors
a4d233d
Fix syntax error
795cad1
Try using a new component schema instead
91c497f
Fix api_gateway_access
6c7eea9
Note about manually updating resource types
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
cloud-controlplane/overlays/update-api-gateway-access.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This overlay updates the Cluster object in response examples to only use a | ||
| # user-facing value for the api_gateway_access field. | ||
| overlay: 1.0.0 | ||
| info: | ||
| title: Update API Gateway Access Values in Response Examples | ||
| version: 1.0.0 | ||
|
|
||
| actions: | ||
| # Target api_gateway_access fields that are descendants of any example field within responses | ||
| - target: "$..responses..example..*[?(@.api_gateway_access == 'NETWORK_ACCESS_MODE_UNSPECIFIED')]" | ||
| update: | ||
| api_gateway_access: "NETWORK_ACCESS_MODE_PUBLIC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # This overlay removes the RESOURCE_TYPE_ANY value as an available option for the | ||
| # resource_type field in the CreateACLRequest schema. | ||
| overlay: 1.0.0 | ||
| info: | ||
| title: Remove RESOURCE_TYPE_ANY from Create ACL Request Body | ||
| version: 1.0.0 | ||
|
|
||
| # Note that we will have to manually update this enum if the Cloud team adds | ||
| # new resource types in the future. | ||
| actions: | ||
| - target: "$.components.schemas" | ||
| update: | ||
| CreateACLResourceType: | ||
| description: |- | ||
| The type of resource (topic, consumer group, etc.) this | ||
| ACL targets. | ||
| enum: | ||
| - "RESOURCE_TYPE_TOPIC" | ||
| - "RESOURCE_TYPE_GROUP" | ||
| - "RESOURCE_TYPE_CLUSTER" | ||
| - "RESOURCE_TYPE_TRANSACTIONAL_ID" | ||
| - "RESOURCE_TYPE_DELEGATION_TOKEN" | ||
| - "RESOURCE_TYPE_USER" | ||
| - "RESOURCE_TYPE_REGISTRY" | ||
| - "RESOURCE_TYPE_SUBJECT" | ||
| type: "string" | ||
| # Replace the $ref with an inline enum that excludes RESOURCE_TYPE_ANY | ||
| - target: "$.components.schemas.CreateACLRequest.properties.resource_type" | ||
| update: | ||
| $ref: '#/components/schemas/CreateACLResourceType' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just to keep in mind - we'll need to manually update this list if the Cloud team add more enums to the source.