Skip to content
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

Support YAML for SeldonDeployment definition in examples under seldon-core/helm-charts #2362

Closed
ramanNarasimhan77 opened this issue Sep 1, 2020 · 3 comments

Comments

@ramanNarasimhan77
Copy link

Hello,

I am trying to customise and reuse the model deployment helm charts available under seldon-core/helm-charts for deploying the ml models that my team is building.
Our generic ci process lints every helm chart before uploading to our internal registry. Helm linting does not work with json.
Is there a way I can easily redefine helm charts like seldon-single-model to use yaml instead of json

Steps in CI process for uploading a helm chart to Helm registry:

  1. Update Chart version in Chart.yaml
  2. Update dependencies helm dep up $CHART
  3. Lint helm chart helm lint $CHART
  4. Package the helm chart helm package -d . $CHART
  5. Push packaged chart to internal helm registry

Error observed on running lint command:

Linting error:
$ helm lint seldon-single-model
==> Linting seldon-single-model
[INFO] Chart.yaml: icon is recommended
[ERROR] templates/seldondeployment.json: file extension '.json' not valid. Valid extensions are .yaml, .yml, .tpl, or .txt
@ramanNarasimhan77 ramanNarasimhan77 changed the title Support YAML for SeldonDeployment definition in Helm Templates Support YAML for SeldonDeployment definition in examples under seldon-core/helm-charts Sep 1, 2020
@ellisvalentiner
Copy link
Contributor

@ramanNarasimhan77 you can just change the extension to .yaml and it will work fine because JSON is valid YAML.

@adriangonz adriangonz added the triage Needs to be triaged and prioritised accordingly label Sep 2, 2020
@ramanNarasimhan77
Copy link
Author

@ellisvalentiner thank you for the suggestion. I will try this out

@ukclivecox
Copy link
Contributor

You could raise a PR to change to yaml or push Helm to accept JSON for lint

@ukclivecox ukclivecox removed the triage Needs to be triaged and prioritised accordingly label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants