Skip to content

[v1.7.x] Label Templates: improve Random family processing#915

Merged
fgiudici merged 2 commits intorancher:v1.7.xfrom
fgiudici:v1.7.x-fix
Jun 13, 2025
Merged

[v1.7.x] Label Templates: improve Random family processing#915
fgiudici merged 2 commits intorancher:v1.7.xfrom
fgiudici:v1.7.x-fix

Conversation

@fgiudici
Copy link
Copy Markdown
Contributor

Fix checking malformed Random template vars (i.e., ${Random}) and avoid failing the whole registration when illegal Random template values are detected: in this case just log an error and skip that specific label only.

Port of #914

fgiudici added 2 commits June 13, 2025 10:22
This commit fixes the panic occurring  with a malformed Random
template label (${Random}).

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
A wrong Random label syntax causes a syntax error that fails and stops
the registration process: don't stop the registration, just log the
error, skip the label and proceed.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
@fgiudici fgiudici requested a review from a team as a code owner June 13, 2025 08:28
@github-actions github-actions Bot added the area/operator operator related changes label Jun 13, 2025
@fgiudici fgiudici merged commit 1ab38de into rancher:v1.7.x Jun 13, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/operator operator related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants