You can also invoke the documentation for any keys in YAML or Kubernetes resource files by simply pressing ^J (macOS) or Ctrl + Q ( Windows and Linux). The IDE previews the important information from the folded area in YAML Kubernetes files. Note that there’s an easy way to remove all such read-only keys from the current YAML file via a handy quick-fix. Our new plugin also detects non-editable keys in YAML Kubernetes resource files and highlights them in the editor. Use the provided quick-fix to remove redundant keys in YAML Kubernetes resource files. Īnother enhancement in this area is that IntelliJ IDEA will now warn you about redundant keys. The plugin highlights elements with missing keys in YAML Kubernetes resource definition files and provides a quick-fix to add the required keys. In addition to this, you’ll get a warning for the YAML files if you try to use properties that are not applicable for the specified elements with the applied apiVersion and kind. The Kubernetes plugin will alert you whenever you select deprecated Kubernetes properties (available for the YAML files only ). When you rename a key or a value in YAML Kubernetes files, the plugin will also rename all their usages. You can also navigate and jump from a label selector to a label definition inside the editor if there is a direct match for a label, both for the key and for the value. The new plugin will auto-complete all the required keys from all the levels below.įor YAML Kubernetes resource files, the plugin provides an ability to navigate between a label definition and a label selector. To help you really quickly create the required YAML definition file for Kubernetes, start typing the required key and invoke Smart Completion. The Kubernetes plugin offers the correct values you can use within the resources. If you want to add your own Live Template or to customize an existing one, go to Preferences | Live Templates | Kubernetes.Ĭode completion now works for YAML Kubernetes resource files. The new plugin now contains several predefined Kubernetes templates, and you can invoke the necessary Live Template by typing its abbreviation. To make it easier for you to work with Kubernetes, the new plugin has a full bag of improvements.įor a start, the Kubernetes plugin has a built-in Live Template that allows you to quickly create the type of YAML Kubernetes resource file that you need: This means having to consult the Kubernetes documentation often as you create Kubernetes resource files. Working with Kubernetes resource files can be challenging as you need to include all the mandatory fields, and those fields differ depending on the applied Kubernetes API version and the kind type. The new plugin will look for the presence of apiVersion and kind fields in the files, and if these are present it will consider such files as Kubernetes resource files. Once the Kubernetes plugin is installed, you can create and edit the YAML and JSON Kubernetes resource files in IntelliJ IDEA. The new Kubernetes plugin is compatible with all paid JetBrains IDEs: PhpStorm, WebStorm, P圜harm Professional, RubyMine, AppCode, CLion, GoLand, and DataGrip. Go to Preferences | Plugins | Kubernetes plugin, or download the plugin from the website. Please note that the Kubernetes plugin is not bundled, so before using this new functionality you need to install the plugin. Read on for more details and screenshots. The IntelliJ IDEA enhancements for Kubernetes include: code completion, inspections, quick-fixes for Kubernetes resource files, icons in the gutter for easier navigation, pop-up documentation, and live templates. The new plugin supports the Kubernetes resource files from v1.5 up to the recently released v1.9. The upcoming IntelliJ IDEA 2018.1 Ultimate Edition introduces initial support for Kubernetes via a brand new Kubernetes plugin.
0 Comments
Leave a Reply. |