..
Using $(..) is the recommended way of running subshells. It also is the convention used almost every place in kubernetes scripts.