Skip to content
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

Support using sidecar to routing pod logs to Pulsar topics #673

Merged
merged 16 commits into from
Aug 14, 2023

Conversation

jiangpengcheng
Copy link
Member

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #663

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Support using sidecar to routing pod logs to Pulsar topics

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@github-actions github-actions bot added the doc-required This pr needs a document label Aug 3, 2023
@jiangpengcheng jiangpengcheng marked this pull request as ready for review August 4, 2023 10:14
@jiangpengcheng jiangpengcheng requested review from nlu90, freeznet and a team as code owners August 4, 2023 10:14
@@ -124,6 +124,11 @@ func (webhook *SinkWebhook) Default(ctx context.Context, obj runtime.Object) err
if r.Spec.Input.TypeClassName == "" {
r.Spec.Input.TypeClassName = "[B"
}

if r.Spec.LogTopicAgent == "" {
r.Spec.LogTopicAgent = v1alpha1.RUNTIME
Copy link
Contributor

Choose a reason for hiding this comment

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

as discussed, for connectors we should use SIDECAR since the pulsar doesn't support log-topic for connectors natively

Copy link
Member Author

Choose a reason for hiding this comment

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

@nlu90 updated

Comment on lines +60 to +61
LogTopic string `json:"logTopic,omitempty"`
LogTopicAgent LogTopicAgent `json:"logTopicAgent,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to document the relationship between these two fields.

@jiangpengcheng jiangpengcheng merged commit 55fc347 into master Aug 14, 2023
13 checks passed
@jiangpengcheng jiangpengcheng deleted the support_sidecar_log branch August 14, 2023 02:11
@Huanli-Meng Huanli-Meng added doc-added and removed doc-required This pr needs a document labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use sidecar to routing pod logs to Pulsar topics
4 participants