Skip to content

[Backport release-1.6] fix(workloadmonitor): populate VM instance-profile label from the KubeVirt preference annotation - #4454

Merged
IvanHunters merged 1 commit into
release-1.6from
backport-4448-to-release-1.6
Sep 25, 2026
Merged

IvanHunters merged 1 commit into
release-1.6from
backport-4448-to-release-1.6

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #4448 to release-1.6.

…eVirt preference annotation

getWorkloadMetadata filled the workloads.cozystack.io/kubevirt-vmi-instance-profile
label from the annotation kubevirt.io/cluster-instanceprofile-name, a key KubeVirt
never stamps. KubeVirt records the cluster preference (which carries the guest OS
profile) under kubevirt.io/cluster-preference-name, so the profile label was never
emitted and a VM's instance profile never reached the billing metric. The sibling
instance-type label worked only because its key is the real one.

Read the correct annotation. The emitted label name is unchanged, so the downstream
metric pipeline is untouched.

Assisted-by: LLM
Signed-off-by: IvanHunters <[email protected]>
(cherry picked from commit 1f9bad0)
@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: cozystack/cozystack/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 78cdaa2b-f612-4762-b975-cf4319ebd150

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@IvanHunters
IvanHunters merged commit 9f2d21e into release-1.6 Sep 25, 2026
2 checks passed
@IvanHunters
IvanHunters deleted the backport-4448-to-release-1.6 branch September 25, 2026 08:14
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.

1 participant