Skip to content

docs: document remaining pulsar_source / pulsar_sink arguments in README - #205

Closed
david-streamlio wants to merge 2 commits into
streamnative:masterfrom
david-streamlio:docs/source-sink-remaining-fields
Closed

docs: document remaining pulsar_source / pulsar_sink arguments in README#205
david-streamlio wants to merge 2 commits into
streamnative:masterfrom
david-streamlio:docs/source-sink-remaining-fields

Conversation

@david-streamlio

Copy link
Copy Markdown

What

Follow-up to #204. After that PR documents secrets / custom_runtime_options / schema_type, the README property tables still omitted several other supported arguments. This PR documents the rest so every top-level argument in resource_pulsar_source.go / resource_pulsar_sink.go is represented in the README.

pulsar_source — added rows

Producer config: max_pending_messages, max_pending_messages_across_partitions, use_thread_local_producers, batch_builder, compression_type.
Crypto config: crypto_key_reader_classname, crypto_key_reader_config, encryption_keys, producer_crypto_failure_action, consumer_crypto_failure_action.

pulsar_sink — added rows

classname, dead_letter_topic, max_redeliver_count, negative_ack_redelivery_delay_ms, retain_key_ordering, sink_type.

Notes

🤖 Generated with Claude Code

david-streamlio and others added 2 commits June 5, 2026 19:10
The README's `pulsar_source` and `pulsar_sink` property tables lagged the
actual schema: `secrets` (and, for sources, `custom_runtime_options` and
`schema_type`) have been supported since v0.2.0 (PRs streamnative#96/streamnative#97) but were never
added to the README, leading users to believe credentials could only be
passed via the plaintext `configs` field.

- Add the missing `secrets`, `custom_runtime_options`, and `schema_type` rows
  to the source/sink property tables.
- Add `secrets` usage to the README examples and the runnable examples under
  examples/sources and examples/sinks, demonstrating how to keep credentials
  (GSA keys, DB passwords) out of `configs` — which is persisted in plaintext
  in the function metadata topic, `pulsar-admin ... get` output, and state.
- Add a credential-handling note explaining the SecretsProvider contract.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Follow-up to the secrets/custom_runtime_options docs fix. The README property
tables were still missing several supported arguments, leaving users unaware
of producer/crypto tuning and dead-letter handling.

- pulsar_source: add producer config (max_pending_messages,
  max_pending_messages_across_partitions, use_thread_local_producers,
  batch_builder, compression_type) and crypto config
  (crypto_key_reader_classname, crypto_key_reader_config, encryption_keys,
  producer_crypto_failure_action, consumer_crypto_failure_action) rows.
- pulsar_sink: add classname, dead_letter_topic, max_redeliver_count,
  negative_ack_redelivery_delay_ms, retain_key_ordering, and sink_type rows.

Descriptions match the schema descriptions in the resource Go files. Every
top-level argument in resource_pulsar_source.go / resource_pulsar_sink.go is
now represented in the README tables.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@david-streamlio
david-streamlio requested a review from a team as a code owner June 5, 2026 17:38
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

@david-streamlio:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions Bot added the doc-info-missing This pr needs to mark a document option in description label Jun 5, 2026
@david-streamlio

Copy link
Copy Markdown
Author

Consolidated into #204 — both changes are README-only docs fixes to the same tables, so they're easier to review as a single PR. Closing this in favor of #204.

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

Labels

doc-info-missing This pr needs to mark a document option in description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant