-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Azure Service Mesh - BYO CA, Egress Gateway and Mesh Revisions #24453
Merged
FumingZhang
merged 5 commits into
FumingZhang-containerservice-Microsoft.ContainerService-2023-06-02-preview
from
ddama/AzureServiceMesh-2023-06-02-preview
Jun 21, 2023
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a8cf6b9
Azure Service Mesh - BYO CA and Egress Gateway
deveshdama 513b6a6
prettier fix.
deveshdama f562172
adding changes for for revisions and meshversioncompatibilityprofile
deveshdama f184555
adding a missing parameter
deveshdama 1ddd0d9
Changes as per lint failures
deveshdama 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
This file contains 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
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.
There's a LintDiff error about this block. A recently added rule AvoidAdditionalProperties attempts to limit such usage. In addition, I checked the swagger of other services, and there are not many similar usages (except for tags).
If you insist on using such a structure (map[string]string), there is a high probability that you need to clarify the specific reasons to the ARM reviewer when performing the final ARM review before the swagger release.
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.
Maps are pretty standard in JSON - I'm surprised the Swagger team is pushing this rule? What's the reasoning behind it? The Azure guidelines state the exact opposite of this:
See here
The only alternative to this map structure here would be an array, right?
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.
@FumingZhang @matthchr this is in line with nodeLabels under AgentPoolProperties:
azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2023-03-01/managedClusters.json
Line 2828 in e2b5f93
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.
Definitions must not have properties named "additionalProperties" except for user defined tags.
^ I think labels used for NodeSelectors would fall under here?