Skip to content

Is there a way to add a hook or replace the ui command with a pipeline? #2655

Answered by jackwilsdon
rafaeljusto asked this question in Q&A
Discussion options

You must be logged in to vote

There appears to be a ui hook you could use:

err = hook.ExecuteHooks(ctx, nil, "ui")

hooks:
  - name: pre-ui
    command: "echo before ui"
    events: ["ui"]

Returning a non-zero status code from the command causes the UI to not start:

hooks:
  - name: pre-ui
    command: "echo before ui; exit 1"
    events: ["ui"]
$ devspace ui        
info Using namespace 'default'
info Using kube context 'docker-desktop'
info Execute hook 'pre-ui' at ui
before ui
fatal in hook 'pre-ui': exit status 1

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rafaeljusto
Comment options

Comment options

You must be logged in to vote
1 reply
@rafaeljusto
Comment options

Answer selected by rafaeljusto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants