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 a new chectl command server:deploy and change server:start behavior #18015

Closed
2 tasks done
RickJWagner opened this issue Oct 1, 2020 · 4 comments
Closed
2 tasks done
Labels
area/chectl Issues related to chectl, the CLI of Che area/ux Issues related to User Experience Design kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@RickJWagner
Copy link
Contributor

RickJWagner commented Oct 1, 2020

Is your enhancement related to a problem? Please describe.

The enhnancement is related to the CLI tooling.

Describe the solution you'd like

'server:start' should be renamed 'server:deploy' and server:start/stop should work only if CRW is already deployed

  • check if an existing deployment exists, and if not, echo error: no such deployment exists, did you mean to run server:deploy?"
  • if a deployment DOES exist already, running server:start would check for existing deployment, and if not running, would spool up pods or echo a warning saying "deployment is already started"
  • Existing functionality in :start would move to :deploy, and new :start command would just spool pods up if not running
  • New :stop command would spool pods down if running or echo warning saying “deployment is already stopped”

Describe alternatives you've considered

Continue usage of current CLI tooling

Additional context

These suggestions originated with a team call 01 Oct 2020.

@RickJWagner RickJWagner added the kind/enhancement A feature request - must adhere to the feature request template. label Oct 1, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Oct 1, 2020
@nickboldt nickboldt added area/ux Issues related to User Experience Design area/chectl Issues related to chectl, the CLI of Che team/deploy severity/P1 Has a major impact to usage or development of the system. labels Oct 1, 2020
@nickboldt nickboldt added this to the 7.20 milestone Oct 1, 2020
@nickboldt
Copy link
Contributor

Hoping we can tackle this during the next sprint for 7.20.x / 7.21. It would be great to get this refactoring done for CRW 2.5 since that's hopefully the release where we support crwctl for OCP 4.x.

@tolusha tolusha removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. team/deploy labels Oct 2, 2020
@tolusha tolusha mentioned this issue Oct 2, 2020
50 tasks
@tolusha
Copy link
Contributor

tolusha commented Oct 2, 2020

'server:start' should be renamed 'server:deploy' and server:start/stop should work only if CRW is already deployed

Unfortunately that's barely possible. All users and documentation refers to server:start command.
What I can do is to add server:deploy alias to server:start command and improve messages for start/stop commands for cases you mentioned.

@tolusha tolusha modified the milestones: 7.20, 7.21 Oct 2, 2020
@l0rd l0rd changed the title User-Experience Tuneup for chectl Add a new chectl command server:deploy and change server:start behavior Oct 5, 2020
@l0rd
Copy link
Contributor

l0rd commented Oct 5, 2020

@tolusha what about the following plan:

  • SPRINT N:
    • add a new command server:deploy as an alias of server:start
    • add a deprecation warning on server:start
    • communicate on che-dev
    • update documentation
  • SPRINT N+1:
    • update automated tests
  • SPRINT N+2:
    -server:start fails if che server is not deployed

@tolusha
Copy link
Contributor

tolusha commented Oct 6, 2020

@l0rd
ok, It make sense for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chectl Issues related to chectl, the CLI of Che area/ux Issues related to User Experience Design kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants