hor*_*01d 5 kubernetes visual-studio-code vscode-settings argoproj
根据此处 Argo 文档中的说明:https : //argoproj.github.io/argo/ide-setup/,我知道您可以轻松将其添加到 intellij 验证设置中,但没有关于如何添加 CRD 的帮助到 vscode 的 YAML 模板。
我想将 Argo 中的 CRD 验证 yaml 添加到我的 vscode 设置中以获得必要的验证和自动完成,但是"yaml.schemas": {...
当它是一个 YAML 文件时,我无法弄清楚如何在我的部分(使用 RedHat YAML 扩展)中使用 YAML与 JSON 模式相反。
所以我想我的问题本质上是,如何复制 intellij 中当前可用的 yaml CRD 验证设置?
VSCode 说明现已添加到文档中,总结如下:
yaml.schemas
,这可能类似于:
"yaml.schemas": {
"https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json": "my/argo-files/**/*.yaml"
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
272 次 |
最近记录: |