-
Notifications
You must be signed in to change notification settings - Fork 97
feat: Create Splunk target implementation and CRD #838
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
base: main
Are you sure you want to change the base?
Conversation
Users who want to consume the splunk target will need to use splunk HTTP Event Collector (HEC) in their instances Signed-off-by: aerosouund <[email protected]>
Signed-off-by: aerosouund <[email protected]>
Pull Request Test Coverage Report for Build 14067215543Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Signed-off-by: aerosouund <[email protected]>
pkg/target/factory/factory.go
Outdated
@@ -827,6 +870,14 @@ func (f *TargetFactory) mapSecretValues(config any, ref, mountedSecret string) { | |||
c.Config.Channel = values.Channel | |||
} | |||
|
|||
case *v1alpha1.Config[v1alpha1.SplunkOptions]: | |||
if values.Webhook != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are checking for Webhook and setting Host, you should adopt test cases for splunk to ensure its working
Splunk should also support a batch API, you could also implement the BatchSend API in this case. |
- Add the splunk creation method in the factory interface - fix MapConfigTargets function typo - map splunk to a target from the config file - test secret mapping for splunk - implement batch send api on splunk Signed-off-by: aerosouund <[email protected]>
Signed-off-by: aerosouund <[email protected]>
Users who want to consume the splunk target will need to use splunk HTTP Event Collector (HEC) in their instances