Cloud Code is designed to help with editing Google Cloud Platform and Kubernetes-related configuration files, including schema based validation, diagnostics, and quick documentation.
Supported YAML configuration files
- Anthos Config Management
- Cloud Build
- Config Connector
- Migrate for Anthos
Additionally, Cloud Code also supports popular Kubernetes CRDs, like Kubeflow, out-of-the-box.
Using custom schema
Additionally, with Cloud Code, you can provide your own CRD schema with IntelliJ settings (File > Settings > Cloud Code > Kubernetes or for Mac OS X, IntelliJ IDEA > Preferences > Cloud Code > Kubernetes and navigate to the CRD Schema Locations section).
You can point to either a local file or a URL. URLs pointing to
automatically converted to
Pulling schema from a cluster
When you switch to a cluster running Kubernetes v1.16 and above in the Kubernetes explorer, Cloud Code automatically pulls the schema of all installed CRDs.
Configuring with snippets
Out-of-the-box snippets for common YAML schema (using
Ctrl+Space to view
options) make it easy to start a new YAML file or add to an existing one without
errors, while still following best practices. Additionally, it's easier to work
with repetitive fields; fill in one and Cloud Code fills out the
Currently, the following snippets are offered:
Cloud Build - Cloud Run deployment
Cloud Build - Docker container build
Cloud Build - GKE deployment
Cloud Build - GKE Skaffold deployment
Cloud Build - Go build
Cloud Build - Terraform plan + apply
Config Connector - BigQueryDataset
Config Connector - BigQueryTable
Config Connector - BigtableCluster
Config Connector - BigtableInstance
Config Connector - PubSubSubscription
Config Connector - PubSubTopic
Config Connector - RedisInstance
Config Connector - SpannerInstance
Kubernetes - ConfigMap
Kubernetes - Deployment
Kubernetes - Ingress
Kubernetes - Pod
Kubernetes - Service
Migrate for Anthos - Export
Migrate for Anthos - PersistentVolumeClaim
Migrate for Anthos - StatefulSet
Skaffold - Bazel
Skaffold - Getting-started
Skaffold - Helm deployment
Skaffold - Kaniko
Completing with context
Based on the current schema, Cloud Code will provide contextual completions to help you choose the right option.
Cloud Code provides Skaffold configuration file editing support and smart
templates allowing you to easily validate your
skaffold.yaml files. Refer to
this guide on using an existing app with Cloud Code.
Completing Skaffold configuration files with context
Based on the current schema, Cloud Code will provide contextual completions and relevant docs to help you choose the right option.
Discovering definitions via quick documentation
Cloud Code surfaces relevant documentation for a resource when you highlight a line in your configuration file and access View > Quick Documentation.
Linting YAML for structural and validity issues
Cloud Code provides linting support around common schema issues and provides descriptive errors.