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

Add 'tctl autoupdate agents status' #51079

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Jan 15, 2025

This PR implements tctl autoupdate agents status.

Part of: RFD-184

Goal (internal): https://github.com/gravitational/cloud/issues/10289

This PR contains the following changes:

  • rename internal tctl client tool update variables and functions to scope them for tools and leave room for agents (e.g. targetCmd -> toolsTargetCmd)
  • add autoupdate_agent_rollout read-only reight to the editor preset
  • add tctl autoupdate agents status command

Example output:

$ ./tctl autoupdate agents status
Agent autoupdate mode: enabled
Rollout creation date: 2025-01-14 16:17:36
Start version: 17.0.1
Target version: 17.1.5
Rollout state: Done

Group Name State Start Time          State Reason
---------- ----- ------------------- --------------
dev        Done  2025-01-15 12:00:08 outside_window
stage      Done  2025-01-15 16:17:45 outside_window
prod       Done  2025-01-15 18:00:12 outside_window
backup     Done  2025-01-14 20:00:31 outside_window

@hugoShaka hugoShaka force-pushed the hugo/tctl-autoupdate-rollout-status branch from 42b556c to 5fed172 Compare January 17, 2025 20:32
@hugoShaka hugoShaka requested review from vapopov and sclevine January 17, 2025 20:33
@hugoShaka hugoShaka marked this pull request as ready for review January 17, 2025 20:33
@github-actions github-actions bot added size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jan 17, 2025
@github-actions github-actions bot requested review from avatus and camscale January 17, 2025 20:33
@hugoShaka hugoShaka force-pushed the hugo/tctl-autoupdate-rollout-status branch from 5fed172 to 31a9ffd Compare January 17, 2025 21:02
Copy link
Contributor

@vapopov vapopov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants