Skip to content

Commit

Permalink
namespace: edit CleanObjects [4.15] (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaggapa authored Feb 4, 2025
1 parent 9aa5096 commit 4ad5445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (builder *Builder) CleanObjects(cleanTimeout time.Duration, objects ...sche
objList, err := builder.apiClient.Resource(resource).Namespace(builder.Definition.Name).List(
context.Background(), metaV1.ListOptions{})

if err != nil || len(objList.Items) > 1 {
if err != nil || len(objList.Items) > 0 {
// avoid timeout due to default automatically created openshift
// configmaps: kube-root-ca.crt openshift-service-ca.crt
if resource.Resource == "configmaps" {
Expand Down

0 comments on commit 4ad5445

Please sign in to comment.