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

Kubevirt Console Plugin Integration with HCO #1809

Merged
merged 7 commits into from
Apr 3, 2022

Conversation

orenc1
Copy link
Collaborator

@orenc1 orenc1 commented Mar 3, 2022

Add Operand Handlers to create and reconcile new resources for the Kubvirt console plugin in OpenShift:

  1. Deployment for the kubevirt plugin, serving the UI contents using nginx
  2. Service that exposes the kubevirt plugin pod
  3. Custom Resource for the plugin - ConsolePlugin (console.openshift.io/v1alpha1)

Note:
kubevirt console plugin resources will be deployed only if KV_CONSOLE_PLUGIN_IMAGE environment variable is provided to hco-operator, with the value of the plugin image pullspec. Currently it is not activated, until an official plugin release will be available at https://github.com/kubevirt-ui/kubevirt-plugin/releases.

Signed-off-by: orenc1 ocohen@redhat.com

Reviewer Checklist

Reviewers are supposed to review the PR for every aspect below one by one. To check an item means the PR is either "OK" or "Not Applicable" in terms of that item. All items are supposed to be checked before merging a PR.

  • PR Message
  • Commit Messages
  • How to test
  • Unit Tests
  • Functional Tests
  • User Documentation
  • Developer Documentation
  • Upgrade Scenario
  • Uninstallation Scenario
  • Backward Compatibility
  • Troubleshooting Friendly

Release note:

kubevirt console plugin integration with HCO

@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

1 similar comment
@openshift-ci
Copy link

openshift-ci bot commented Mar 3, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XL labels Mar 3, 2022
@orenc1 orenc1 changed the title WIP: Kubevirt Plugin Integration with HCO WIP: Kubevirt Console Plugin Integration with HCO Mar 3, 2022
@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 4, 2022
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 4, 2022
@coveralls
Copy link
Collaborator

coveralls commented Mar 4, 2022

Pull Request Test Coverage Report for Build 2077342887

  • 323 of 384 (84.11%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 84.738%

Changes Missing Coverage Covered Lines Changed/Added Lines %
controllers/hyperconverged/hyperconverged_controller.go 1 2 50.0%
pkg/util/cluster.go 3 6 50.0%
controllers/operands/deploymentHandler.go 45 55 81.82%
controllers/operands/serviceHandler.go 37 47 78.72%
controllers/operands/kubevirtConsolePlugin.go 224 261 85.82%
Totals Coverage Status
Change from base Build 2072597507: -0.05%
Covered Lines: 4192
Relevant Lines: 4947

💛 - Coveralls

hack/config Outdated
@@ -13,6 +13,7 @@ LIVENESS_PROBE_VERSION="v2.3.0"
CSI_SNAPSHOT_VERSION="v4.2.1"
CSI_SIG_STORAGE_PROVISIONER_VERSION="v2.2.1"
KUBE_RBAC_PROXY_VERSION="4.10"
KUBEVIRT_PLUGIN_VERSION="latest"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should add a "UI" or "CONSOLE" to the name, as it is it can get confused with the main kubevirt operators,
for example ''KUBEVIRT_CONSOLE_PLUGIN_VERSION", does that make sense to you ?

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 7, 2022
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 22, 2022
@orenc1 orenc1 marked this pull request as ready for review March 22, 2022 13:07
@orenc1 orenc1 changed the title WIP: Kubevirt Console Plugin Integration with HCO Kubevirt Console Plugin Integration with HCO Mar 22, 2022
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 22, 2022
@orenc1 orenc1 closed this Mar 22, 2022
@orenc1 orenc1 reopened this Mar 22, 2022
@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/okd-hco-e2e-upgrade-index-gcp

In response to this:

okd-hco-e2e-upgrade-index-aws lane succeeded.
/override ci/prow/okd-hco-e2e-upgrade-index-gcp

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.

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 31, 2022
Add Operand Handlers to create and reconcile new resources for the Kubvirt console plugin in OpenShift:
1. Deployment for the kubevirt plugin, serving the UI contents using nginx
2. Service that exposes the kubevirt plugin pod
3. Custom Resource for the plugin - ConsolePlugin

Signed-off-by: orenc1 <ocohen@redhat.com>
…nshift.io

Signed-off-by: orenc1 <ocohen@redhat.com>
Signed-off-by: orenc1 <ocohen@redhat.com>
Signed-off-by: orenc1 <ocohen@redhat.com>
…onfigured

Signed-off-by: orenc1 <ocohen@redhat.com>
Signed-off-by: orenc1 <ocohen@redhat.com>
…re until a release is available

Signed-off-by: orenc1 <ocohen@redhat.com>
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 1, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@hco-bot
Copy link
Collaborator

hco-bot commented Apr 1, 2022

hco-e2e-image-index-gcp lane succeeded.
/override ci/prow/hco-e2e-image-index-aws
okd-hco-e2e-upgrade-index-aws lane succeeded.
/override ci/prow/okd-hco-e2e-upgrade-index-gcp
hco-e2e-upgrade-index-sno-aws lane succeeded.
/override ci/prow/hco-e2e-upgrade-index-sno-azure

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-aws, ci/prow/hco-e2e-upgrade-index-sno-azure, ci/prow/okd-hco-e2e-upgrade-index-gcp

In response to this:

hco-e2e-image-index-gcp lane succeeded.
/override ci/prow/hco-e2e-image-index-aws
okd-hco-e2e-upgrade-index-aws lane succeeded.
/override ci/prow/okd-hco-e2e-upgrade-index-gcp
hco-e2e-upgrade-index-sno-aws lane succeeded.
/override ci/prow/hco-e2e-upgrade-index-sno-azure

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-bot
Copy link
Collaborator

hco-bot commented Apr 1, 2022

hco-e2e-kv-smoke-azure lane succeeded.
/override ci/prow/hco-e2e-kv-smoke-gcp

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-kv-smoke-gcp

In response to this:

hco-e2e-kv-smoke-azure lane succeeded.
/override ci/prow/hco-e2e-kv-smoke-gcp

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.

@orenc1
Copy link
Collaborator Author

orenc1 commented Apr 1, 2022

/retest

@openshift-ci
Copy link

openshift-ci bot commented Apr 1, 2022

@orenc1: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/hco-e2e-kv-smoke-gcp 10de754 link true /test hco-e2e-kv-smoke-gcp
ci/prow/hco-e2e-upgrade-index-sno-azure 10de754 link false /test hco-e2e-upgrade-index-sno-azure
ci/prow/hco-e2e-image-index-aws 10de754 link true /test hco-e2e-image-index-aws
ci/prow/okd-hco-e2e-upgrade-index-gcp 10de754 link true /test okd-hco-e2e-upgrade-index-gcp
ci/prow/hco-e2e-image-index-sno-aws 10de754 link false /test hco-e2e-image-index-sno-aws
ci/prow/hco-e2e-upgrade-prev-index-sno-aws 10de754 link false /test hco-e2e-upgrade-prev-index-sno-aws
ci/prow/hco-e2e-upgrade-prev-index-aws 10de754 link true /test hco-e2e-upgrade-prev-index-aws

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.

@hco-bot
Copy link
Collaborator

hco-bot commented Apr 1, 2022

hco-e2e-image-index-sno-azure lane succeeded.
/override ci/prow/hco-e2e-image-index-sno-aws

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-sno-aws

In response to this:

hco-e2e-image-index-sno-azure lane succeeded.
/override ci/prow/hco-e2e-image-index-sno-aws

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-bot
Copy link
Collaborator

hco-bot commented Apr 1, 2022

hco-e2e-upgrade-prev-index-sno-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-prev-index-sno-aws

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-sno-aws

In response to this:

hco-e2e-upgrade-prev-index-sno-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-prev-index-sno-aws

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-bot
Copy link
Collaborator

hco-bot commented Apr 1, 2022

hco-e2e-upgrade-prev-index-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-prev-index-aws

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-aws

In response to this:

hco-e2e-upgrade-prev-index-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-prev-index-aws

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.

@nunnatsa
Copy link
Collaborator

nunnatsa commented Apr 3, 2022

/override coverage/coveralls

@kubevirt-bot
Copy link
Contributor

@nunnatsa: Overrode contexts on behalf of nunnatsa: coverage/coveralls

In response to this:

/override coverage/coveralls

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.

@nunnatsa
Copy link
Collaborator

nunnatsa commented Apr 3, 2022

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2022
@kubevirt-bot kubevirt-bot merged commit de08767 into kubevirt:main Apr 3, 2022
@orenc1 orenc1 deleted the ui_plugin_integration branch April 3, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants