Skip to content

Commit dce9649

Browse files
Revert connection cosmodb (#3262)
1 parent 0b80447 commit dce9649

16 files changed

+22
-37
lines changed

cmd/lint/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ var vocabWords = []string{
233233
"configs",
234234
"consumer.config",
235235
"confluent_jdbc",
236-
"cosmosdb",
237236
"couchbase",
238237
"cpp",
239238
"crl",

pkg/flink/utils.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package flink
22

33
var (
4-
ConnectionTypes = []string{"openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb"}
4+
ConnectionTypes = []string{"openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server"}
55
ConnectionTypeSecretMapping = map[string][]string{
66
"openai": {"api-key"},
77
"azureml": {"api-key"},
@@ -18,11 +18,10 @@ var (
1818
"confluent_jdbc": {"username", "password"},
1919
"rest": {"username", "password", "token", "token-endpoint", "client-id", "client-secret", "scope"},
2020
"mcp_server": {"username", "password", "api-key", "token", "token-endpoint", "client-id", "client-secret", "scope", "sse-endpoint", "transport-type"},
21-
"cosmosdb": {"api-key"},
2221
}
2322

2423
ConnectionSecretTypeMapping = map[string][]string{
25-
"api-key": {"openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", "cosmosdb"},
24+
"api-key": {"openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server"},
2625
"aws-access-key": {"bedrock", "sagemaker"},
2726
"aws-secret-key": {"bedrock", "sagemaker"},
2827
"aws-session-token": {"bedrock", "sagemaker"},
@@ -54,7 +53,6 @@ var (
5453
"a2a": {},
5554
"rest": {},
5655
"mcp_server": {},
57-
"cosmosdb": {"api-key"},
5856
}
5957

6058
ConnectionOneOfRequiredSecretsMapping = map[string][][]string{

test/fixtures/output/flink/connection/create-help.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1111
Flags:
1212
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1313
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
14-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
14+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1515
--endpoint string REQUIRED: Specify endpoint for the connection.
16-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
16+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1717
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1818
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1919
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-a2a-missing-required-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-a2a-mutually-exclusive-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-cosmosdb.golden

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/fixtures/output/flink/connection/create/create-mcp_server-missing-required-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-mcp_server-mutually-exclusive-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-missing-required-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

test/fixtures/output/flink/connection/create/create-rest-missing-required-secret.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
1010
Flags:
1111
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
1212
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
13-
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", or "cosmosdb".
13+
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
1414
--endpoint string REQUIRED: Specify endpoint for the connection.
15-
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
15+
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
1616
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
1717
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
1818
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".

0 commit comments

Comments
 (0)