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:
@ -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()
|
||||
|
Reference in New Issue
Block a user