Skip to content

Commit 6d2bf01

Browse files
committed
feat: support for the Proxmox Cluster API provider by IONOS
Signed-off-by: Dario Tranchitella <[email protected]>
1 parent c2177bb commit 6d2bf01

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

config/control-plane-components.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -13375,6 +13375,7 @@ rules:
1337513375
- apiGroups:
1337613376
- infrastructure.cluster.x-k8s.io
1337713377
resources:
13378+
- proxmoxclusters
1337813379
- tinkerbellclusters
1337913380
- vsphereclusters
1338013381
verbs:

config/rbac/role.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ rules:
8383
- apiGroups:
8484
- infrastructure.cluster.x-k8s.io
8585
resources:
86+
- proxmoxclusters
8687
- tinkerbellclusters
8788
- vsphereclusters
8889
verbs:

controllers/kamajicontrolplane_controller_cluster_patch.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func (r *KamajiControlPlaneReconciler) patchCluster(ctx context.Context, cluster
5050
return r.patchOpenStackCluster(ctx, cluster, endpoint, port)
5151
case "PacketCluster":
5252
return r.patchGenericCluster(ctx, cluster, endpoint, port, true)
53+
case "ProxmoxCluster":
54+
return r.checkOrPatchGenericCluster(ctx, cluster, endpoint, port)
5355
case "TinkerbellCluster":
5456
return r.checkOrPatchGenericCluster(ctx, cluster, endpoint, port)
5557
case "VSphereCluster":
@@ -59,8 +61,8 @@ func (r *KamajiControlPlaneReconciler) patchCluster(ctx context.Context, cluster
5961
}
6062
}
6163

62-
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=vsphereclusters;tinkerbellclusters,verbs=get
63-
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=vsphereclusters;tinkerbellclusters,verbs=patch
64+
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=proxmoxclusters;vsphereclusters;tinkerbellclusters,verbs=get
65+
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=proxmoxclusters;vsphereclusters;tinkerbellclusters,verbs=patch
6466

6567
func (r *KamajiControlPlaneReconciler) checkOrPatchGenericCluster(ctx context.Context, cluster capiv1beta1.Cluster, endpoint string, port int64) error {
6668
if err := r.checkGenericCluster(ctx, cluster, endpoint, port); err != nil {

0 commit comments

Comments
 (0)