Add pull_secret_multiple_sync_failures service log template #400
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
This PR adds a new service log template to support aggregated failure reporting in the
osdctl cluster validate-pull-secret-extcommand.Related JIRA
SREP-3365
What's being added
New template:
osd/pull_secret_multiple_sync_failures.jsonThis template will be used when the
validate-pull-secret-extcommand detects issues in multiple (2+) authentication sources. Instead of sending separate service logs for each failure, the command will aggregate them into a single service log with a comma-separated list of affected auth sources.Template details
${FAILURE_LIST}- comma-separated list of authentication sources with issuesExample usage
When multiple auth sources have issues (e.g.,
cloud.openshift.com, quay.io, registry.redhat.io), the service log will read:Why one template instead of two
The generic wording "Issues were detected" covers all failure scenarios without needing separate templates for email mismatches vs. structural/sync failures.
Follow-up work
After this template is merged, Phase 2 will implement the code changes in
openshift/osdctlto use this template for aggregated failure reporting.Created with assistance from Claude 🤖