Skip to content

Commit e4054dc

Browse files
committed
update doc for Cluster
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent 3656b49 commit e4054dc

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

docs/book/src/developer/providers/getting-started/building-running-and-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ You best watch the Kubernetes pods with something like `k9s -A` or `watch kubect
140140
Let's try our cluster out. We'll make some simple YAML:
141141

142142
```yaml
143-
apiVersion: cluster.x-k8s.io/v1beta1
143+
apiVersion: cluster.x-k8s.io/v1beta2
144144
kind: Cluster
145145
metadata:
146146
name: hello-mailgun
@@ -149,7 +149,7 @@ spec:
149149
pods:
150150
cidrBlocks: ["192.168.0.0/16"]
151151
infrastructureRef:
152-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
152+
apiGroup: infrastructure.cluster.x-k8s.io
153153
kind: MailgunCluster
154154
name: hello-mailgun
155155
---

docs/book/src/security/pod-security-standards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ It is also possible to disable this patch or configure different levels for the
195195
using variables.
196196

197197
```yaml
198-
apiVersion: cluster.x-k8s.io/v1beta1
198+
apiVersion: cluster.x-k8s.io/v1beta2
199199
kind: Cluster
200200
metadata:
201201
name: "my-cluster"

docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ infrastructure object.
1717

1818
```yaml
1919
kind: DockerCluster
20-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
20+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
2121
metadata:
2222
name: my-cluster-docker
2323
---
2424
kind: Cluster
25-
apiVersion: cluster.x-k8s.io/v1beta1
25+
apiVersion: cluster.x-k8s.io/v1beta2
2626
metadata:
2727
name: my-cluster
2828
spec:
2929
infrastructureRef:
3030
kind: DockerCluster
31-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
31+
apiGroup: infrastructure.cluster.x-k8s.io
3232
name: my-cluster-docker
3333
```
3434

docs/book/src/tasks/bootstrap/microk8s-bootstrap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Cluster API bootstrap provider MicroK8s (CABPM) is a component responsible for g
1313
MicroK8s defines a `MicroK8sControlPlane` definition as well as the `MachineDeployment` to configure the control plane and worker nodes respectively. The `MicroK8sControlPlane` is linked in the cluster definition as shown in the following example:
1414

1515
```yaml
16-
apiVersion: cluster.x-k8s.io/v1beta1
16+
apiVersion: cluster.x-k8s.io/v1beta2
1717
kind: Cluster
1818
spec:
1919
controlPlaneRef:
20-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
20+
apiGroup: controlplane.cluster.x-k8s.io
2121
kind: MicroK8sControlPlane
2222
name: capi-aws-control-plane
2323
```

docs/book/src/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
4848
kind: BeforeClusterCreateRequest
4949
settings: <Runtime Extension settings>
5050
cluster:
51-
apiVersion: cluster.x-k8s.io/v1beta1
51+
apiVersion: cluster.x-k8s.io/v1beta2
5252
kind: Cluster
5353
metadata:
5454
name: test-cluster
@@ -89,7 +89,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
8989
kind: AfterControlPlaneInitializedRequest
9090
settings: <Runtime Extension settings>
9191
cluster:
92-
apiVersion: cluster.x-k8s.io/v1beta1
92+
apiVersion: cluster.x-k8s.io/v1beta2
9393
kind: Cluster
9494
metadata:
9595
name: test-cluster
@@ -130,7 +130,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
130130
kind: BeforeClusterUpgradeRequest
131131
settings: <Runtime Extension settings>
132132
cluster:
133-
apiVersion: cluster.x-k8s.io/v1beta1
133+
apiVersion: cluster.x-k8s.io/v1beta2
134134
kind: Cluster
135135
metadata:
136136
name: test-cluster
@@ -179,7 +179,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
179179
kind: AfterControlPlaneUpgradeRequest
180180
settings: <Runtime Extension settings>
181181
cluster:
182-
apiVersion: cluster.x-k8s.io/v1beta1
182+
apiVersion: cluster.x-k8s.io/v1beta2
183183
kind: Cluster
184184
metadata:
185185
name: test-cluster
@@ -216,7 +216,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
216216
kind: AfterClusterUpgradeRequest
217217
settings: <Runtime Extension settings>
218218
cluster:
219-
apiVersion: cluster.x-k8s.io/v1beta1
219+
apiVersion: cluster.x-k8s.io/v1beta2
220220
kind: Cluster
221221
metadata:
222222
name: test-cluster
@@ -252,7 +252,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1
252252
kind: BeforeClusterDeleteRequest
253253
settings: <Runtime Extension settings>
254254
cluster:
255-
apiVersion: cluster.x-k8s.io/v1beta1
255+
apiVersion: cluster.x-k8s.io/v1beta2
256256
kind: Cluster
257257
metadata:
258258
name: test-cluster

docs/book/src/tasks/experimental-features/runtime-sdk/implement-topology-mutation-hook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Note: We enforce that variable conflicts have to be resolved by ClusterClass aut
133133
Variables that are defined with external variable definitions can be set like regular variables in Cluster `.spec.topology.variables`.
134134

135135
```yaml
136-
apiVersion: cluster.x-k8s.io/v1beta1
136+
apiVersion: cluster.x-k8s.io/v1beta2
137137
kind: Cluster
138138
#metadata
139139
spec:

docs/book/src/tasks/using-kustomize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Add the following content to the `namereference.yaml` transformer configuration:
123123
```yaml
124124
- kind: Cluster
125125
group: cluster.x-k8s.io
126-
version: v1alpha3
126+
version: v1beta2
127127
fieldSpecs:
128128
- path: spec/clusterName
129129
kind: MachineDeployment

docs/book/src/tasks/workload-bootstrap-gitops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Follow the quickstart setup guide for your provider but ensure that CAAPH is ins
1414
Add the labels `argoCDChart: enabled` and `guestbook: enabled` to your desired workload cluster yaml file in the `Cluster` metadata section, for example:
1515

1616
```yaml
17-
apiVersion: cluster.x-k8s.io/v1beta1
17+
apiVersion: cluster.x-k8s.io/v1beta2
1818
kind: Cluster
1919
metadata:
2020
name: my-cluster

docs/book/src/user/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ a target [management cluster] on the selected [infrastructure provider].
9292
```bash
9393
cat > kind-cluster-with-extramounts.yaml <<EOF
9494
kind: Cluster
95-
apiVersion: kind.x-k8s.io/v1alpha4
95+
apiVersion: kind.x-k8s.io/v1beta2
9696
networking:
9797
ipFamily: dual
9898
nodes:
@@ -127,7 +127,7 @@ a target [management cluster] on the selected [infrastructure provider].
127127
```bash
128128
cat <<EOF > kind-config.yaml
129129
kind: Cluster
130-
apiVersion: kind.x-k8s.io/v1alpha4
130+
apiVersion: kind.x-k8s.io/v1beta2
131131
networking:
132132
# the default CNI will not be installed
133133
disableDefaultCNI: true

0 commit comments

Comments
 (0)