-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Updates project to use cloudflare-go #77
Conversation
- init a cloudflare-go client using creds - modify DeleteCloudflareTunnel to use the init'd client
@adyanth tagging you to see if you'd consider / review this PR. |
Hey @KAllan357 wow, thank you very much for the contribution! I was busy the last week, did not see this. Will review. Edit: Looks like the CI build does not use the repo secrets for PRs. I'll go through it regardless. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments with suggestions
add tunnelId to error log Co-authored-by: Adyanth Hosavalike <[email protected]>
return the marshal error for secret creds Co-authored-by: Adyanth Hosavalike <[email protected]>
remove unused TXT_PREFIX Co-authored-by: Adyanth Hosavalike <[email protected]>
Re-requested review. I'd like to try testing this, but I'm not 100% sure when I can get around to deploying a custom container with my changes. |
The makefile should allow you to build the container. No worries though, let me check it out. Will build and check before merging in. Otherwise, looks good! Thanks again for your contribution! |
FWIW,
|
You need to have controller-gen installed and linked to that folder it mentions for kube builder to work. Kind of a pain especially in macOS. Brew has it iirc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out. This should be all the necessary changes.
code fixes from testing the updated code Co-authored-by: Adyanth Hosavalike <[email protected]>
Thank you! I just batched all those suggestions up and committed them. |
Hi!
This PR should address a few outstanding issues in the repo. Specifically, #76, #7, and #47.
After executing a pass against a few of the functions inside
cloudflare_api.go
, I decided that this could go all the way and essentially rewrite the whole file. My high level goal was to keep the API consistent, but adjust the functions so that they usedcloudflare-go
instead of thenet/http
package.Please take a look when you get a chance.