From fea5f1df82622572d44b9c3e346de64331997042 Mon Sep 17 00:00:00 2001 From: pranshi06 <85474619+pranshi06@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:21:39 +0530 Subject: [PATCH 1/2] Add SQL Server and Snowflake registration automation releases folder (#235) --- .../releases/v0.1.0/connector-packaging.json | 11 +++++++++++ .../releases/v0.1.0/connector-packaging.json | 11 +++++++++++ .../releases/v0.1.1/connector-packaging.json | 11 +++++++++++ .../releases/v0.1.2/connector-packaging.json | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100644 registry/hasura/snowflake/releases/v0.1.0/connector-packaging.json create mode 100644 registry/hasura/sqlserver/releases/v0.1.0/connector-packaging.json create mode 100644 registry/hasura/sqlserver/releases/v0.1.1/connector-packaging.json create mode 100644 registry/hasura/sqlserver/releases/v0.1.2/connector-packaging.json diff --git a/registry/hasura/snowflake/releases/v0.1.0/connector-packaging.json b/registry/hasura/snowflake/releases/v0.1.0/connector-packaging.json new file mode 100644 index 00000000..55a37c1c --- /dev/null +++ b/registry/hasura/snowflake/releases/v0.1.0/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.0", + "uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/snowflake%2Fv0.1.0/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "564757bc44bebe56560fe21a1306507d160caf084d69556bded4a7ed392e1b41" + }, + "source": { + "hash": "145792746281b606bcef2dfe20d1f0ad69efe01e" + } +} diff --git a/registry/hasura/sqlserver/releases/v0.1.0/connector-packaging.json b/registry/hasura/sqlserver/releases/v0.1.0/connector-packaging.json new file mode 100644 index 00000000..f0200516 --- /dev/null +++ b/registry/hasura/sqlserver/releases/v0.1.0/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.0", + "uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.0/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "5f47a1df3055b694ffaf13058e201ac0fa83db53ce2044cd15eeaaa841565cb4" + }, + "source": { + "hash": "e26d6bd1a22540dcf5c5b29460260c2d23ff2657" + } +} diff --git a/registry/hasura/sqlserver/releases/v0.1.1/connector-packaging.json b/registry/hasura/sqlserver/releases/v0.1.1/connector-packaging.json new file mode 100644 index 00000000..d1836ef5 --- /dev/null +++ b/registry/hasura/sqlserver/releases/v0.1.1/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.1", + "uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.1/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "340f11a2dbc180af838327c09949ac0dc14c94eb87b0d6b5a28c765ec928b1a9" + }, + "source": { + "hash": "638a2b608f7a9c4625de7df35c61c909d2ce16b1" + } +} diff --git a/registry/hasura/sqlserver/releases/v0.1.2/connector-packaging.json b/registry/hasura/sqlserver/releases/v0.1.2/connector-packaging.json new file mode 100644 index 00000000..7757b0bd --- /dev/null +++ b/registry/hasura/sqlserver/releases/v0.1.2/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.2", + "uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.2/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "102c642b2e0ddea1eaa471c5189ecd3423a20f91ad83995e09f9d4721dd85732" + }, + "source": { + "hash": "bc0fd3d126f6c142587e014aa900fc6bc90cd59d" + } +} From e67621a20fe1ba2ba086a9484068bdf38913bbf4 Mon Sep 17 00:00:00 2001 From: Karthikeyan Chinnakonda Date: Wed, 14 Aug 2024 02:09:52 +0530 Subject: [PATCH 2/2] Add releases folder for `azure-cosmos` and `mysql` (#233) --- registry-automation/cmd/ci.go | 12 ++++++++-- registry/hasura/azure-cosmos/metadata.json | 23 +------------------ .../releases/v0.1.2/connector-packaging.json | 11 +++++++++ .../releases/v0.1.3/connector-packaging.json | 11 +++++++++ .../releases/v0.1.0/connector-packaging.json | 11 +++++++++ .../releases/v0.1.0/connector-packaging.json | 11 +++++++++ 6 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 registry/hasura/azure-cosmos/releases/v0.1.2/connector-packaging.json create mode 100644 registry/hasura/azure-cosmos/releases/v0.1.3/connector-packaging.json create mode 100644 registry/hasura/mysql/releases/v0.1.0/connector-packaging.json create mode 100644 registry/hasura/oracle/releases/v0.1.0/connector-packaging.json diff --git a/registry-automation/cmd/ci.go b/registry-automation/cmd/ci.go index d80dd6e6..9bfdbf9c 100644 --- a/registry-automation/cmd/ci.go +++ b/registry-automation/cmd/ci.go @@ -446,7 +446,7 @@ func buildRegistryPayload( uploadedConnectorDefinitionTgzUrl string, ) (ConnectorVersion, error) { var connectorVersion ConnectorVersion - var connectorVersionDockerImage string + var connectorVersionDockerImage string = "" connectorVersionPackagingDefinition, ok := connectorVersionMetadata["packagingDefinition"].(map[interface{}]interface{}) if !ok { return connectorVersion, fmt.Errorf("could not find the 'packagingDefinition' of the connector %s version %s in the connector's metadata", connectorName, version) @@ -483,11 +483,19 @@ func buildRegistryPayload( connectorVersionType = ManagedDockerBuild } + var connectorVersionImage *string + + if connectorVersionDockerImage == "" { + connectorVersionImage = nil + } else { + connectorVersionImage = &connectorVersionDockerImage + } + connectorVersion = ConnectorVersion{ Namespace: connectorNamespace, Name: connectorName, Version: version, - Image: &connectorVersionDockerImage, + Image: connectorVersionImage, PackageDefinitionURL: uploadedConnectorDefinitionTgzUrl, IsMultitenant: connectorInfo.HubRegistryConnector[0].MultitenantConnector != nil, Type: connectorVersionType, diff --git a/registry/hasura/azure-cosmos/metadata.json b/registry/hasura/azure-cosmos/metadata.json index 46b72c45..74caad96 100644 --- a/registry/hasura/azure-cosmos/metadata.json +++ b/registry/hasura/azure-cosmos/metadata.json @@ -15,28 +15,7 @@ "is_verified": true, "is_hosted_by_hasura": true, "packages": [ - { - "version": "0.1.3", - "uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz", - "checksum": { - "type": "sha256", - "value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7" - }, - "source": { - "hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905" - } - }, - { - "version": "0.1.2", - "uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz", - "checksum": { - "type": "sha256", - "value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7" - }, - "source": { - "hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0" - } - } + ], "source_code": { "is_open_source": true, diff --git a/registry/hasura/azure-cosmos/releases/v0.1.2/connector-packaging.json b/registry/hasura/azure-cosmos/releases/v0.1.2/connector-packaging.json new file mode 100644 index 00000000..4feb205e --- /dev/null +++ b/registry/hasura/azure-cosmos/releases/v0.1.2/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.2", + "uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz", + "checksum": { + "type": "sha256", + "value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7" + }, + "source": { + "hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0" + } +} diff --git a/registry/hasura/azure-cosmos/releases/v0.1.3/connector-packaging.json b/registry/hasura/azure-cosmos/releases/v0.1.3/connector-packaging.json new file mode 100644 index 00000000..3d4242c9 --- /dev/null +++ b/registry/hasura/azure-cosmos/releases/v0.1.3/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.3", + "uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz", + "checksum": { + "type": "sha256", + "value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7" + }, + "source": { + "hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905" + } +} diff --git a/registry/hasura/mysql/releases/v0.1.0/connector-packaging.json b/registry/hasura/mysql/releases/v0.1.0/connector-packaging.json new file mode 100644 index 00000000..ef79399f --- /dev/null +++ b/registry/hasura/mysql/releases/v0.1.0/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.0", + "uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/mysql%2Fv0.1.0/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "09b51f9be725099345159880d21efb712776bfd09291a0daa81d7e7b1418ca2c" + }, + "source": { + "hash": "145792746281b606bcef2dfe20d1f0ad69efe01e" + } +} diff --git a/registry/hasura/oracle/releases/v0.1.0/connector-packaging.json b/registry/hasura/oracle/releases/v0.1.0/connector-packaging.json new file mode 100644 index 00000000..535615bc --- /dev/null +++ b/registry/hasura/oracle/releases/v0.1.0/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.0", + "uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/oracle%2Fv0.1.0/package.tar.gz", + "checksum": { + "type": "sha256", + "value": "0d837408a213f55df34062b96a2ac7fabcf8c61891918b6b2754d90fc61dd24c" + }, + "source": { + "hash": "145792746281b606bcef2dfe20d1f0ad69efe01e" + } +}