f5devcentral / f5-ipam-controller

Apache License 2.0
4 stars 4 forks source link

IPAM Controller doesnt release FQDN/IP #9

Open jmcalalang opened 3 years ago

jmcalalang commented 3 years ago

This may be intentional, but when deleting a virtualserver resource the IP address and FQDN are not released from the F5IPAM.

calalang@FLD-ML-00029249 IPAM % kubectl get virtualserver
No resources found in default namespace.
calalang@FLD-ML-00029249 IPAM % kubectl describe F5IPAM f5ipam.sample -n kube-system
Name:         f5ipam.sample
Namespace:    kube-system
Labels:       <none>
Annotations:  <none>
API Version:  fic.f5.com/v1
Kind:         F5IPAM
Metadata:
  Creation Timestamp:  2021-01-25T08:11:08Z
  Generation:          3
  Managed Fields:
    API Version:  fic.f5.com/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:IPStatus:
    Manager:      Go-http-client
    Operation:    Update
    Time:         2021-01-25T08:11:08Z
    API Version:  fic.f5.com/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:hostSpecs:
    Manager:         kubectl-client-side-apply
    Operation:       Update
    Time:            2021-01-25T08:11:08Z
  Resource Version:  24824
  Self Link:         /apis/fic.f5.com/v1/namespaces/kube-system/f5ipams/f5ipam.sample
  UID:               fde40264-efad-45e2-ac9c-2132e82c022a
Spec:
  Host Specs:
    Cidr:  10.0.2.0/24
    Host:  calalang-azure3.westus2.cloudapp.azure.com
    Cidr:  10.0.2.0/24
    Host:  calalang-azure4.westus2.cloudapp.azure.com
Status:
  IP Status:
    Cidr:  10.0.2.0/24
    Host:  calalang-azure3.westus2.cloudapp.azure.com
    Ip:    10.0.2.13
    Cidr:  10.0.2.0/24
    Host:  calalang-azure4.westus2.cloudapp.azure.com
    Ip:    10.0.2.14
Events:    <none>
calalang@FLD-ML-00029249 IPAM % 
subbuv26 commented 3 years ago

@jmcalalang IPAM Controller works according to the Spec of the F5IPAM resource. If a VirtualServer resource gets deleted, the corresponding Ingress Controller should remove the associated entry from the Spec of F5IPAM resource, then IPAM Controller releases the IP address.

jmcalalang commented 3 years ago

But it doesn't. You can see there I didn't have any resources, but in F5IPAM, they still show up. Was there a change in a recent release to fix this?