-
Notifications
You must be signed in to change notification settings - Fork 149
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
Allow editing and disabling common DataImportCronTemplates #1832
Conversation
Pull Request Test Coverage Report for Build 2046982878
💛 - Coveralls |
fca850b
to
0b76739
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tiraboschi 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 |
hco-e2e-image-index-gcp lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-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. |
/retest |
okd-hco-e2e-upgrade-index-gcp lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-sno-aws, ci/prow/okd-hco-e2e-image-index-aws, ci/prow/okd-hco-e2e-upgrade-index-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. |
/retest |
/override-bot |
hco-e2e-upgrade-index-azure lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-index-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. |
/retest |
HCO now supports the removing of a specific DataImportCronTemplate from the list in SSP. Also, HCO allow modying the storage field. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
0b76739
to
25bf656
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@nunnatsa: 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. |
hco-e2e-upgrade-prev-index-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-azure, ci/prow/hco-e2e-upgrade-prev-index-azure 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-gcp lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-kv-smoke-azure 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. |
/test pull-hyperconverged-cluster-operator-e2e-k8s-1.21 |
@nunnatsa: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
Signed-off-by: orenc1 <ocohen@redhat.com>
* Kubevirt Plugin Integration 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> * Adding unit tests and enable kubevirt-plugin in consoles.operator.openshift.io Signed-off-by: orenc1 <ocohen@redhat.com> * add new hook method from #1832 to the new handlers Signed-off-by: orenc1 <ocohen@redhat.com> * fixes according to review comments Signed-off-by: orenc1 <ocohen@redhat.com> * not creating console plugin operands if console plugin image is not configured Signed-off-by: orenc1 <ocohen@redhat.com> * configure the plugin deployment and service with SSL Signed-off-by: orenc1 <ocohen@redhat.com> * pin kubevirt-plugin image to a specific version and disable the feature until a release is available Signed-off-by: orenc1 <ocohen@redhat.com>
HCO now supports the removing of a specific DataImportCronTemplate from the list in SSP. Also, HCO allow modying the storage field.
HyperConverged API Changes:
New field:
status.dataImportCronTemplates
This field is a list of the actual
dataImportCronTemplates
as HCO updated the SSP CR. The list contains both the common and the user-defined templates (the list in the spec field contains only the user-defined templates).The purpose of this field is for transparency, so the user could see the actual templates. It should also ease the modification of the templates, because it will give the information about the common-templates, which are currently not visible to the user.
The templates in the
status.dataImportCronTemplates
list contains a new status object with two fields:commonTemplate
; boolean; indicates whether this is a common template (true
), or a custom one (false
).modified
; boolean; indicates if a common template was customized. Always false for custom templates.For example:
New annotation:
dataimportcrontemplate.kubevirt.io/enable
spec.dataImportCronTemplates[*].metadata.annotations["dataimportcrontemplate.kubevirt.io/enable"]
Boolean string. Default =
"true"
This new annotation in the
dataImportCronTemplate
object, if set tofalse
, signals HCO not to set this template in the SSP CR, or remove the template from the SSP CR if it is currently listed there. For common templates, the specific template is recognized by its name. For example, in order to disable the common "rhel8-image-cron" template, add this to the spec:HCO Changes
Currently, the HCO webhook rejects changes to the HyperConverged CR, if the spec.dataImportCronTemplates list contains a common template. After this change, HCO will not reject such requests. Instead, HCO allows to modify the following fields in the common templates:
For example
If this field is added to the HyperConverged spec, HCO will replace the storage field if exist, or add it if it is missing.
Any other field will be ignored.
HCO will copy the template list, as written to the SSP CR, to the new
status.dataImportCronTemplates
field, with addition of two optional fields:commonTemplate
andmodified
, as described above. If the template is set to “disabled” in the spec, it won’t appear in the status.Signed-off-by: Nahshon Unna-Tsameret nunnatsa@redhat.com
Reviewer Checklist
Release note: