Skip to content
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

add optional rootHost #55

Merged
merged 1 commit into from
Mar 14, 2024
Merged

add optional rootHost #55

merged 1 commit into from
Mar 14, 2024

Conversation

maleck13
Copy link
Collaborator

@maleck13 maleck13 commented Mar 11, 2024

allow a rootHost to be set. Validate that if it is set all endpoints are either equal to or children of the root host

@mikenairn I have added a validate. Let me know if you think this is the right place to call it (publishRecord) or should it be directly in the reconcile

Validation

create dnsrecord with rootHost and endpoints using different root host. Should see message in status

'validation of DNSRecord failed: invalid endpoint discovered dnsrecord-simple.cb.hcpaps.net
        all endpoints should be equal to or end with the rootHost cb.hcpapps.net'

api/v1alpha1/dnsrecord_types.go Outdated Show resolved Hide resolved
internal/controller/dnsrecord_controller.go Outdated Show resolved Hide resolved
api/v1alpha1/dnsrecord_types.go Show resolved Hide resolved
add validate call to publish

remove GetRootDomain. Improve validation and tests

expect wildcard endpoint
@maleck13 maleck13 merged commit 6144e5f into main Mar 14, 2024
9 checks passed
@mikenairn mikenairn deleted the gh-50 branch March 21, 2024 08:03
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