VS Code extension that provides asssitance for authoring kubernetes and Openshift configuration.
YAML validation:
Detects whether the entire file is valid yaml
Kubernetes validation:
Detects errors such as:
Child node does not exist
Command not found in kubernetes
Incorrect type of value
Kubernetes auto completion:
Auto completes on all commands and resorts to defaults for the value if found
- Install prerequisites:
- latest Visual Studio Code
- Node.js v6.0.0 or higher
- Fork and clone this repository
cd vscode-k8s
- Install the dependencies for server
cd server
$ npm install
- Install the dependencies for client
cd ../client
$ npm install
- Open client on VS Code
cd ..
code ./client
- Open server on VS Code
code ./server
Refer to VS Code documentation on how to run and debug the extension
In order to configure the extension for autocompletion you need to change edit.quickSuggestions.strings to true
- Open up your settings.json file by going to VS code settings
- Under the editor tab scroll down until you find "editor.quickSuggestions"
- Edit this and make sure that "strings" is set to true (otherwise autocomplete will not work)