diff options
Diffstat (limited to 'client/go/internal/vespa/target_cloud.go')
-rw-r--r-- | client/go/internal/vespa/target_cloud.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/go/internal/vespa/target_cloud.go b/client/go/internal/vespa/target_cloud.go index 31108dae51f..708810061d2 100644 --- a/client/go/internal/vespa/target_cloud.go +++ b/client/go/internal/vespa/target_cloud.go @@ -42,9 +42,10 @@ type cloudTarget struct { } type deploymentEndpoint struct { - Cluster string `json:"cluster"` - URL string `json:"url"` - Scope string `json:"scope"` + Cluster string `json:"cluster"` + URL string `json:"url"` + Scope string `json:"scope"` + AuthMethod string `json:"authMethod"` } type deploymentResponse struct { @@ -370,6 +371,9 @@ func (t *cloudTarget) discoverEndpoints(timeout time.Duration) (map[string]strin if endpoint.Scope != "zone" { continue } + if endpoint.AuthMethod == "token" { + continue + } urlsByCluster[endpoint.Cluster] = endpoint.URL } return true, nil |