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

fix(HMS-3731): workaround for cloudwatch type field #162

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

avisiedo
Copy link
Contributor

This workaround would fix the cloudwatch situation, so
the type field is filled with "coudwatch" string when
the cloudwatch values are merged on the service configuration.

When RedHatInsights/clowder#627 PR
is merged, we can revert the first commit of this PR.

@avisiedo avisiedo requested a review from cryptomilk March 20, 2024 08:45
@avisiedo avisiedo self-assigned this Mar 20, 2024
Temporary workaround that fill type with "cloudwatch"
string when we fill the cloudwatch configuration. Once
the referenced PR is merged, we can remove

See: RedHatInsights/clowder#627

Signed-off-by: Alejandro Visiedo <[email protected]>
Add assert to check the value when cloudwatch is used is
"cloudwatch".

Signed-off-by: Alejandro Visiedo <[email protected]>
@avisiedo avisiedo force-pushed the hms-3731-fix-cloudwatch branch from 4cb812e to 9190a58 Compare March 20, 2024 08:54
@avisiedo avisiedo requested review from tiran and cryptomilk March 20, 2024 09:07
Copy link
Contributor

@cryptomilk cryptomilk left a comment

Choose a reason for hiding this comment

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

LGTM

@cryptomilk
Copy link
Contributor

I've talked to the author of the clowder fix (psav). They discovered two years ago, that they always set logging.type to "" instead of "cloudwatch". However a lot of projects already check for "" as the cloudwatch case so they didn't commit to fix it. He said all projects would have to change.

However it is a bug and should be fixed, but in the meantime a lot more projects use cloudwatch and the number of projects implementing a workaround increases. So the question is if them will ever fix it or not. If they don't fix it, they should check all the documentations and remove logging.type = "cloudwatch".

I think that the current implementation is the best workaround whatever they decide :-)

Copy link
Collaborator

@tiran tiran left a comment

Choose a reason for hiding this comment

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

LGTM, please rebase and squash all commits into a single commit.

@avisiedo avisiedo merged commit 1c5a286 into podengo-project:main Apr 2, 2024
1 check passed
@avisiedo
Copy link
Contributor Author

avisiedo commented Apr 2, 2024

My apologize, I realized about squash the commits when already pressed the merge button.

@avisiedo avisiedo deleted the hms-3731-fix-cloudwatch branch April 2, 2024 10:44
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.

3 participants