From 03447e2c722257fd68a38b1ffb0649e2de0031f3 Mon Sep 17 00:00:00 2001 From: sp-yduck Date: Fri, 10 Nov 2023 22:36:25 +0900 Subject: [PATCH 1/2] fix crd --- .../bases/infrastructure.cluster.x-k8s.io_proxmoxmachines.yaml | 1 + .../infrastructure.cluster.x-k8s.io_proxmoxmachinetemplates.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachines.yaml index 1b6a3cf..65944e9 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachines.yaml @@ -239,6 +239,7 @@ spec: cpu: default: 2 description: 'number of CPU cores : 1 ~' + minimum: 1 type: integer cpuLimit: description: Limit of CPU usage. If the computer has 2 CPUs, it diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachinetemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachinetemplates.yaml index 45866a7..f47a2c0 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxmachinetemplates.yaml @@ -256,6 +256,7 @@ spec: cpu: default: 2 description: 'number of CPU cores : 1 ~' + minimum: 1 type: integer cpuLimit: description: Limit of CPU usage. If the computer has 2 From 753abe197d969cc8bb7f0c4f7b08947b627c2ca6 Mon Sep 17 00:00:00 2001 From: sp-yduck Date: Fri, 10 Nov 2023 22:38:14 +0900 Subject: [PATCH 2/2] update README.md: v0.3.2 to v0.3.3 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 667c11a..f5413a3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ for more information : https://cluster-api.sigs.k8s.io/user/quick-start.html#ini ```sh # install cluster-api components export EXP_CLUSTER_RESOURCE_SET=true -clusterctl init --infrastructure=proxmox:v0.3.2 --config https://raw.githubusercontent.com/sp-yduck/cluster-api-provider-proxmox/main/clusterctl.yaml +clusterctl init --infrastructure=proxmox:v0.3.3 --config https://raw.githubusercontent.com/sp-yduck/cluster-api-provider-proxmox/main/clusterctl.yaml ``` **Note:** container images are available at [ghcr.io/sp-yduck/cluster-api-provider-proxmox:\](https://github.com/sp-yduck/cluster-api-provider-proxmox/pkgs/container/cluster-api-provider-proxmox) @@ -32,7 +32,7 @@ export PROXMOX_PASSWORD=password export PROXMOX_USER=user@pam # generate manifests (available flags: --target-namespace, --kubernetes-version, --control-plane-machine-count, --worker-machine-count) -clusterctl generate cluster cappx-test --control-plane-machine-count=3 --infrastructure=proxmox:v0.3.2 --config https://raw.githubusercontent.com/sp-yduck/cluster-api-provider-proxmox/main/clusterctl.yaml > cappx-test.yaml +clusterctl generate cluster cappx-test --control-plane-machine-count=3 --infrastructure=proxmox:v0.3.3 --config https://raw.githubusercontent.com/sp-yduck/cluster-api-provider-proxmox/main/clusterctl.yaml > cappx-test.yaml # inspect and edit vi cappx-test.yaml