@@ -50,6 +50,8 @@ func (r *KamajiControlPlaneReconciler) patchCluster(ctx context.Context, cluster
50
50
return r .patchOpenStackCluster (ctx , cluster , endpoint , port )
51
51
case "PacketCluster" :
52
52
return r .patchGenericCluster (ctx , cluster , endpoint , port , true )
53
+ case "ProxmoxCluster" :
54
+ return r .checkOrPatchGenericCluster (ctx , cluster , endpoint , port )
53
55
case "TinkerbellCluster" :
54
56
return r .checkOrPatchGenericCluster (ctx , cluster , endpoint , port )
55
57
case "VSphereCluster" :
@@ -59,8 +61,8 @@ func (r *KamajiControlPlaneReconciler) patchCluster(ctx context.Context, cluster
59
61
}
60
62
}
61
63
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
64
66
65
67
func (r * KamajiControlPlaneReconciler ) checkOrPatchGenericCluster (ctx context.Context , cluster capiv1beta1.Cluster , endpoint string , port int64 ) error {
66
68
if err := r .checkGenericCluster (ctx , cluster , endpoint , port ); err != nil {
0 commit comments