Skip to content

mixins integration with vscode-extension #1327

Answered by carolynvs
MChorfa asked this question in Q&A
Discussion options

You must be logged in to vote

You will want to implement the schema command for your mixin. When the VS Code extension loads, it runs porter schema which in turn calls MIXIN schema against every mixin and composes a single schema file that it provides to VS Code.

Your mixin is responsible for defining the allowed schema in jsonschema for each action because for some mixins the schema is different per action. Porter will handle parsing through your schema and piecing it all together into a coherent schema for porter.yaml. You just need to worry about what your schema should look like for your portion of the manifest related to the mixin:

install:
- helm:
    description: Install my wonderful chart
    name: myrelease
    

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MChorfa
Comment options

Answer selected by carolynvs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants