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

Consolidate file read to a single function #761

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

ygalblum
Copy link
Contributor

@ygalblum ygalblum commented Dec 16, 2024

Type of change

  • Refactor
  • Bug fix

Description

Create a single GetReader function for all sources
Adjust all Reader operations to use the new function
Adjust APIs where needed
Remove the redundant embedConfig flag from Prometheus and Alert Manager
Make the EmbedFS field a pointer to allow simple check

Related Tickets & Documents

When using via kube-burner-ocp patch jobType could not read from the embedded file system.

Create a single GetReader function for all sources
Adjust all Reader operations to use the new function
Adjust APIs where needed
Remove the redundant embedConfig flag from Prometheus and Alert Manager
Make age EmbedFS field a pointer to allow simple check

Signed-off-by: Ygal Blum <[email protected]>
@ygalblum ygalblum marked this pull request as ready for review December 24, 2024 14:54
@ygalblum ygalblum changed the title Consolidate reader Consolidate file read to a single function Dec 24, 2024
@rsevilla87 rsevilla87 self-requested a review December 31, 2024 12:21
Copy link
Member

@rsevilla87 rsevilla87 left a comment

Choose a reason for hiding this comment

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

Thanks!, good addition!

@rsevilla87 rsevilla87 merged commit 42b98e0 into kube-burner:main Dec 31, 2024
8 checks passed
@ygalblum ygalblum deleted the consolidate-reader branch December 31, 2024 19:51
rsevilla87 added a commit that referenced this pull request Jan 3, 2025
## Type of change

- [ ] Refactor
- [ ] New feature
- [x] Bug fix
- [ ] Optimization
- [ ] Documentation Update

## Description

Reading profiles from embedded was not working since
#761

## Related Tickets & Documents

- Related Issue #
- Closes #

Signed-off-by: Raul Sevilla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants