I currently have something like this in my kubeconfig
exec:
apiVersion: client.authentication.k8s.io/v1
command: PATH_DETERMINED_VIA_BINARY/token_generator
args:
- --ACCESS_TOKEN
interactiveMode: Never
provideClusterInfo: false
My question is , in the above the PATH_DETERMINED_VIA_BINARY is obtained by running a binary called tginfo
like this
sudo tginfo path token --> This will return a path (like usr/lib/000012/)
Now this is the path that will contain the binary token_generator
that is used in the command above. My question is how do I call tginfo
binary to obtain a part of the path that will be used in the command ?