Query target version in discovery script#39033
Conversation
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
fspmarshall
left a comment
There was a problem hiding this comment.
I think this is a good quick fix. Long-run, lets add a subcommand to the upgrader to ask it to pull the target version, that way it can be the single source of truth for target version.
7fc36ff to
e71b33d
Compare
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
1 similar comment
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
I agree, I think what roman suggested (having a subcommand in the teleport-upgrader package that does the install) sounds like a good idea. The install flow would be
|
marcoandredinis
left a comment
There was a problem hiding this comment.
It seems that there's a typo in TELEPORT_UPDATER_PACKAGE var.
There was a problem hiding this comment.
Given that it also installs teleport and the updater script, we must change the agentless script as well.
Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
marcoandredinis
left a comment
There was a problem hiding this comment.
We must change the agentless script as well
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
|
TIL, we install teleport for agentless, AND it updater. I'm not sure what advantage agentless discovery has over teleport at this point 🤷♂️ |
It's only used for joining the cluster and configuring openssh. The true agentless mode is the EC2 ICE, but it only works for AWS EC2 and only a subset of distros. |
|
@hugoShaka See the table below for backport results.
|
* Query target version in discovery script * Update api/types/installers/installer.sh.tmpl Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com> * address marco's feedback * fix tests --------- Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
Unlike what's written in the file shebang, this is not bash but sh 🙃 .
I had to rewrite to bourne-shell compliant script.
I removed the
$PACKAGE_LISTvar entirely for 2 reasons:The resulting script is a bit ugly.
changelog: Fix a bug when using automatic updates and the discovery service. The default install script now installs the correct teleport version by querying the version server.