Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigMaps command doesn't yield any results #21

Closed
bittner opened this issue May 9, 2020 · 1 comment
Closed

ConfigMaps command doesn't yield any results #21

bittner opened this issue May 9, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@bittner
Copy link
Contributor

bittner commented May 9, 2020

There seems to be a bug in seiso configmaps. It doesn't yield any results, e.g.

$ seiso configmaps -n myproject -l app=myapp --older-than 1d --keep 1
INFO Nothing found to be deleted.

However:

$ oc get configmap -n myproject -l app=myapp -o name | wc -l
49

seiso secrets, on the other hand, works as expected.

Interestingly, when setting the age to "anything" some results are found, e.g.

$ seiso configmaps -n myproject -l app=myapp --older-than 0d --keep 1
...

I'm running the current version from master.

@bittner bittner added the bug Something isn't working label May 9, 2020
@bittner
Copy link
Contributor Author

bittner commented May 9, 2020

Trying again on a different namespace I managed to be more lucky.

Looks like this could have all been just confusion, probably for the unluckily high default values of --older-than and --keep, and the fact that you need to use both to get as many results as you would expect to get.

I opened #22 as a follow-up issue.

@bittner bittner closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant