1
0
mirror of https://github.com/cmur2/kube-stale-resources.git synced 2025-06-29 10:30:25 +02:00

ci: add e2e tests using kind + k8s

This commit is contained in:
Christian Nicolai
2020-08-21 14:19:51 +02:00
committed by Christian Nicolai
parent 9ada4edb06
commit 297c5e6a28
6 changed files with 78 additions and 2 deletions

View File

@ -20,6 +20,7 @@ BLACKLIST_REGEXS = [
r'^.*:batch/v1:Job:.*-\d{10,}$', # jobs created by cron jobs with unix timestamp suffix
r'^.*:metrics.k8s.io/v1beta1:PodMetrics:.*$',
r'^.*:v1:Endpoints:.*$',
r'^.*:.*:EndpointSlice:.*$',
r'^.*:v1:Event:.*$',
r'^.*:v1:Pod:.*$',
r'^.*:v1:Secret:.*-token-\S{5}$', # secrets with token for service accounts
@ -166,6 +167,8 @@ def main():
print(' ' + x)
print("..", counter, "entries")
sys.exit(len(list(slive - starget)))
if __name__ == "__main__":
main()