forked from siderolabs/talos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example code to support ForwardedIPs the right way
Warning this code has a few problems: - It is not plugged in to Talos. as I could not find the needed hooks - `ip` is not available, we should use the talos api's here, which need modification as scope is always global - consecutive calls to func ForwardedIPs, ForwardedIPs should use the waiting parameter in the url, to make the thread block until there is a new update of the metadata - the helper functions are mostly copied from google-agent, not sure we may use them in Talos.
- Loading branch information
Showing
1 changed file
with
167 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters