fstaudt / helm-values

Ease configuration of values for Helm charts in your IDE
Apache License 2.0
11 stars 0 forks source link

Support for specifying different values.yaml files #119

Closed Nepo26 closed 1 year ago

Nepo26 commented 1 year ago

It's possible to run helm install -f <non_default_helm_file>.yaml <chart>. When opening those charts with the helm-values plugin, nothing happens and there is no comparison with the schema.

It would be a great feature to be capable of defining a non default file name and/or folder that allows the schema to be used on those files.


Here is an example of what the directory tree may look like: image

fstaudt commented 1 year ago

Hello @Nepo26 ,

JSON schema mappings provided by IntelliJ IDEA already allow to define JSON schemas for non-default files.

More information is provided in this issue: https://github.com/fstaudt/helm-values/issues/105#issuecomment-1643604160

Nepo26 commented 1 year ago

Hi @fstaudt,

My main problem is that we have no default naming convention. Each chart have a folder called env/ and it uses the same schema as the values.yaml file in the antecedent directory. How can I define it? Is here the right place to ask?

Here is an image that maybe can clarify what I am trying to accomplish:

image

fstaudt commented 1 year ago

@Nepo26 ,

what you try to accomplish is feasible with JSON schema mappings provided by IntelliJ IDEA.\ The file path pattern in your screenshot will apply JSON schema validation for all files in env folder.\ Schema file or URL should however be the JSON schema generated by helm-values plugin, not ../values.yaml.\ JSON schema for values.yaml is generated by helm-values plugin as .idea/json-schemas/<helm chart name>/aggregated-values.schema.json.

It is indeed not really the right place to ask for this kind of support.\ JSON schema mappings are provided by IntelliJ IDEA, not by helm-values plugin.\ You can find more info on configuration of JSON schema mappings in IntelliJ IDEA documentation: https://www.jetbrains.com/help/idea/json.html#ws_json_schema_add_custom