Skip to content

Minor improvements of CLI output #117

Open

Description

@tschale

What is the new feature about?

  • When no deckfile is specified, i.e. running with deck get ., the output is [INFO] Reading Deckfile: .. This could be changed to [INFO] Reading Deckfile: deck.yaml, as deck.yaml is the default.
  • When a local cluster already exists, the output of get is [INFO] Cluster already exists, starting it. This could be enhanced so that the clustername is included, such as it is when a new cluster is created.

Why would such a feature be important to you?

Minor output improvements in the vein of "explicit is more implicit"

Anything else we need to know?

No response

Activity

  1. added
    enhancement
    on Nov 9, 2022
  2. buschNT commented on Nov 10, 2022

    @buschNT
    Contributor

    This issue was solved with version 0.11.1

  3. tschale commented on Nov 10, 2022

    @tschale
    CollaboratorAuthor

    I can confirm the first one, however when running deck get when the cluster already exists, I still get following output:

    [INFO] Cluster already exists, starting it
    
  4. buschNT commented on Nov 10, 2022

    @buschNT
    Contributor

    I can confirm the first one, however when running deck get when the cluster already exists, I still get following output:

    True, furthermore the [INFO] Reading Deckfile: . still exists when there is no deck.yml in the cwd.

  5. added this to the 0.X.X milestone on Nov 11, 2022
  6. tschale commented on Nov 14, 2022

    @tschale
    CollaboratorAuthor

    I found another small thing, what do you think about adding http:// to the ingress output? Currently it's the following:

    [INFO] Ingress: foo.127.0.0.1.nip.io -> /admin
    [INFO] Ingress: foo.127.0.0.1.nip.io -> /
    

    If it would be http://foo.127.0.0.1.nip.io it would be directly clickable from the terminal. Of course one might have https configured, however I would expect there to be a redirect to https from http.

  7. tschale commented on Nov 23, 2022

    @tschale
    CollaboratorAuthor

    Just another thing that I realized. I was using the -I flag to install the deckfile-resources into my current kubecontext, which was a GKE cluster. In the output I also got [INFO] Cluster already exists, starting it.

    When using the -I flag, getdeck won't be able to start a cluster, or would it? Shall we change the output of that line completely, or even omit it when using -I?

    Also when an error occurs, I get the output [ERROR] There was an error installing the workload. Now removing the cluster.. What happens when using the -I flag, as my cluster still exists, I assume that we don't actually try to remove a cluster. The second sentence of the error-message could just be removed in such a case.

  8. added a commit that references this issue on Mar 24, 2023
  9. self-assigned this
    on Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions