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

Wrong schema picked up for argo workflows #1269

Open
jankovicgd opened this issue Apr 30, 2024 · 0 comments
Open

Wrong schema picked up for argo workflows #1269

jankovicgd opened this issue Apr 30, 2024 · 0 comments

Comments

@jankovicgd
Copy link

Hey, when using the extension together with argo manifests the extension doesn't use the schema from https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json, but rather this:

{
  "id": "argoproj.io/v1alpha1@WorkflowTemplate",
  "apiVersion": "argoproj.io/v1alpha1",
  "kind": "WorkflowTemplate",
  "type": "object",
  "required": [
    "metadata",
    "spec"
  ],
  "properties": {
    "apiVersion": {
      "type": "string",
      "markdownDescription": "**apiVersion** (string)\n\n"
    },
    "kind": {
      "type": "string",
      "markdownDescription": "WorkflowTemplate: \n\n**apiVersion** (string)\n\nundefined\n\n**kind** (string)\n\nundefined\n\n**metadata** (object)\n\nundefined\n\n**spec** (object)\n\nundefined\n\n"
    },
    "metadata": {
      "type": "object",
      "markdownDescription": "**metadata** (object)\n\n"
    },
    "spec": {
      "type": "object",
      "x-kubernetes-map-type": "atomic",
      "x-kubernetes-preserve-unknown-fields": true,
      "markdownDescription": "**spec** (object)\n\n"
    }
  },
  "name": "io.argoproj.v1alpha1.WorkflowTemplate"
}

and I'm not sure where it is picked up from.

What I'm doing to mitigate this at the moment is the # vscode-kubernetes-tools: exclude directive and manually setting the schema in the settings.json

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

1 participant