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

feat(provider): add suport for Hetzner #503

Merged
merged 29 commits into from
Nov 17, 2023
Merged

Conversation

lieblinger
Copy link
Contributor

Based on cloudflare provider and related to #493

Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Thanks 👍 👍

A few changes to be made 😉

docs/hetzner.md Outdated Show resolved Hide resolved
docs/hetzner.md Show resolved Hide resolved
internal/provider/headers/headers.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
@lieblinger lieblinger requested a review from qdm12 August 1, 2023 07:54
Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes 🎖️! A few minor comments and it should be good to merge 😉

internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
@qdm12
Copy link
Owner

qdm12 commented Aug 4, 2023

Also:

  • linting is failing, try running golangci-lint run locally to check why? (or check the verify job log output)
  • maybe, you could move each long function to its own file (createrecord.go, getrecord.go, updaterecord.go). Not 100% compulsory, but I used such split in other providers and it's nicer to navigate in my opinion.

@lieblinger
Copy link
Contributor Author

lieblinger commented Aug 14, 2023

Thanks for your review!

I've made some changes and hope that it's okay now. If there's anything else that needs to be changed just let me know.

@lieblinger
Copy link
Contributor Author

@qdm12 Do we need to change anything else?

@varac
Copy link

varac commented Sep 28, 2023

I tested this PR using an image built from this PR banch (registry.0xacab.org/varac-projects/images/ddns-updater:hetzner) and it works well 🍿
Looking forward to get this merged soon.

Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Sorry for the massive delay reviewing 😢
A final review, it shouldn't be too complex to fix, let me know your thoughts.
Feel free to only comment back on new conversations, I can finish up the coding fixes if you don't have time, especially since it has been a few weeks since this was opened sorry!

internal/provider/providers/hetzner/common.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/create.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/create.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/getrecord.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/getrecord.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/create.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/update.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/create.go Outdated Show resolved Hide resolved
internal/provider/providers/hetzner/update.go Outdated Show resolved Hide resolved
Co-authored-by: Quentin McGaw <[email protected]>
@lieblinger lieblinger requested a review from qdm12 October 10, 2023 15:03
@lieblinger
Copy link
Contributor Author

Thanks for your review. All changes are made and I hope that everything is okay.
If there's something else I can update just let me know.

Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Awesome 💯
Just two last tiny double checking questions 😉 And then let's merge finally 👍

@lieblinger lieblinger requested a review from qdm12 October 25, 2023 16:55
@qdm12 qdm12 merged commit 301e4d6 into qdm12:master Nov 17, 2023
5 checks passed
@varac
Copy link

varac commented Nov 24, 2023

@qdm12 Do you mind doing a new release with this feature ? Thanks!

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.

4 participants