Support of volumeMounts in sidecars#1759
Open
Sgitario wants to merge 1 commit intoRedHatInsights:masterfrom
Open
Support of volumeMounts in sidecars#1759Sgitario wants to merge 1 commit intoRedHatInsights:masterfrom
Sgitario wants to merge 1 commit intoRedHatInsights:masterfrom
Conversation
Sgitario
added a commit
to RedHatInsights/rhsm-subscriptions
that referenced
this pull request
Apr 8, 2026
…#5950) Jira issue: SWATCH-3960 ## Description The swatch-api-nginx-proxy service was never configured to send logs to Splunk HEC. To start doing this, we will configure the existing otel collector sidecar to send the logs: - The service will send the logs via syslog (in the future, it will be using file logs, but at the moment, Clowder does not support mounting volumes that would allow us to process files: RedHatInsights/clowder#1759 to add this feature request). - The otel collector sidecar will mount a new configmap that includes logging. In ephemeral, it will simply log the statements to stdout. In stage, it will use the configmap from https://gitlab.cee.redhat.com/rhsm/splunk-otel-collector/-/merge_requests/11. ## Testing Steps: 1. Deploy all our services using the bonfire command from the iqe pipelines (important to use the same template ref). 2. Deploy the new configmap that includes the logging via syslog (UDP) from https://gitlab.cee.redhat.com/rhsm/splunk-otel-collector/-/blob/main/deploy/splunk-otel-collector.yaml?ref_type=heads#L417 3. Delete the swatch-api-nginx-proxy pods, so these are recreated.
Contributor
|
/test-e2e |
bsquizz
previously approved these changes
Apr 14, 2026
Contributor
|
One of the new kuttl tests failed if you're able to take a look:
|
ff0592e to
3c912c6
Compare
Contributor
Author
|
/test-e2e |
|
@Sgitario Sorry, you don't have permission to trigger E2E tests. This command is restricted to repository maintainers. |
Contributor
Author
|
@bsquizz I don't have permission to run the e2e tests. Can you trigger it please? |
Contributor
|
/test-e2e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Clowder
SidecarAPI currently does not support customvolumeMounts, which prevents use cases like sharing a log directory between the main container and the otel-collector sidecar. This is needed for file-based log collection (filelogreceiver), where the application writes logs to a shared volume and the otel-collector tails them for forwarding to Splunk/SumoLogic.The
filelogapproach is preferred over alternatives likesyslogortcplogbecause it requires zero coupling with the application — the app just writes to a file (which frameworks like Spring Boot, Quarkus, and NGINX already support natively), and the collector picks them up independently. It's also resilient to collector restarts since logs persist in the shared volume.Changes
volumeMountsfield ([]v1.VolumeMount) to theSidecarstruct inclowdapp_types.go. Fully backward compatible (omitempty).getOtelCollector().readOnly), nil sidecar, and empty slice.test-sidecars-volume-mountssuite with 3 scenarios: baseline (no custom mounts), single shared volume, and multiple volumes.Test plan
go test ./controllers/cloud.redhat.com/providers/sidecar/... -v)make kuttl KUTTL_TEST="--test=test-sidecars-volume-mounts")