I am attempting to build a hierarchy of kustomize objects that span multiple Azure Devops git repositories. I have a number of microservices whose configurations can be condensed into a small number of base yaml files. I'd like to have each microservice repo have it's own yaml files that are versioned with it as the application is updated.
I know that kustomize uses go-getter (hashicorp) to pull resources if they are given a base of a git url. However, I cannot figure out the correct syntax to use with Azure Devops Git to pull down a subfolder with a kustomize file in it. The problem is not with authentication, but in the way Azure devops likes to path the subfolders. It likes to make them a url variable instead of being in the path.
Here are some examples I've tried:
go-getter https://<pat-user>:<pat-token>@<tenant>.visualstudio.com/<project>/_git/<repo>/tree/master/base//<folder-i-want> .
go-getter https://<pat-user>:<pat-token>@dev.azure.com/<tenant>/<project>/_git/<repo>/trees/master/base//<folder-i-want> .
go-getter https://<pat-user>:<pat-token>@dev.azure.com/<tenant>/<project>/_git/<repo>/base//<folder-i-want>?version=test-tag .
All result in a 404 from Azure Devops.
I believe that I need to know the normal "git" way of referencing a subfolder in Azure Devops.