Fix the following kubernet service error when creating a new resource and server template

Error: Cannot use object of type Maclof\Kubernetes\Models\NamespaceModel as array in Drupal\k8s\Form\K8sContentForm->getNamespaceOptions() (line 337 of /var/www/html/web/cloud-testing/web/modules/contrib/cloud/modules/cloud_service_providers/k8s/src/Form/K8sContentForm.php)

Error: Cannot use object of type Maclof\Kubernetes\Models\NamespaceModel as array in k8s_namespace_allowed_values_function() (line 571 of /var/www/html/web/cloud-testing/web/modules/contrib/cloud/modules/cloud_service_providers/k8s/k8s.module)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jigish.addweb created an issue. See original summary.

jigish.addweb’s picture

Status: Active » Needs review
FileSize
4.21 KB
yas’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3095569: Composer could not parse version constraint / could not load package (2)

@jigishaddweb

Thank you for fixing the issue. I tested it and looks good to me. I'll merge the patch to 8.x-2.x and close this issue as Fixed.

  • yas committed 1cfb809 on 8.x-2.x authored by jigish.addweb
    Issue #3102623 by jigish.addweb, yas: Fix the K8s Service Error while...
yas’s picture

Status: Reviewed & tested by the community » Fixed
yas’s picture

Title: Fix the K8s Service Error while creating a new resource and cloudServer template » Fix the K8s Service Error while creating a new resource and CloudServerTemplate

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.