-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there's a typo in TELEPORT_UPDATER_PACKAGE
var.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that it also installs teleport and the updater script, we must change the agentless script as well.
Co-authored-by: Marco André Dinis <[email protected]>
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> * address marco's feedback * fix tests --------- Co-authored-by: Marco André Dinis <[email protected]>
* Query target version in discovery script * Update api/types/installers/installer.sh.tmpl * address marco's feedback * fix tests --------- Co-authored-by: Marco André Dinis <[email protected]>
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_LIST
var 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.