crossplane-contrib / crossplane-contrib/provider-openstack

ZoneV2 Observe Only Resource doesn't work with zone name

Open
#125 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
68
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm trying to import an existing DNS zone so that I can create recordsets and refer to the already existing zone.

` apiVersion: dns.openstack.crossplane.io/v1alpha1
kind: ZoneV2
metadata:
name: my-zone
annotations:
crossplane.io/external-name: domain.example.com
spec:
managementPolicies: ["Observe"]
forProvider: {}`

Instead of working, this happens:

`Error: Error retrieving openstack_dns_zone_v2 domain.example.com: Bad request with: [GET https://my-openstack:9001/v2/zones/domain.example.com], error message: {"code": 400, "type": "invalid_uuid", "message": "Invalid UUID zone_id: domain.example.com", "request_id": "req-ec855967-93b1-4706-92b4-9d2e6107e341"}`

Of course, if the name is replaced with the zone ID it works, though that sort of defeats the purpose. In my use case the name is known, the ID is not.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.