-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Warp Support #78
Comments
Hey @KAllan357 |
Specifically the former here. |
That can be done, yes. As you note, the tunnel spec can contain the warp enable flag. But for adding the actual routes; tunnel spec could be extended to include the routes, but checking the diff with the routes already added to the tunnel might be a bit of a pain. Any idea to make that easier? |
I was thinking about this some more. We can likely manage diffs / what's owned by the operator via the In the past I've enabled Warp on a tunnel using the following steps:
As for the design, I had some thoughts. The Warp feature is a facet of the tunnel. It aligns with the The operator could support an additional
The values inside the new Kind could represent the two things we don't know about which make up the CreateTunnelRoute function of Just like when a TunnelBinding adds a Subject to the tunnel (which modifies the ConfigMap of the tunnel's config), this new Kind could do the same. It adds What do you think? Also, there are instructions and an API for updating the Split Tunnels list of your account, but I think these are better left to the user to manipulate. Last I checked, the two PUT routes (https://developers.cloudflare.com/api/operations/devices-set-split-tunnel-exclude-list and https://developers.cloudflare.com/api/operations/devices-set-split-tunnel-include-list) needed the whole list (ie submitting just a list with 1 entry would result in the dropping of any other entries). Seems like an weird race condition to me. |
@adyanth wondering if you saw my update here. |
The Comments section seems like a nice place to keep track of the stuff from the operator (as long as the user does not have any of their own comments to add). I had forgotten that the Kind exists in the TunnelBinding! That will work well for CIDR with the format you show. Since the Yeah, as you note, I agree messing with the Split Tunnels is not a good idea. |
Awesome! When I get some time next week, I’ll take a stab at implementing and see how it goes. |
Will it work? Isn't WARP mode mutually exclusive with ingress mode? |
I was wondering if you'd consider adding support for Warp.
Using this operator, we could allow the tunnel to be created and configured in K8s. Maybe it could function as data a ClusterTunnel's
TunnelSpec
? Adding a string type for a private CIDR would also allow the operator to use cloudflare-go'sCreateTunnelRoute
API - which is also a part of routing traffic to a warp-enabled tunnel.Lastly, I see it as part of the struct in
cloudflare_configuration.go
but I think it would need to be written into the ConfigMap for the tunnel pods to use.The text was updated successfully, but these errors were encountered: