Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deduplicate SubResource for networking #4430

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

matthchr
Copy link
Member

@matthchr matthchr commented Nov 9, 2024

This fixes the SubResource from DnsResolver to match the SubResource from core networking so that we don't have a million different SubResource's created.

The issue is that dnsresolver and networking are two different Swagger specifications from two different Swagger folders that both put resources into the networking group. The 2022-07-01 API just happened to be supported by both networking and dnsresolver, but many subsequent API versions of plain networking don't correspond to a dnsresolver version. This results in inconsistencies between type names in the two versions of core networking which causes issues adding a new networking version due to conversion problems.

  • this PR contains documentation
  • this PR contains tests
  • this PR contains YAML Samples

This fixes the SubResource from DnsResolver to match
the SubResource from core networking so that we don't have a million
different <Resource>SubResource's created.

The issue is that dnsresolver and networking are two different Swagger
specifications from two different Swagger folders that both put
resources into the networking group. The 2022-07-01 API just happened to
be supported by both networking and dnsresolver, but many subsequent API
versions of plain networking don't correspond to a dnsresolver version.
This results in inconsistencies between type names in the two versions
of core networking which causes issues adding a new networking version
due to conversion problems.
@matthchr
Copy link
Member Author

matthchr commented Nov 9, 2024

Planning to file an item to do this in a less hacky way, although I don't really know what a less hacky way would be...

@matthchr
Copy link
Member Author

matthchr commented Nov 9, 2024

/ok-to-test sha=3a0dd50

@matthchr matthchr changed the title Hacky fix of subresource for networking Deduplicate SubResource for networking Nov 11, 2024
@matthchr matthchr added this pull request to the merge queue Nov 11, 2024
Merged via the queue into Azure:main with commit 6a95721 Nov 12, 2024
7 checks passed
@matthchr matthchr deleted the feature/hacky-networking-fix branch November 12, 2024 00:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants