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

Unify client configuration #3710

Merged
merged 12 commits into from
Oct 27, 2024
Merged

Unify client configuration #3710

merged 12 commits into from
Oct 27, 2024

Conversation

thallgren
Copy link
Member

Previously, client configuration was divided between the config.yml file and a Kubernetes extension. DNS and
routing settings were initially found only in the extension. However, the Helm client structure allowed
entries from both.

To simplify this, we've now aligned the config.yml and Kubernetes extension with the Helm client structure.
This means DNS and routing settings are now included in both. The Kubernetes extension takes precedence over
the config.yml and Helm client object.

While the old-style Kubernetes extension is still supported for compatibility, it cannot be used with the new
style.

Closes #2675

Fixes a regression where the actual traffic-agent got included in the
telepresenceagents config-map.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
The `gopkg-in/yaml.v3` hasn't seen any activity for over two years, it
has 287 issues and 218 PRs pending and Telepresence config contained a
lot of code to work around its deficiencies.

This commit replaces all uses of this package `sigs.k8s.io/yaml` and
introduces `github.com/go-json-experiment/json` as the underlying
framework to do all heavy lifting related to Marshal/Unmarshal.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren thallgren force-pushed the thallgren/local-config branch 4 times, most recently from 6587ed0 to 85a423d Compare October 27, 2024 08:42
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
This is a fairly comprehensive change, but it's been pending for some
time now, and gets rid of a lot of unnecessary conversion and utility
functions.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
The `iputil.IPKey` was initially created to allow efficient use of an IP
as a hash key. It's now redundant since we use `netip.Addr` everywhere.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
Telepresence will now use WebSockets instead of SPDY when creating
port-forwards to the Kubernetes Cluster, and will fall back to SPDY when
connecting to clusters that don't support SPDY. Use of the deprecated
SPDY can be forced by setting `cluster.forceSPDY=true` in the
`config.yml`.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Oct 27, 2024
@thallgren thallgren merged commit b1ccfaf into release/v2 Oct 27, 2024
11 checks passed
@thallgren thallgren deleted the thallgren/local-config branch October 27, 2024 18:32
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.

Make all settings available in config.yml
1 participant