You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file [yaml.json](./yaml.json) in this folder can be appended to your Visual Studio Code user configuration YAML edition preferences `(\${HOME}/.config/Code/\${USER}/yaml.json)` to enable a simplified experience when writing MCS-related manifests.
3
+
> As the yaml.json contains all personalized snippets, it is recommended to append the contents and not copy over the file.
4
+
5
+
Once the snippets are copied over, create a new YAML file, and press `CTRL + Space`, and you should see a list of snippets available.
6
+
7
+

8
+
9
+
10
+
If you select, say for example, the ServiceImport snippet, your file will be pre-filled with the corresponding snippet. Using the tab key, you can navigate easily between the different values that you may want to change.
11
+
12
+

"description": "EndPointSlice object as described in https://kubernetes.io/docs/concepts/services-networking/endpoint-slices/"
81
+
},
82
+
"ClusterSet (About API)": {
83
+
"prefix": ["ClusterSet"],
84
+
"body": [
85
+
"apiVersion: about.k8s.io/v1",
86
+
"kind: ClusterProperty",
87
+
"metadata:",
88
+
"\tname: clusterset.k8s.io",
89
+
"spec:",
90
+
"\tvalue: ${1:clusterset-1}"
91
+
],
92
+
"description": "ClusterSet object as described in the About API (https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/2149-clusterid)"
93
+
},
94
+
"Cluster (About API)": {
95
+
"prefix": ["Cluster"],
96
+
"body": [
97
+
"apiVersion: about.k8s.io/v1",
98
+
"kind: ClusterProperty",
99
+
"metadata:",
100
+
"\tname: cluster.clusterset.k8s.io",
101
+
"spec:",
102
+
"\tvalue: ${1:cluster-1}"
103
+
],
104
+
"description": "Cluster object as described in the About API (https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/2149-clusterid)"
0 commit comments