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

[upmeter] Fix numbers for string fields in yaml for UpmeterHookProbe CR template #997

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

shvgn
Copy link
Contributor

@shvgn shvgn commented Mar 2, 2022

Description

Upmeter agent ID is generated as a string containing hexadecimal number. It is used as UpmeterHookProbe custom resource name and label value. The manifest for the CR is generated from text YAML template, there the ID is substituted unquoted.

When the ID consists of digits only, it is considered a number. The resulting manifests is rendered invalid on the creation of the CR object. This results in the downtime of "deckhouse/cluster-configuration" probe.

Why do we need it, and what problem does it solve?

Fixes #994 , which is a floating bug.

Changelog entries

section: upmeter
type: fix 
summary: Fixed floating bug causing false downtime of deckhouse/cluster-configuration probe 

@shvgn shvgn requested a review from nabokihms March 2, 2022 11:52
@shvgn shvgn self-assigned this Mar 2, 2022
@shvgn shvgn added this to the v1.30.12 milestone Mar 2, 2022
@nabokihms nabokihms added the area/monitoring Pull requests that update monitoring modules label Mar 2, 2022
@nabokihms nabokihms merged commit 6a6335a into main Mar 2, 2022
@nabokihms nabokihms deleted the upmeter-crd-fix-template branch March 2, 2022 12:21
@konstantin-axenov konstantin-axenov added the status/backport Backport pr label Mar 2, 2022
@z9r5
Copy link
Member

z9r5 commented Mar 5, 2022

Cherry-picked into release-1.30

@z9r5 z9r5 removed the status/backport Backport pr label Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/monitoring Pull requests that update monitoring modules
Projects
None yet
4 participants