Skip to content

Adapt DNS alias API to new cname-records endpoints - #1069

Merged
cgalibern merged 1 commit into
opensvc:mainfrom
PaulJouvanceau:feat/dns-alias-cname-records
Jul 20, 2026
Merged

Adapt DNS alias API to new cname-records endpoints#1069
cgalibern merged 1 commit into
opensvc:mainfrom
PaulJouvanceau:feat/dns-alias-cname-records

Conversation

@PaulJouvanceau

Copy link
Copy Markdown
Contributor
  • Change the none target constant to "none.ocp"
  • Update Alias struct JSON tag for ZoneID to "zoneId"
  • Migrate API endpoints:
    • GET /zones/{zoneID}/cname-records?name=...&id=...
    • POST /zones/{zoneID}/cname-records
    • PATCH /zones/{zoneID}/cname-records/{uuid} (target only)
    • DELETE /zones/{zoneID}/cname-records/{uuid}
  • Parse response using "cnameRecords" field instead of "aliases"
  • Adjust helper and tests to match new API contract

@PaulJouvanceau
PaulJouvanceau force-pushed the feat/dns-alias-cname-records branch 2 times, most recently from 6c76af9 to 5d505aa Compare July 20, 2026 08:26
- Change the none target constant to "none.ocp"
- Update Alias struct JSON tag for ZoneID to "zoneId"
- Migrate API endpoints:
  - GET /zones/{zoneID}/cname-records?name=...&id=...
  - POST /zones/{zoneID}/cname-records
  - PATCH /zones/{zoneID}/cname-records/{uuid} (target only)
  - DELETE /zones/{zoneID}/cname-records/{uuid}
- Parse response using "cnameRecords" field instead of "aliases"
- Adjust helper and tests to match new API contract
@PaulJouvanceau
PaulJouvanceau force-pushed the feat/dns-alias-cname-records branch from 5d505aa to 66a6495 Compare July 20, 2026 08:44
Comment thread drivers/resipsgcp_dnsalias/main.go Outdated
)

const noneTarget = "none."
const noneTarget = "none.ocp"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can tou move the none target value inside the sgcp.yaml ?

@cgalibern
cgalibern merged commit c15f4a3 into opensvc:main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants