Skip to content

Commit

Permalink
Rewrite connector-metadata.yaml "update" to "Dockerized" format, bump…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
GavinRay97 committed Jan 6, 2025
1 parent 5cd7850 commit 1abb4d0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 30 deletions.
15 changes: 5 additions & 10 deletions ndc-connector-mysql/.hasura-connector/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -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]
15 changes: 5 additions & 10 deletions ndc-connector-oracle/.hasura-connector/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -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]
16 changes: 6 additions & 10 deletions ndc-connector-snowflake/.hasura-connector/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -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]


0 comments on commit 1abb4d0

Please sign in to comment.