Skip to content

Conversation

@simlay
Copy link
Contributor

@simlay simlay commented Jun 20, 2022

This enables the connectors yamls to be thusly:

version: 0.1.0
name: my-test-mqtt
type: mqtt
topic: my-mqtt
create_topic: false
direction: source
parameters:
  param_1: "mqtt.hsl.fi"
  param_2:
    foo: bar
    bar: foo
  param_3:
    - "baz"
secrets:
  foo: bar
producer:
  linger: 1ms
  batch_size: 44
  compression: gzip
consumer:
  partition: 10

@simlay
Copy link
Contributor Author

simlay commented Jun 20, 2022

One thing that might be worth adding to this PR would be adding a top level key of smart_modules. Thoughts?

Copy link
Contributor

@tjtelan tjtelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this otherwise looks like a good change

@tjtelan
Copy link
Contributor

tjtelan commented Jun 20, 2022

One thing that might be worth adding to this PR would be adding a top level key of smart_modules. Thoughts?

My only apprehension is that we don't have a simple interface for SmartModules. We currently need to specify the type of module (map, filter, etc...)

My ideal representation of a smart_modules top-level key implies chaining behavior, and looks like this:

smart_modules:
  - my_filter
  - my_map
  - my_agg

Where the SmartModule transforms in the order it is specified, and does not require passing extra info such as what type of SmartModule.


Considering the current behavior, I would be ok with smart_module (no plural), at the top level. Something like this?

smart_module:
  name: my_filter
  type: filter

@simlay simlay added this to the 0.9.28 milestone Jun 20, 2022
@simlay
Copy link
Contributor Author

simlay commented Jun 20, 2022

Considering the current behavior, I would be ok with smart_module (no plural), at the top level. Something like this?

smart_module:
  name: my_filter
  type: filter

I think I like this the most for now.

@simlay simlay requested a review from tjtelan June 22, 2022 16:11
@simlay simlay force-pushed the add-custom-deserializer-for-connector-yaml branch from 498c759 to b513819 Compare June 22, 2022 16:13
@simlay simlay requested a review from sehz June 22, 2022 16:13
@simlay simlay force-pushed the add-custom-deserializer-for-connector-yaml branch from 7e808ef to d3e1b17 Compare June 22, 2022 20:25
Copy link

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simlay
Copy link
Contributor Author

simlay commented Jun 24, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jun 24, 2022
* Closes #2421
* Closes #2410.

This enables the connectors yamls to be thusly:
```yaml
version: 0.1.0
name: my-test-mqtt
type: mqtt
topic: my-mqtt
create_topic: false
direction: source
parameters:
  param_1: "mqtt.hsl.fi"
  param_2:
    foo: bar
    bar: foo
  param_3:
    - "baz"
secrets:
  foo: bar
producer:
  linger: 1ms
  batch_size: 44
  compression: gzip
consumer:
  partition: 10
```
@bors
Copy link

bors bot commented Jun 24, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Add custom deserializer for connector yaml [Merged by Bors] - Add custom deserializer for connector yaml Jun 24, 2022
@bors bors bot closed this Jun 24, 2022
bors bot pushed a commit to infinyon/fluvio-connectors that referenced this pull request Jun 26, 2022
This is the connectors PR to fluvio-community/fluvio#2426.

Still need to do version bumps.
bors bot pushed a commit that referenced this pull request Jun 27, 2022
bors bot pushed a commit that referenced this pull request Jun 27, 2022
bors bot pushed a commit that referenced this pull request Jun 28, 2022
This is the non breaking changes changes from #2426.
morenol pushed a commit to morenol/fluvio that referenced this pull request Jun 30, 2022
Closes fluvio-community#2437

* [x] Increment patch version in [`VERSION`](https://github.com/infinyon/fluvio/blob/master/VERSION) file
* [x] Update [`CHANGELOG`](https://github.com/infinyon/fluvio/blob/master/CHANGELOG.md) with replacement of the `UNRELEASED` date for most recent release
* [x] Add a new heading in [`CHANGELOG`](https://github.com/infinyon/fluvio/blob/master/CHANGELOG.md) with for the next release (Use heading level 2)

Add specific log_dir creation error (fluvio-community#2425)

Previous implementation simply prints:
	0: Fluvio cluster error
	1: Permission denied (os error 13)

...which gives no information regarding which operation caused the
error, or even to which path the error relates.

This commit adds an interstitial error to the chain, which prints:
	1: An error occurred creating the cluster log directory "/usr/local/var/log/fluvio"

Re-added producer config to connector yaml (fluvio-community#2444)

This is the non breaking changes changes from fluvio-community#2426.

Add VecOrString for ManagedConnectorSpec parameters

cargo fmt and clippy

Verify some portion of backward compatability

backward compatible encoding for manage connector parameters

fix serialize issue

cargo fmt

fix tests

Updates from comments

Updated watch version

Updates from comments

fix ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose producer options in connector config Allow keys and dictionaries to parameters section of connector yaml

3 participants