Skip to content

Commit

Permalink
Revert "Fix:CIS not deleting old f5ipam cr which is not in use (#1920)…
Browse files Browse the repository at this point in the history
…" (#1945)

This reverts commit ad18d8b.
  • Loading branch information
agupta49 authored Aug 9, 2021
1 parent e23a66b commit bd87d70
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/crmanager/crManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,6 @@ func (crMgr *CRManager) createIPAMResource() error {
}
crMgr.ipamCR = IPAMNamespace + "/" + crName

//Get all IPAMS
ipams, err := crMgr.ipamCli.List(IPAMNamespace)
if err == nil {
for _, ipam := range ipams {
err = crMgr.ipamCli.Delete(ipam.Namespace, ipam.Name, metaV1.DeleteOptions{})
if err != nil {
log.Debugf("[ipam] Delete failed. Error: %s", err.Error())
}
}
}

ipamCR, err := crMgr.ipamCli.Create(f5ipam)
if err == nil {
log.Debugf("[ipam] Created IPAM Custom Resource: \n%v\n", ipamCR)
Expand Down

0 comments on commit bd87d70

Please sign in to comment.