@@ -44,14 +44,6 @@ import (
44
44
pooltypes "sigs.k8s.io/cluster-api-ipam-provider-in-cluster/pkg/types"
45
45
)
46
46
47
- const (
48
- // ReleaseAddressFinalizer is used to release an IP address before cleaning up the claim.
49
- ReleaseAddressFinalizer = "ipam.cluster.x-k8s.io/ReleaseAddress"
50
-
51
- // ProtectAddressFinalizer is used to prevent deletion of an IPAddress object while its claim is not deleted.
52
- ProtectAddressFinalizer = "ipam.cluster.x-k8s.io/ProtectAddress"
53
- )
54
-
55
47
type genericInClusterPool interface {
56
48
client.Object
57
49
PoolSpec () * v1alpha2.InClusterIPPoolSpec
@@ -166,7 +158,7 @@ func (i *InClusterProviderAdapter) ClaimHandlerFor(_ client.Client, claim *ipamv
166
158
//+kubebuilder:rbac:groups=ipam.cluster.x-k8s.io,resources=ipaddressclaims,verbs=get;list;watch;update;patch
167
159
//+kubebuilder:rbac:groups=ipam.cluster.x-k8s.io,resources=ipaddresses,verbs=get;list;watch;create;update;patch;delete
168
160
//+kubebuilder:rbac:groups=ipam.cluster.x-k8s.io,resources=ipaddressclaims/status;ipaddresses/status,verbs=get;update;patch
169
- //+kubebuilder:rbac:groups=ipam.cluster.x-k8s.io,resources=ipaddressclaims/status ;ipaddresses/finalizers,verbs=update
161
+ //+kubebuilder:rbac:groups=ipam.cluster.x-k8s.io,resources=ipaddressclaims/finalizers ;ipaddresses/finalizers,verbs=update
170
162
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch
171
163
172
164
// FetchPool fetches the (Global)InClusterIPPool.
0 commit comments