-
Notifications
You must be signed in to change notification settings - Fork 208
operator: fix setting QAT provisioning config volumeMount #1431
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
Conversation
@hj-johannes-lee I need your help testing this. I did an initial pass but pls check all the possible user flows on your side too |
Codecov Report
@@ Coverage Diff @@
## main #1431 +/- ##
==========================================
- Coverage 51.07% 50.86% -0.22%
==========================================
Files 44 44
Lines 5010 5013 +3
==========================================
- Hits 2559 2550 -9
- Misses 2305 2317 +12
Partials 146 146
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Sure, let me do! |
built an operator from your branch and made it pulled Always.
|
|
and that no Reconcile errors show up in controller's logs |
(I am now trying to debug found errors!) |
setInitContainer() adds "init-sriov-numvfs" to initContainers but uses initcontainerName constant to search where to add the QAT configMap volumeMount. Fix by moving all code to use the const. It was also noticed in the controller logs that setting Pod Volumes is not idempotent but broken DaemonSet gets created: ""intel-device-plugins-manager: Reconciler error "err="DaemonSet.apps \"intel-qat-plugin\" is invalid: spec.template.spec.volumes[6].name: Duplicate value: \"qat-config\"" controller="qatdeviceplugin" controllerGroup="deviceplugin.intel.com" Finally, change 'qat-config' to 'intel-qat-config-volume' to better describe that it's a volume. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
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.
existing errors are not related to this pr.
LGTM! :)
setInitContainer() adds "init-sriov-numvfs" to initContainers but uses initcontainerName constant to search where to add the QAT configMap volumeMount. Fix by moving all code to use the const.
It was also noticed in the controller logs that setting Pod Volumes is not idempotent but broken DaemonSet gets created:
""intel-device-plugins-manager: Reconciler error "err="DaemonSet.apps "intel-qat-plugin" is invalid: spec.template.spec.volumes[6].name: Duplicate value: "qat-config"" controller="qatdeviceplugin" controllerGroup="deviceplugin.intel.com"
Finally, change 'qat-config' to 'intel-qat-config-volume' to better describe that it's a volume.