Azure / dev-spaces

Azure Dev Spaces is retired, please use Bridge to Kubernetes.
MIT License
136 stars 306 forks source link

Extra values files in azds.yaml seems not to be processed if they are not in the same folder as azds.yaml file #56

Closed eiximenis closed 5 years ago

eiximenis commented 5 years ago

Hi! I have a azds.yaml file with the following values section:

  values:
  - values.dev.yaml?
  - secrets.dev.yaml?
  - ../../../k8s/helm/inf.yaml
  - ../../../k8s/helm/app.yaml

The helm charts needs the values defined in inf.yaml and app.yaml to run succesfully, but when running azds up following error is generated:

Using dev space 'default' with target 'test-devspaces-edu'
Synchronizing files...4s
Installing Helm chart...
Helm install failed with exit code '1': Release "azds-0c712b-default-apigwmm" does not exist. Installing it now.
Error: render error in "apigwmm/templates/service.yaml": template: apigwmm/templates/service.yaml:4:18: executing "apigwmm/templates/service.yaml" at <.Values.app.svc.mobi...>: can't evaluate field svc in type interface {}

This error appears if app.yaml is not passed to the helm chart. If I copy both files to the same folder where azds.yaml file is and I change the values section to:

  values:
  - values.dev.yaml?
  - secrets.dev.yaml?
  - inf.yaml
  - app.yaml

Everything works as expected.

Note: I am using following version of azds CLI: Azure Dev Spaces CLI (Preview) 0.1.20190207.3 API v2.13

YuzorMa commented 5 years ago

Thanks for reporting this @eiximenis . We've identified the bug and will get a fix out in an upcoming release.

YuzorMa commented 5 years ago

@eiximenis this should be fixed in the latest version of the CLI (0.1.20190320.5)