Skip to content

Commit 260c1ad

Browse files
authored
Merge pull request #26 from jmnote/yaml-indentation
yaml formatting & indentation
2 parents 3c36779 + 26f8533 commit 260c1ad

File tree

5 files changed

+66
-66
lines changed

5 files changed

+66
-66
lines changed

site-src/api-types/cluster-set.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,37 @@ This property can be used to:
2020

2121
- uniquely identify clusters using a clusterID
2222

23-
```
23+
```yaml
2424
apiVersion: about.k8s.io/v1
2525
kind: ClusterProperty
2626
metadata:
27-
name: cluster.clusterset.k8s.io
27+
name: cluster.clusterset.k8s.io
2828
spec:
29-
value: cluster-1
29+
value: cluster-1
3030
```
3131
3232
- uniquely identify the membership of a cluster in a ClusterSet for the lifetime of the membership.
3333
34-
```
34+
```yaml
3535
apiVersion: about.k8s.io/v1
3636
kind: ClusterProperty
3737
metadata:
38-
name: clusterset.k8s.io
38+
name: clusterset.k8s.io
3939
spec:
40-
value: mycoolclusterset
40+
value: mycoolclusterset
4141
```
4242
4343
- Provide a reference point for multi-cluster tooling to build on within a cluster set, for example for DNS labels, for logging and tracing, etc.
4444
4545
- Provide extra metadata space to store other cluster properties that might otherwise be implemented as ad-hoc annotations on semantically adjacent objects.
4646
47-
```
47+
```yaml
4848
apiVersion: about.k8s.io/v1
4949
kind: ClusterProperty
5050
metadata:
51-
name: fingerprint.mycoolimplementation.com
51+
name: fingerprint.mycoolimplementation.com
5252
spec:
53-
value: '{"major": "1","minor": "18","gitVersion": "v1.18.2","gitCommit": "52c56ce7a8272c798dbc29846288d7cd9fbae032","gitTreeState": "clean","buildDate": "2020-04-30T20:19:45Z","goVersion": "go1.13.9","compiler": "gc","platform": "linux/amd64"}'
53+
value: '{"major": "1","minor": "18","gitVersion": "v1.18.2","gitCommit": "52c56ce7a8272c798dbc29846288d7cd9fbae032","gitTreeState": "clean","buildDate": "2020-04-30T20:19:45Z","goVersion": "go1.13.9","compiler": "gc","platform": "linux/amd64"}'
5454
```
5555
5656

site-src/concepts/about-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The ClusterProperty CRD is proposed to give a Kubernetes-native way of identifyi
1515

1616
### Example
1717

18-
```
18+
```yaml
1919
apiVersion: about.k8s.io/v1
2020
kind: ClusterProperty
2121
metadata:

site-src/concepts/cluster-profile-api.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,29 @@ a [ClusterSet](../api-types/cluster-set.md). A cluster inventory is considered a
3434
apiVersion: multicluster.x-k8s.io/v1alpha1
3535
kind: ClusterProfile
3636
metadata:
37-
name: some-cluster-name
38-
namespace: fleet-system
39-
labels:
40-
x-k8s.io/cluster-manager: some-cluster-manager
37+
name: some-cluster-name
38+
namespace: fleet-system
39+
labels:
40+
x-k8s.io/cluster-manager: some-cluster-manager
4141
spec:
4242
displayName: some-cluster
4343
clusterManager:
4444
name: some-cluster-manager
4545
status:
46-
version:
47-
kubernetes: 1.28.0
48-
properties:
49-
- name: clusterset.k8s.io
50-
value: some-clusterset
51-
- name: location
52-
value: apac
53-
conditions:
54-
- type: ControlPlaneHealthy
55-
status: True
56-
lastTransitionTime: "2023-05-08T07:56:55Z"
57-
message: ""
58-
- type: Joined
59-
status: True
60-
lastTransitionTime: "2023-05-08T07:58:55Z"
61-
message: ""
46+
version:
47+
kubernetes: 1.28.0
48+
properties:
49+
- name: clusterset.k8s.io
50+
value: some-clusterset
51+
- name: location
52+
value: apac
53+
conditions:
54+
- type: ControlPlaneHealthy
55+
status: True
56+
lastTransitionTime: "2023-05-08T07:56:55Z"
57+
message: ""
58+
- type: Joined
59+
status: True
60+
lastTransitionTime: "2023-05-08T07:58:55Z"
61+
message: ""
6262
```

site-src/concepts/work-api.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ Update of a Work will trigger the resource update on the Managed Cluster, and de
2222

2323
## Example
2424

25-
```
25+
```yaml
2626
apiVersion: multicluster.x-k8s.io/v1alpha1
2727
kind: Work
2828
metadata:
29-
name: work-sample
30-
namespace: cluster1
29+
name: work-sample
30+
namespace: cluster1
3131
spec:
32-
workload:
33-
manifests:
34-
- apiVersion: v1
35-
kind: ConfigMap
36-
metadata:
37-
name: cm
38-
namespace: default
39-
data:
40-
ui.properties: |
41-
color=purple
32+
workload:
33+
manifests:
34+
- apiVersion: v1
35+
kind: ConfigMap
36+
metadata:
37+
name: cm
38+
namespace: default
39+
data:
40+
ui.properties: |
41+
color=purple
4242
```
4343
4444
User creates a Work in the `cluster1` namespace on the Work Hub that the Work Controller is authorized to access.

site-src/guides/coredns.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -265,30 +265,30 @@ cat <<EOF > dnsutils.yaml
265265
apiVersion: v1
266266
kind: Pod
267267
metadata:
268-
name: dnsutils
269-
namespace: demo
268+
name: dnsutils
269+
namespace: demo
270270
spec:
271-
containers:
272-
- name: dnsutils
273-
image: k8s.gcr.io/e2e-test-images/jessie-dnsutils:1.3
274-
command:
275-
- sleep
276-
- "3600"
277-
imagePullPolicy: IfNotPresent
278-
restartPolicy: Always
279-
EOF
280-
```
281-
282-
```
283-
kubectl apply -f dnsutils.yaml
284-
```
285-
286-
You can then use the `dnsutils` pod to confirm that the DNS query for the ServiceImport responds with the IP set in the fake ServiceImport previously defined.
287-
288-
```
289-
kubectl exec -it dnsutils -n demo -- bash
290-
```
291-
```
271+
containers:
272+
- name: dnsutils
273+
image: k8s.gcr.io/e2e-test-images/jessie-dnsutils:1.3
274+
command:
275+
- sleep
276+
- "3600"
277+
imagePullPolicy: IfNotPresent
278+
restartPolicy: Always
279+
EOF
280+
```
281+
282+
```
283+
kubectl apply -f dnsutils.yaml
284+
```
285+
286+
You can then use the `dnsutils` pod to confirm that the DNS query for the ServiceImport responds with the IP set in the fake ServiceImport previously defined.
287+
288+
```
289+
kubectl exec -it dnsutils -n demo -- bash
290+
```
291+
```
292292
root@dnsutils:/# nslookup myservice.demo.svc.clusterset.local
293293
```
294294
**Output (Do Not Copy)**

0 commit comments

Comments
 (0)