-
Notifications
You must be signed in to change notification settings - Fork 11
Generate connector.yaml #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2cfa09c
Generate connector.yaml
hariso bb04c67
Add connector.yaml
hariso 54b3f16
generate connector.yaml
hariso 0f306c0
Set version
hariso a485549
more updates
hariso 511bc21
make build
hariso b96f73e
update sdk
hariso 32e84b2
Migrate to specgen
hariso 3407604
Merge branch 'main' into haris/specgen
hariso b5bfdfe
go.sum fix
hariso 6e1088e
lint
hariso 91914bf
Merge branch 'migrate-to-specgen' into haris/specgen
hariso 24f5c86
Upgrade SDK
hariso f44a634
Update connector.yaml
hariso 91a198c
validate generated files
hariso b9872ab
Merge branch 'haris/specgen' of github.com:ConduitIO/conduit-connecto…
hariso 1e6ae79
rename
hariso 179ac45
update sdk, use conn-sdk-cli
lovromazgon 0aee455
use readmegen
lovromazgon 79a6ecb
remove local replacement
lovromazgon 5c380d4
add phony generate
lovromazgon 3ee4187
respect logrepl.withAvroSchema
lovromazgon 646634d
use latest sdk from main
lovromazgon 62c69a7
inline errors
hariso 42fdf69
Merge branch 'haris/specgen' of github.com:ConduitIO/conduit-connecto…
hariso 3c67968
receivers
hariso 88bf253
upgrade conduit-connector-sdk to v0.13.0
lovromazgon 650007e
inline errors
lovromazgon 337cf49
Merge branch 'main' into haris/specgen
lovromazgon b09e561
make generate
lovromazgon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,211 @@ | ||
| version: "1.0" | ||
| specification: | ||
| name: postgres | ||
| summary: A PostgreSQL source and destination plugin for Conduit. | ||
| description: "" | ||
| version: v0.10.1-11-g0f306c0-dirty | ||
| author: Meroxa, Inc. | ||
| source: | ||
| parameters: | ||
| - name: url | ||
| description: URL is the connection string for the Postgres database. | ||
| type: string | ||
| default: "" | ||
| validations: | ||
| - type: required | ||
| value: "" | ||
| - name: cdcMode | ||
| description: CDCMode determines how the connector should listen to changes. | ||
| type: string | ||
| default: auto | ||
| validations: | ||
| - type: inclusion | ||
| value: auto,logrepl | ||
| - name: logrepl.autoCleanup | ||
| description: |- | ||
| LogreplAutoCleanup determines if the replication slot and publication should be | ||
| removed when the connector is deleted. | ||
| type: bool | ||
| default: "true" | ||
| validations: [] | ||
| - name: logrepl.publicationName | ||
| description: |- | ||
| LogreplPublicationName determines the publication name in case the | ||
| connector uses logical replication to listen to changes (see CDCMode). | ||
| type: string | ||
| default: conduitpub | ||
| validations: [] | ||
| - name: logrepl.slotName | ||
| description: |- | ||
| LogreplSlotName determines the replication slot name in case the | ||
| connector uses logical replication to listen to changes (see CDCMode). | ||
| type: string | ||
| default: conduitslot | ||
| validations: [] | ||
| - name: logrepl.withAvroSchema | ||
| description: |- | ||
| WithAvroSchema determines whether the connector should attach an avro schema on each | ||
| record. | ||
| type: bool | ||
| default: "false" | ||
| validations: [] | ||
| - name: sdk.batch.delay | ||
| description: Maximum delay before an incomplete batch is read from the source. | ||
| type: duration | ||
| default: "0" | ||
| validations: | ||
| - type: greater-than | ||
| value: "-1" | ||
| - name: sdk.batch.size | ||
| description: Maximum size of batch before it gets read from the source. | ||
| type: int | ||
| default: "0" | ||
| validations: | ||
| - type: greater-than | ||
| value: "-1" | ||
| - name: sdk.schema.context.enabled | ||
| description: |- | ||
| Specifies whether to use a schema context name. If set to false, no schema context name will | ||
| be used, and schemas will be saved with the subject name specified in the connector | ||
| (not safe because of name conflicts). | ||
| type: bool | ||
| default: "true" | ||
| validations: [] | ||
| - name: sdk.schema.context.name | ||
| description: |- | ||
| Schema context name to be used. Used as a prefix for all schema subject names. | ||
| If empty, defaults to the connector ID. | ||
| type: string | ||
| default: "" | ||
| validations: [] | ||
| - name: sdk.schema.extract.key.enabled | ||
| description: Whether to extract and encode the record key with a schema. | ||
| type: bool | ||
| default: "false" | ||
| validations: [] | ||
| - name: sdk.schema.extract.key.subject | ||
| description: |- | ||
| The subject of the key schema. If the record metadata contains the field | ||
| "opencdc.collection" it is prepended to the subject name and separated | ||
| with a dot. | ||
| type: string | ||
| default: key | ||
| validations: [] | ||
| - name: sdk.schema.extract.payload.enabled | ||
| description: Whether to extract and encode the record payload with a schema. | ||
| type: bool | ||
| default: "false" | ||
| validations: [] | ||
| - name: sdk.schema.extract.payload.subject | ||
| description: |- | ||
| The subject of the payload schema. If the record metadata contains the | ||
| field "opencdc.collection" it is prepended to the subject name and | ||
| separated with a dot. | ||
| type: string | ||
| default: payload | ||
| validations: [] | ||
| - name: sdk.schema.extract.type | ||
| description: The type of the payload schema. | ||
| type: string | ||
| default: avro | ||
| validations: | ||
| - type: inclusion | ||
| value: avro | ||
| - name: snapshot.fetchSize | ||
| description: Snapshot fetcher size determines the number of rows to retrieve at a time. | ||
| type: int | ||
| default: "50000" | ||
| validations: [] | ||
| - name: snapshotMode | ||
| description: SnapshotMode is whether the plugin will take a snapshot of the entire table before starting cdc mode. | ||
| type: string | ||
| default: initial | ||
| validations: | ||
| - type: inclusion | ||
| value: initial,never | ||
| - name: table | ||
| description: 'Deprecated: use `tables` instead.' | ||
| type: string | ||
| default: "" | ||
| validations: [] | ||
| - name: tables | ||
| description: |- | ||
| Tables is a List of table names to read from, separated by a comma, e.g.:"table1,table2". | ||
| Use "*" if you'd like to listen to all tables. | ||
| type: string | ||
| default: "" | ||
| validations: [] | ||
| destination: | ||
| parameters: | ||
| - name: url | ||
| description: URL is the connection string for the Postgres database. | ||
| type: string | ||
| default: "" | ||
| validations: | ||
| - type: required | ||
| value: "" | ||
| - name: key | ||
| description: Key represents the column name for the key used to identify and update existing rows. | ||
| type: string | ||
| default: "" | ||
| validations: [] | ||
| - name: sdk.batch.delay | ||
| description: Maximum delay before an incomplete batch is written to the destination. | ||
| type: duration | ||
| default: "0" | ||
| validations: [] | ||
| - name: sdk.batch.size | ||
| description: Maximum size of batch before it gets written to the destination. | ||
| type: int | ||
| default: "0" | ||
| validations: | ||
| - type: greater-than | ||
| value: "-1" | ||
| - name: sdk.rate.burst | ||
| description: |- | ||
| Allow bursts of at most X records (0 or less means that bursts are not | ||
| limited). Only takes effect if a rate limit per second is set. Note that | ||
| if `sdk.batch.size` is bigger than `sdk.rate.burst`, the effective batch | ||
| size will be equal to `sdk.rate.burst`. | ||
| type: int | ||
| default: "0" | ||
| validations: | ||
| - type: greater-than | ||
| value: "-1" | ||
| - name: sdk.rate.perSecond | ||
| description: Maximum number of records written per second (0 means no rate limit). | ||
| type: float | ||
| default: "0" | ||
| validations: | ||
| - type: greater-than | ||
| value: "-1" | ||
| - name: sdk.record.format | ||
| description: |- | ||
| The format of the output record. See the Conduit documentation for a full | ||
| list of supported formats (https://conduit.io/docs/using/connectors/configuration-parameters/output-format). | ||
| type: string | ||
| default: opencdc/json | ||
| validations: [] | ||
| - name: sdk.record.format.options | ||
| description: |- | ||
| Options to configure the chosen output record format. Options are normally | ||
| key=value pairs separated with comma (e.g. opt1=val2,opt2=val2), except | ||
| for the `template` record format, where options are a Go template. | ||
| type: string | ||
| default: "" | ||
| validations: [] | ||
| - name: sdk.schema.extract.key.enabled | ||
| description: Whether to extract and decode the record key with a schema. | ||
| type: bool | ||
| default: "true" | ||
| validations: [] | ||
| - name: sdk.schema.extract.payload.enabled | ||
| description: Whether to extract and decode the record payload with a schema. | ||
| type: bool | ||
| default: "true" | ||
| validations: [] | ||
| - name: table | ||
| description: Table is used as the target table into which records are inserted. | ||
| type: string | ||
| default: '{{ index .Metadata "opencdc.collection" }}' | ||
| validations: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.