Skip to content

fix worker deployment with hostAliases

Cong Nguyen requested to merge ntcong/auto-deploy-image:hostalias_worker into master

When worker deployment has hostAliases config, it will fail:

Error: UPGRADE FAILED: template: auto-deploy-app/templates/worker-deployment.yaml:90:38: executing "auto-deploy-app/templates/worker-deployment.yaml" at <10>: wrong type for value; expected string; got []interface {}

Deployment template has toYaml https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/blob/master/assets/auto-deploy-app/templates/deployment.yaml?ref_type=heads#L89, but worker Deployment doesn't. I tried adding toYaml and it fixes the issue.

Merge request reports