From 1abb4d0a7972fc806c711fd18e0a73b95b023b47 Mon Sep 17 00:00:00 2001 From: Gavin Ray Date: Mon, 6 Jan 2025 12:04:26 -0500 Subject: [PATCH] Rewrite connector-metadata.yaml "update" to "Dockerized" format, bump versions --- .../.hasura-connector/connector-metadata.yaml | 15 +++++---------- .../.hasura-connector/connector-metadata.yaml | 15 +++++---------- .../.hasura-connector/connector-metadata.yaml | 16 ++++++---------- 3 files changed, 16 insertions(+), 30 deletions(-) diff --git a/ndc-connector-mysql/.hasura-connector/connector-metadata.yaml b/ndc-connector-mysql/.hasura-connector/connector-metadata.yaml index 3b52d2c..bd413f9 100644 --- a/ndc-connector-mysql/.hasura-connector/connector-metadata.yaml +++ b/ndc-connector-mysql/.hasura-connector/connector-metadata.yaml @@ -1,16 +1,11 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: "ghcr.io/hasura/ndc-jvm-mysql:v1.0.6" + dockerImage: "ghcr.io/hasura/ndc-jvm-mysql:v1.0.8" supportedEnvironmentVariables: - name: JDBC_URL description: "The JDBC URL to connect to the database" commands: - update: | - docker run \ - -e JDBC_URL \ - -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ - -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output \ - ghcr.io/hasura/ndc-jvm-cli:v1.0.0 update \ - --database MYSQL \ - --schemas $JDBC_SCHEMAS \ - --outfile /app/output/configuration.json + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-jvm-cli:v1.0.0 + commandArgs: [update, --database, MYSQL, --schemas, $JDBC_SCHEMAS, --outfile, /etc/connector/configuration.json] \ No newline at end of file diff --git a/ndc-connector-oracle/.hasura-connector/connector-metadata.yaml b/ndc-connector-oracle/.hasura-connector/connector-metadata.yaml index 8cef111..c76bf5d 100644 --- a/ndc-connector-oracle/.hasura-connector/connector-metadata.yaml +++ b/ndc-connector-oracle/.hasura-connector/connector-metadata.yaml @@ -1,18 +1,13 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: "ghcr.io/hasura/ndc-jvm-oracle:v1.0.5" + dockerImage: "ghcr.io/hasura/ndc-jvm-oracle:v1.0.6" supportedEnvironmentVariables: - name: JDBC_URL description: "The JDBC URL to connect to the database" - name: JDBC_SCHEMAS description: "A comma-separated list of schemas to include in the metadata" commands: - update: | - docker run \ - -e JDBC_URL \ - -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ - -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output \ - ghcr.io/hasura/ndc-jvm-cli:v1.0.0 update \ - --database ORACLE \ - --schemas $JDBC_SCHEMAS \ - --outfile /app/output/configuration.json + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-jvm-cli:v1.0.0 + commandArgs: [update, --database, ORACLE, --schemas, $JDBC_SCHEMAS, --outfile, /etc/connector/configuration.json] \ No newline at end of file diff --git a/ndc-connector-snowflake/.hasura-connector/connector-metadata.yaml b/ndc-connector-snowflake/.hasura-connector/connector-metadata.yaml index 85b3c4d..c042a41 100644 --- a/ndc-connector-snowflake/.hasura-connector/connector-metadata.yaml +++ b/ndc-connector-snowflake/.hasura-connector/connector-metadata.yaml @@ -1,19 +1,15 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: "ghcr.io/hasura/ndc-jvm-snowflake:v1.0.3" + dockerImage: "ghcr.io/hasura/ndc-jvm-snowflake:v1.0.4" supportedEnvironmentVariables: - name: JDBC_URL description: "The JDBC URL to connect to the database" - name: JDBC_SCHEMAS description: "A comma-separated list of schemas to include in the metadata" commands: - update: | - docker run \ - -e JDBC_URL \ - -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ - -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output \ - ghcr.io/hasura/ndc-jvm-cli:v1.0.0 update \ - --database SNOWFLAKE \ - --schemas $JDBC_SCHEMAS \ - --outfile /app/output/configuration.json + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-jvm-cli:v1.0.0 + commandArgs: [update, --database, SNOWFLAKE, --schemas, $JDBC_SCHEMAS, --outfile, /etc/connector/configuration.json] + \ No newline at end of file