-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route53 HostedZone delegationSet not in use-full format for ResourceRecordSet #628
Comments
Thinking of option 2. It might be possible to introduce compatibility status field which would just reformat output, example crds field: atProvider:
description: HostedZoneObservation keeps the state for the external resource.
properties:
delegationSet:
description: DelegationSet describes the name servers for this hosted zone.
properties:
callerReference:
description: The value that you specified for CallerReference when you created the reusable delegation set.
type: string
id:
description: The ID that Amazon Route 53 assigns to a reusable delegation set.
type: string
nameServers:
description: NameServers contains a list of the authoritative name servers for a hosted Hostedzone.
items:
type: string
type: array
compatibility: # Compatibility layer fields with other crossplane resources
properties:
resourceRecordSet:
properties:
nameservers:
items:
properties:
value:
type: string
type: object
type: array
type: object
type: object
type: object |
Please let me know if my understanding is correct. You have an array like the following: status:
atProvider:
delegationSet:
nameServers:
- ns-example1.awsdns-1.net
- ns-example2.awsdns-2.com
- ns-example3.awsdns-3.co.uk
- ns-example4.awsdns-4.org And you'd like to use this spec:
forProvider:
resourceRecords:
- value: ns-example1.awsdns-1.net
- value: ns-example2.awsdns-2.com
- value: ns-example3.awsdns-3.co.uk
- value: ns-example4.awsdns-4.org You're not able to do this because input is a string array while the target field is |
@muvaf exactly |
Here is a workaround to pass the data from HostedZone list to the ResourceRecordSet:
|
Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as |
rds.instance: add ability to auto-generate password in referenced secret
What problem are you facing?
Consider 2 nested domains
example.com
andtest.example.com
Now either both or at least
test.example.com
is created via Crossplane.The
HostedZone
domain record has instatus.atProvider.delegationSet.nameServers
a array of strings:Now you want to delegate that
test.example.com
fromexample.com
viaResourceRecordSet
which input for
NS
type of records has this specification:As you can see in example they are not the same:
vs
Now when I look at
CompositeResourceDefinition
andComposition
and its transform capabilities: https://doc.crds.dev/github.com/crossplane/crossplane/apiextensions.crossplane.io/Composition/v1@v1.1.0 I can't seam to find any which would be able to transform the values.How could Crossplane help solve your problem?
3 options:
HostedZone
status.atProvider.delegationSet.nameServers
to be an output in same format asResourceRecordSet
spec.forProvider.resourceRecords
ResourceRecordSet
definitionspec.forProvider.resourceRecords
to be same format asHostedZone
status.atProvider.delegationSet.nameServers
options 2,3 are backwards incompatible, but would make to me most sense as simplest approach
The text was updated successfully, but these errors were encountered: