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

Sync container logs #50

Open
wants to merge 12 commits into
base: next
Choose a base branch
from
Open

Sync container logs #50

wants to merge 12 commits into from

Conversation

jrauh01
Copy link
Collaborator

@jrauh01 jrauh01 commented Nov 22, 2023

Add feature to sync container logs to database.

@jrauh01 jrauh01 self-assigned this Nov 22, 2023
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Nov 22, 2023
schema/mysql/schema.sql Outdated Show resolved Hide resolved
pkg/schema/container.go Outdated Show resolved Hide resolved
cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
pkg/sync/spreader.go Outdated Show resolved Hide resolved
pkg/sync/spreader.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
Copy link
Member

@lippserd lippserd left a comment

Choose a reason for hiding this comment

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

In addition to the requested changes please also double check your doc comments after reading https://tip.golang.org/doc/comment carefully.

cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
schema/mysql/schema.sql Outdated Show resolved Hide resolved
schema/mysql/schema.sql Outdated Show resolved Hide resolved
schema/mysql/schema.sql Outdated Show resolved Hide resolved
pkg/schema/log.go Outdated Show resolved Hide resolved
pkg/schema/log.go Outdated Show resolved Hide resolved
pkg/schema/log.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
cmd/icinga-kubernetes/main.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
@jrauh01 jrauh01 changed the title Add feature to sync container logs to database Sync container logs Nov 30, 2023
Copy link
Member

@lippserd lippserd left a comment

Choose a reason for hiding this comment

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

In general I think it makes sense to move the sync option handling to sync/options.go and only export the With...() functions. NewSyncOptions() and SyncOptions must not be exported as they are only used within the sync package.

pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/channel-mux.go Show resolved Hide resolved
pkg/sync/channel-mux.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/logs.go Outdated Show resolved Hide resolved
pkg/sync/sync.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants