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
[release-5.7] LOG-3945: Collector pods in CrashLoopBackOff with spaces in pipeline name #1961
[release-5.7] LOG-3945: Collector pods in CrashLoopBackOff with spaces in pipeline name #1961
Conversation
@Clee2691: This pull request references LOG-3945 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Clee2691, jcantrill The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
3 similar comments
/retest |
/retest |
/retest |
… pipeline has space in between the pipeline name.
/lgtm |
/hold cancel |
/retest |
@Clee2691: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
052a0e9
into
openshift:release-5.7
Description
This PR fixes the
CrashLoopBackOff
problem for the collector container when theClusterLogForwarder
spec's pipeline name contained spaces. This fix sanitizes pipeline names replacing spaces" "
, dashes-
, and dots.
with underscores_
.Example:
pipeline with space
->pipeline_with_space
pipeline.with space.dot
->pipeline_with_space_dot
In addition to the above fix, I refactored most vector output's
ComponentIDs
to use the vector helper function,FormatComponentID()
instead ofstrings.ToLower()
, to improve code readability./cc @cahartma @vparfonov
/assign @jcantrill
/cherry-pick master
Links