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

Copy the labels to the underlying template even if it does not have any #737

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

ygalblum
Copy link
Contributor

Type of change

  • Bug fix

Description

kube-burner copies the labels of its created objects into the template of the underlying object (e.g. pod template of a deployment). These labels are then used in other places in the code. For example, metrics measurements rely on the existence of the kube-burner-runid label on the pod (or VMI in case of VMs).

In the original code, the labels were copied only if the labels field already existed.

With these fix, for specific kinds, the labels are copied even if none were added.

Related Tickets & Documents

pkg/burner/utils.go Outdated Show resolved Hide resolved
@rsevilla87 rsevilla87 added the bug Something isn't working label Nov 15, 2024
@ygalblum ygalblum force-pushed the force-adding-labels branch from 983187a to 4179544 Compare November 15, 2024 17:26
@ygalblum ygalblum force-pushed the force-adding-labels branch from 4179544 to 8527752 Compare November 18, 2024 11:17
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.

lgtm

@rsevilla87 rsevilla87 merged commit 5a27622 into kube-burner:main Nov 18, 2024
7 checks passed
@ygalblum ygalblum deleted the force-adding-labels branch November 18, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] VMI measurements are not collected if the VMI template does not include any labels
2 participants