aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2023-11-07 11:28:18 +0100
committerGitHub <noreply@github.com>2023-11-07 11:28:18 +0100
commit8e983a117284a7e965e27e3a5c0a07cdbcb7d4cd (patch)
tree16a4bc8e0c7b544a70305c446c17535880a43239
parent2fc631ac7e05e728b0bca098a4bbc2cec78c2522 (diff)
parent270a494ec39c09c5edfe277dc753adbb0ab36872 (diff)
Merge pull request #29262 from vespa-engine/jonmv/vespa-cli-does-not-support-tokensv8.255.38
Filter out token endpoints in Vespa CLI MERGEOK
-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..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