Repository navigation
Conversation
Introduces a new TS_SET_EXTRA_ARGS that can be used to provide additonal args to 'tailscale set'. Updates #10708 Signed-off-by: Irbe Krumina <[email protected]>
irbekrm
force-pushed
the
irbekrm/set_args
branch
from
January 4, 2024 15:57
3c48ad8 to
62d9971
Compare
knyar
approved these changes
Jan 4, 2024
Contributor
Author
|
Thank you for review @knyar ! Closing this as we are going for a different approach and incorporate the new declarative config file mechanism instead https://pkg.go.dev/[email protected]/ipn#ConfigVAlpha |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Introduces a new
TS_SET_EXTRA_ARGSthat can be used to provide additonal args to 'tailscale set'.In #10724 we are adding functionality to the
Connectorcustom resource to allow users to set the Tailscale node created for theConnectoras an exit node. Tailscale Kubernetes operator should configure the node to advertise exit node/not advertise exit node in response to changes users make toisExitNodefield onConnectorspec.However, currently it is not possible to change the
--advertise-exit-nodeflag value for operator proxies because the only way how to pass it isTS_EXTRA_ARGSenv var that is only read when the Tailnet node is created and not on subsequent updates/container restarts.Long term
It is of course not optimal to add another env var there- long term we should either teach
tailscale login/tailscale setto read config from a file or have some shim in containerboot that reads config from a file and configurestailscaleaccordingly.Alternatives
instead of
TS_EXTRA_ARGSaddTS_IS_EXIT_NODE. But we probably will also need to allow to pass--advertise-app-connector(maybe before we have time to build a better configuration mechanism?) so that'd be two env vars instead of one.don't do this, tell users that
connector.spec.isExitNodecannot be changed post-Connectorcreation and some time in future fix it by implementing a better config mechanism (see above). Bad user experience forConnectorin short term.don't
TS_AUTH_ONCEforConnectoror don't clean up the auth key so the operator can force the proxy to log in if it has detected that the exit node setting has changed (?). Probably hacky and error proneUpdates #10708