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

Suggestion: SLATE client update message #477

Open
adamhgriffith-uofu opened this issue Jul 25, 2023 · 2 comments
Open

Suggestion: SLATE client update message #477

adamhgriffith-uofu opened this issue Jul 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@adamhgriffith-uofu
Copy link
Contributor

Background

We've had a few customers run an old SLATE client against their infrastructure and the API server that resulted in breakage.

The suggestion

It is highly desired for a SLATE customer to always use the latest and greatest SLATE client when performing actions against the API server.

Many other software clients out there in the world include an update message like gcloud for example:

$ gcloud <some comand>
Updates are available for some Google Cloud CLI components.  To install them,
please run:
  $ gcloud components update

<command output>

Can we do something similar with the slate client? Maybe have it check for updates from https://github.com/slateci/slate-client-server/releases/latest.

and let the customer know they should update before performing any operations?

  • If we wanted to get fancy we could allow a customer to hide this message in a new ~/.slate/client.conf file. Something like:
    clientAlertUpdateMessage=false
    
@adamhgriffith-uofu adamhgriffith-uofu added the enhancement New feature or request label Jul 25, 2023
@cnweaver
Copy link
Contributor

I considered this when originally designing the update mechanism, but rejected it, as it would require an extra network round-trip on every program startup/interactive command, and at the time it seemed like the extra delay would be a poor trade-off for the rare case of the client needing to be updated. It also seemed that it would be annoying to the user to see such a message repeatedly if they do not immediately want to drop what they are doing and install an update, but keeping track of the last time a check was performed would require extra config data, etc. (like the proposed client.conf).

In general, it seems to me that it would make more sense to detect actual errors (e.g. ingress manifest does not apply cleanly), and perhaps recommend upgrading if these occur, rather than constantly pester the user about updates which may have no relevance.

@adamhgriffith-uofu
Copy link
Contributor Author

From today's team meeting, it was decided to leave this up for discussion later down the line, bringing Chris' good points into a future solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants