diff --git a/docs/book/src/developer/providers/getting-started/building-running-and-testing.md b/docs/book/src/developer/providers/getting-started/building-running-and-testing.md index 26d5d611444f..d095c356a9c9 100644 --- a/docs/book/src/developer/providers/getting-started/building-running-and-testing.md +++ b/docs/book/src/developer/providers/getting-started/building-running-and-testing.md @@ -140,7 +140,7 @@ You best watch the Kubernetes pods with something like `k9s -A` or `watch kubect Let's try our cluster out. We'll make some simple YAML: ```yaml -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: hello-mailgun @@ -149,7 +149,7 @@ spec: pods: cidrBlocks: ["192.168.0.0/16"] infrastructureRef: - apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 + apiGroup: infrastructure.cluster.x-k8s.io kind: MailgunCluster name: hello-mailgun --- diff --git a/docs/book/src/security/pod-security-standards.md b/docs/book/src/security/pod-security-standards.md index c8ab7801a560..2f677b912b50 100644 --- a/docs/book/src/security/pod-security-standards.md +++ b/docs/book/src/security/pod-security-standards.md @@ -195,7 +195,7 @@ It is also possible to disable this patch or configure different levels for the using variables. ```yaml -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: "my-cluster" diff --git a/docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md b/docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md index 9df31fae5d38..a5924c323dec 100644 --- a/docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md +++ b/docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md @@ -17,18 +17,18 @@ infrastructure object. ```yaml kind: DockerCluster -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 +apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 metadata: name: my-cluster-docker --- kind: Cluster -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 metadata: name: my-cluster spec: infrastructureRef: kind: DockerCluster - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 + apiGroup: infrastructure.cluster.x-k8s.io name: my-cluster-docker ``` diff --git a/docs/book/src/tasks/bootstrap/microk8s-bootstrap.md b/docs/book/src/tasks/bootstrap/microk8s-bootstrap.md index 5dfc805039a7..1bfea048b8a4 100644 --- a/docs/book/src/tasks/bootstrap/microk8s-bootstrap.md +++ b/docs/book/src/tasks/bootstrap/microk8s-bootstrap.md @@ -13,11 +13,11 @@ Cluster API bootstrap provider MicroK8s (CABPM) is a component responsible for g 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: ```yaml -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster spec: controlPlaneRef: - apiVersion: controlplane.cluster.x-k8s.io/v1beta1 + apiGroup: controlplane.cluster.x-k8s.io kind: MicroK8sControlPlane name: capi-aws-control-plane ``` diff --git a/docs/book/src/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.md b/docs/book/src/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.md index 9b9438fdabc3..dde07b375121 100644 --- a/docs/book/src/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.md +++ b/docs/book/src/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.md @@ -48,7 +48,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: BeforeClusterCreateRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster @@ -89,7 +89,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: AfterControlPlaneInitializedRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster @@ -130,7 +130,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: BeforeClusterUpgradeRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster @@ -179,7 +179,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: AfterControlPlaneUpgradeRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster @@ -216,7 +216,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: AfterClusterUpgradeRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster @@ -252,7 +252,7 @@ apiVersion: hooks.runtime.cluster.x-k8s.io/v1alpha1 kind: BeforeClusterDeleteRequest settings: cluster: - apiVersion: cluster.x-k8s.io/v1beta1 + apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: test-cluster diff --git a/docs/book/src/tasks/experimental-features/runtime-sdk/implement-topology-mutation-hook.md b/docs/book/src/tasks/experimental-features/runtime-sdk/implement-topology-mutation-hook.md index b556632ccd88..d8ac15d833ce 100644 --- a/docs/book/src/tasks/experimental-features/runtime-sdk/implement-topology-mutation-hook.md +++ b/docs/book/src/tasks/experimental-features/runtime-sdk/implement-topology-mutation-hook.md @@ -133,7 +133,7 @@ Note: We enforce that variable conflicts have to be resolved by ClusterClass aut Variables that are defined with external variable definitions can be set like regular variables in Cluster `.spec.topology.variables`. ```yaml -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster #metadata spec: diff --git a/docs/book/src/tasks/using-kustomize.md b/docs/book/src/tasks/using-kustomize.md index bce36a89b681..71f8b4c129da 100644 --- a/docs/book/src/tasks/using-kustomize.md +++ b/docs/book/src/tasks/using-kustomize.md @@ -123,7 +123,7 @@ Add the following content to the `namereference.yaml` transformer configuration: ```yaml - kind: Cluster group: cluster.x-k8s.io - version: v1alpha3 + version: v1beta2 fieldSpecs: - path: spec/clusterName kind: MachineDeployment diff --git a/docs/book/src/tasks/workload-bootstrap-gitops.md b/docs/book/src/tasks/workload-bootstrap-gitops.md index 2a39e7d31eb2..89e25f5d9868 100644 --- a/docs/book/src/tasks/workload-bootstrap-gitops.md +++ b/docs/book/src/tasks/workload-bootstrap-gitops.md @@ -14,7 +14,7 @@ Follow the quickstart setup guide for your provider but ensure that CAAPH is ins Add the labels `argoCDChart: enabled` and `guestbook: enabled` to your desired workload cluster yaml file in the `Cluster` metadata section, for example: ```yaml -apiVersion: cluster.x-k8s.io/v1beta1 +apiVersion: cluster.x-k8s.io/v1beta2 kind: Cluster metadata: name: my-cluster diff --git a/docs/book/src/user/quick-start.md b/docs/book/src/user/quick-start.md index 8a2796da6202..332d9732f564 100644 --- a/docs/book/src/user/quick-start.md +++ b/docs/book/src/user/quick-start.md @@ -92,7 +92,7 @@ a target [management cluster] on the selected [infrastructure provider]. ```bash cat > kind-cluster-with-extramounts.yaml < kind-config.yaml kind: Cluster - apiVersion: kind.x-k8s.io/v1alpha4 + apiVersion: kind.x-k8s.io/v1beta2 networking: # the default CNI will not be installed disableDefaultCNI: true