Maybe it's better to quote the value of -ojsonpath
Summary
the command of https://gitlab.com/charts/gitlab/blob/master/doc/installation/deployment.md#initial-login output the base64: invalid input in fish shell
Steps to reproduce
fish
kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath={.data.password} | base64 --decode ; echo
however add quote to {.data.password}
kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode ; echo
reproduce the expected behavior: the decoded password
Configuration used
only install from scratch
Current behavior
base64: invalid input
Expected behavior
decoded base64
Versions
- Chart: (tagged version | branch | hash
git rev-parse HEAD) - Platform:
- Cloud: bare-metal cloud server
- Self-hosted: kubeadm
- Kubernetes: (
kubectl version)- Client: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:46:06Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
- Server: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:36:14Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
- Helm: (
helm version)- Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
- Server: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Relevant logs
/k8s# kubectl -n gitlab get secret gitlab-gitlab-initial-root-password -ojsonpath={.data.password} | base64 --decode ; echo
base64: invalid input
Edited by zhouji