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

[teleport-update] Fix usage of default $PATH dir #52604

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

sclevine
Copy link
Member

@sclevine sclevine commented Feb 28, 2025

This PR fixes incorrect usages of the default $PATH dir introduced in #52152.

The default $PATH for the specified install suffix (--install-suffix) can be overridden via the --path flag. Currently, custom --path values are ignored when writing the Teleport service file and logging a warning.

This PR also fixes a regression where the proxy is not parsed from teleport.yaml on teleport-update enable, and adjusts locking in main.go to avoid hanging.


The teleport-update binary will be used to enable, disable, and trigger automatic Teleport agent updates. The new auto-updates system manages a local installation of the cluster-specified version of Teleport stored in /opt/teleport.

RFD: #47126
Goal (internal): https://github.com/gravitational/cloud/issues/11856

@sclevine sclevine added the no-changelog Indicates that a PR does not require a changelog entry label Feb 28, 2025
@github-actions github-actions bot requested review from smallinsky and tcsc February 28, 2025 01:10
@sclevine sclevine added this pull request to the merge queue Feb 28, 2025
@sclevine sclevine removed this pull request from the merge queue due to a manual request Feb 28, 2025
@sclevine sclevine enabled auto-merge February 28, 2025 02:31
@sclevine sclevine added this pull request to the merge queue Feb 28, 2025
@sclevine sclevine removed this pull request from the merge queue due to a manual request Feb 28, 2025
@sclevine sclevine enabled auto-merge February 28, 2025 03:03
@sclevine sclevine disabled auto-merge February 28, 2025 03:04
@sclevine sclevine enabled auto-merge February 28, 2025 03:04
@sclevine sclevine disabled auto-merge February 28, 2025 03:08
@sclevine sclevine force-pushed the sclevine/autoupdates-path-fix branch from aa2c1bc to e0ff6a0 Compare February 28, 2025 03:19
@sclevine sclevine enabled auto-merge February 28, 2025 03:20
@sclevine sclevine added this pull request to the merge queue Feb 28, 2025
Merged via the queue into master with commit f3d2b45 Feb 28, 2025
41 checks passed
@sclevine sclevine deleted the sclevine/autoupdates-path-fix branch February 28, 2025 04:00
@public-teleport-github-review-bot

@sclevine See the table below for backport results.

Branch Result
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 bug no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants