Implement SGCP DNS alias management and resource driver#1065
Open
cgalibern wants to merge 19 commits into
Open
Implement SGCP DNS alias management and resource driver#1065cgalibern wants to merge 19 commits into
cgalibern wants to merge 19 commits into
Conversation
Add the resipsgcp_dnsalias driver to manage DNS aliases via the SGCP API. This driver supports create, update, delete, and status operations, following the same pattern as the existing resfssgcp_nfs driver. - Add T struct with keywords: uuid, name, target, zone_id, secret, endpoint - Implement Configure, Start, Stop, Status, Label, CanInstall, Boot methods - Use sgcp.DNSAPI for API calls, with authentication via token factory - Add aliasManager to handle createOrUpdate and delete logic - Add unit tests covering creation, update, deletion, status, and error cases - Add manifest.go to register driver and keywords The driver integrates with the SGCP configuration (sgcp.yaml) and uses the common http client cache and token factory from the sgcp package.
…package for test simplification Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…n-memory DB for SGCP alias management Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…nd error handling Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…thentication information
…cs and reset functionality
…s using zoneID, name, and uuid
… updated functionality Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
… and API abstraction Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…ions and enhanced test cases Api test is not expected here Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…anagement REST API endpoints for SGCP scenarios Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
…on and update references
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of Changes
This pull request introduces the
resipsgcp_dnsaliasdriver to manage DNS aliases using the SGCP API. Key updates include:DNS Alias Resource Driver:
Tstruct with keywords, includinguuid,name,target,zone_id,secret, andendpoint.Configure,Start,Stop,Status,Label,CanInstall, andBoot.Code Refinements & Enhancements:
sgcpdnshelperpackage.Testing & Utilities:
AuthInfoFromPathfor authentication.This update ensures robust DNS alias management via the SGCP framework, aligning with the patterns established in existing resource drivers.