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

extension takes over intellisense for all YAML files, not just porter.yaml #44

Open
carolynvs opened this issue Oct 23, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@carolynvs
Copy link
Member

  1. Create a directory with a porter.yaml and a kubernetes manifest.
  2. Open the directory in VS Code with the Porter extension enabled.
  3. Open the kubernetes manifest first. Note that there are no red squiggles. Now close it.
  4. Open the porter.yaml. Now close it.
  5. Re-open the kubernetes manifest and note that it is being validated against the Porter extension, red squiggles galore because it is in fact not a porter.yaml.

porter.yaml

name: HELLO
version: 0.1.0
description: "An example Porter configuration"
tag: getporter/porter-hello

mixins:
  - exec

install:
  - exec:
      description: "Install Hello World"
      command: ./helpers.sh
      arguments:
        - install

upgrade:
  - exec:
      description: "World 2.0"
      command: ./helpers.sh
      arguments:
        - upgrade

uninstall:
  - exec:
      description: "Uninstall Hello World"
      command: ./helpers.sh
      arguments:
        - uninstall

manifests.yaml

apiVersion: v1
kind: Namespace
metadata:
  name: demospace

Screen Shot 2020-10-23 at 10 49 58 AM

@carolynvs carolynvs added the bug Something isn't working label Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant