Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fix the following error:
- Cannot use object of type Maclof\Kubernetes\Models\Node as array in Drupal\k8s\Service\K8sService->updateEntities() (line 1223 of /var/www/html/docroot/cloudorchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/k8s/src/Service/K8sService.php)
- Cannot use object of type Maclof\Kubernetes\Models\Pod as array in Drupal\k8s\Service\K8sBatchOperations::updateNode() (line 115 of /var/www/html/docroot/cloudorchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/k8s/src/Service/K8sBatchOperations.php)
- Cannot use object of type Drupal\k8s\Service\K8sClientExtension\Models\K8sMetricsNodeModel as array in k8s_export_node_metrics() (line 735 of /var/www/html/docroot/cloudorchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/k8s/k8s.module)
- Cannot use object of type Drupal\k8s\Service\K8sClientExtension\Models\K8sMetricsNodeModel as array in Drupal\k8s\Service\K8sBatchOperations::updateNode() (line 167 of /var/www/html/docroot/cloudorchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/k8s/src/Service/K8sBatchOperations.php)
- Cannot use object of type Drupal\k8s\Service\K8sClientExtension\Models\K8sMetricsPodModel as array in k8s_export_pod_metrics() (line 759 of /var/www/html/docroot/cloudorchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/k8s/k8s.module)
Comment | File | Size | Author |
---|---|---|---|
#8 | 3095973-8.patch | 11.51 KB | jigish.addweb |
Comments
Comment #2
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #3
yasComment #4
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #5
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #6
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #7
yas@jigishaddweb
Thank you for fixing the issue. Could you please change the following code? Note that this is just an example, there are some similar codes in the patch.
FROM:
TO:
FROM:
TO:
@xiaohua-guan
@baldwinlouie
@masami
Could you please review the patch?
Comment #8
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #9
yas@jigishaddweb
The tests of the patch #8 for K8s has been passed successfully as the following screenshots:
Comment #10
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@yas @jigishaddweb
Thanks for the patch file. It looks good to me.
Comment #12
yasComment #13
yas