aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/vespa/target_cloud.go
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-11-07 11:06:43 +0100
committerjonmv <venstad@gmail.com>2023-11-07 11:06:43 +0100
commite4719a0a72c86cf8589d2f5691a0a1be5ac7d23a (patch)
tree83efab5f998baa476b7df9645ac475cfae413933 /client/go/internal/vespa/target_cloud.go
parent5cfeb0a3820e168e906e41769899db4cc6faebab (diff)
Filter out token endpoints in Vespa CLI
Diffstat (limited to 'client/go/internal/vespa/target_cloud.go')
-rw-r--r--client/go/internal/vespa/target_cloud.go10
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..4a6bc384bd6 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