0

I am trying to set the following alias:

alias dash_token="echo $(kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}') -o json | jq -r ".data.token" | base64 -d)"

The problem is - when I run this command it executes the right side right away and assigns the result to the alias, instead of assigning the command. What am I doing wrong?

Andrey
  • 187

0 Answers0