10000 Add support for zone sharing in DNS v2 by victorpcamargo · Pull Request #3286 · gophercloud/gophercloud · GitHub
[go: up one dir, main page]

Skip to content

Conversation

victorpcamargo
Copy link

This commit introduces functionality to share and unshare DNS zones with other projects using the OpenStack DNS v2 API. The following changes are included:

  • Added Share and Unshare methods in requests.go to handle API calls.
  • Updated results.go to include parsing for share/unshare responses.
  • Enhanced urls.go to generate proper URLs for share-related operations.
  • Created unit tests in requests_test.go to validate Share and Unshare.

These additions allow users to manage shared zones programmatically and align Gophercloud with the DNS v2 API capabilities.

Fixes #3048

Links to the line numbers/files in the OpenStack source code that support the code in this PR:

@github-actions github-actions bot added edit:dns This PR updates dns code semver:minor Backwards-compatible change labels Jan 27, 2025
Copy link
@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first PR! Be sure that we will be looking at it but keep in mind
this sometimes takes a while.
Please let the maintainers know if your PR has not got enough attention after a few days.
If any doubt, please consult our PR tutorial.

@coveralls
Copy link
coveralls commented Feb 3, 2025

Coverage Status

coverage: 78.706% (-0.006%) from 78.712%
when pulling 05687fb on victorpcamargo:feature/shared_zones
into 6630c7b on gophercloud:main.

Copy link
Contributor
@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Could you add acceptance tests? This is important to verify that the feature works against real live environments.

@mandre
Copy link
Contributor
mandre commented Feb 7, 2025

It looks like go-apidiff picked up the changes from #3284 and now marks your PR as non-backward compatible. That would be a problem with our automation, and I suspect that we'll get the expected semver label if you rebase on main. Could you do that?

victorcam added 2 commits February 7, 2025 12:54
This commit introduces functionality to share and unshare DNS zones
with other projects using the OpenStack DNS v2 API. The following changes
are included:
- Added `Share` and `Unshare` methods in `requests.go` to handle API calls.
- Updated `results.go` to include parsing for share/unshare responses.
- Enhanced `urls.go` to generate proper URLs for share-related operations.
- Created unit tests in `requests_test.go` to validate `Share` and `Unshare`.

These additions allow users to manage shared zones programmatically
and align Gophercloud with the DNS v2 API capabilities.
@github-actions github-actions bot added semver:minor Backwards-compatible change and removed semver:major Breaking change labels Feb 7, 2025
@victorpcamargo
Copy link
Author

@mandre Cheers for spotting that! Rebased.

Copy link
Contributor
@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@mandre mandre merged commit 418aace into gophercloud:main Feb 7, 2025
18 checks passed
@mandre mandre added the backport-v2 This PR will be backported to v2 label Feb 7, 2025
@victorpcamargo victorpcamargo deleted the feature/shared_zones branch February 7, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:dns This PR updates dns code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Designate - Shared Zones

3 participants

0