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
Expose part-of,component and version labels to kubevirtCR #1712
Expose part-of,component and version labels to kubevirtCR #1712
Conversation
/cc @nunnatsa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the title. Should be part-of
instead of managed-by
.
Please add release notes to the description
pkg/controller/operands/kubevirt.go
Outdated
spec := kubevirtcorev1.KubeVirtSpec{ | ||
UninstallStrategy: uninstallStrategy, | ||
Infra: hcoConfig2KvConfig(hc.Spec.Infra, infrastructureHighlyAvailable), | ||
Workloads: hcoConfig2KvConfig(hc.Spec.Workloads, true), | ||
Configuration: *config, | ||
CertificateRotationStrategy: *kvCertConfig, | ||
WorkloadUpdateStrategy: hcWorkloadUpdateStrategyToKv(hc.Spec.WorkloadUpdateStrategy), | ||
ProductName: hcoutil.HyperConvergedCluster, | ||
ProductVersion: os.Getenv(hcoutil.HcoKvIoVersionName), | ||
ProductComponent: kv.ObjectMeta.Labels[hcoutil.AppLabelComponent], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can set hcoutil.AppComponentCompute
because this is the constant value we set on kv.ObjectMeta.Labels[hcoutil.AppLabelComponent]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reviewing.
Done. :)
for unique labels values and exposure across kubevirt's components. Signed-off-by: Barak Mordehai <bmordeha@redhat.com>
hco-e2e-image-index-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-azure, ci/prow/hco-e2e-image-index-gcp In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Pull Request Test Coverage Report for Build 1712912021
💛 - Coveralls |
hco-e2e-image-index-sno-azure lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-gcp, ci/prow/hco-e2e-image-index-sno-aws In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
hco-e2e-upgrade-index-sno-azure lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-index-sno-aws In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
hco-e2e-kv-smoke-azure lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-kv-smoke-gcp In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
@Barakmor1: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nunnatsa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-1.6 |
@nunnatsa: new pull request created: #1723 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
for unique labels values and exposure across kubevirt's components.
kubevirt's operator set it's components labels by kubevirtCR:
https://github.com/kubevirt/kubevirt/blob/9a9080b8a387b4a23d641353b3e22d3e9cc614ff/pkg/virt-operator/resource/apply/reconcile.go#L85
currently KubeVirt's components don't expose
version
andpart-of
labels,component
label isn't unique because KubeVirt's components that are managed byvirt-operator and virt-operator set these label to the default value ("kubevirt").
Reviewer Checklist
Release note: