├── .flake8 ├── .gitignore ├── .pre-commit-config.yaml ├── .travis.yml ├── Dockerfile ├── LICENSE ├── Makefile ├── README.rst ├── deploy ├── deployment.yaml ├── kustomization.yaml ├── rbac.yaml └── rules.yaml ├── examples └── sidecar │ ├── deployment.yaml │ └── rbac.yaml ├── kube_janitor ├── __init__.py ├── __main__.py ├── cmd.py ├── example_hooks.py ├── helper.py ├── janitor.py ├── main.py ├── resource_context.py ├── resources.py ├── rules.py └── shutdown.py ├── poetry.lock ├── pyproject.toml ├── tests ├── test_clean_up.py ├── test_cmd.py ├── test_delete_notification.py ├── test_format_duration.py ├── test_main.py ├── test_parse_expiry.py ├── test_parse_ttl.py ├── test_resource_context.py ├── test_resources.py ├── test_rules.py └── test_shutdown.py └── unsupported └── helm ├── .helmignore ├── Chart.yaml ├── README.md ├── index.yaml ├── kube-janitor-0.1.0.tgz ├── kube-janitor-0.2.0.tgz ├── templates ├── _helpers.tpl ├── cluster-role-binding.yaml ├── cluster-role.yaml ├── configmap.yaml ├── cron-job.yaml └── service-account.yaml └── values.yaml /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=240 3 | ignore=E722,W503 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/.travis.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/Makefile -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | Moved to https://codeberg.org/hjacobs/kube-janitor 2 | -------------------------------------------------------------------------------- /deploy/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/deploy/deployment.yaml -------------------------------------------------------------------------------- /deploy/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/deploy/kustomization.yaml -------------------------------------------------------------------------------- /deploy/rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/deploy/rbac.yaml -------------------------------------------------------------------------------- /deploy/rules.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/deploy/rules.yaml -------------------------------------------------------------------------------- /examples/sidecar/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/examples/sidecar/deployment.yaml -------------------------------------------------------------------------------- /examples/sidecar/rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/examples/sidecar/rbac.yaml -------------------------------------------------------------------------------- /kube_janitor/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "2019.2.1dev0" # will be replaced during build 2 | -------------------------------------------------------------------------------- /kube_janitor/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/__main__.py -------------------------------------------------------------------------------- /kube_janitor/cmd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/cmd.py -------------------------------------------------------------------------------- /kube_janitor/example_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/example_hooks.py -------------------------------------------------------------------------------- /kube_janitor/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/helper.py -------------------------------------------------------------------------------- /kube_janitor/janitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/janitor.py -------------------------------------------------------------------------------- /kube_janitor/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/main.py -------------------------------------------------------------------------------- /kube_janitor/resource_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/resource_context.py -------------------------------------------------------------------------------- /kube_janitor/resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/resources.py -------------------------------------------------------------------------------- /kube_janitor/rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/rules.py -------------------------------------------------------------------------------- /kube_janitor/shutdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/kube_janitor/shutdown.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/test_clean_up.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_clean_up.py -------------------------------------------------------------------------------- /tests/test_cmd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_cmd.py -------------------------------------------------------------------------------- /tests/test_delete_notification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_delete_notification.py -------------------------------------------------------------------------------- /tests/test_format_duration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_format_duration.py -------------------------------------------------------------------------------- /tests/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_main.py -------------------------------------------------------------------------------- /tests/test_parse_expiry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_parse_expiry.py -------------------------------------------------------------------------------- /tests/test_parse_ttl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_parse_ttl.py -------------------------------------------------------------------------------- /tests/test_resource_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_resource_context.py -------------------------------------------------------------------------------- /tests/test_resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_resources.py -------------------------------------------------------------------------------- /tests/test_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_rules.py -------------------------------------------------------------------------------- /tests/test_shutdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/tests/test_shutdown.py -------------------------------------------------------------------------------- /unsupported/helm/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/.helmignore -------------------------------------------------------------------------------- /unsupported/helm/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/Chart.yaml -------------------------------------------------------------------------------- /unsupported/helm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/README.md -------------------------------------------------------------------------------- /unsupported/helm/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/index.yaml -------------------------------------------------------------------------------- /unsupported/helm/kube-janitor-0.1.0.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/kube-janitor-0.1.0.tgz -------------------------------------------------------------------------------- /unsupported/helm/kube-janitor-0.2.0.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/kube-janitor-0.2.0.tgz -------------------------------------------------------------------------------- /unsupported/helm/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/_helpers.tpl -------------------------------------------------------------------------------- /unsupported/helm/templates/cluster-role-binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/cluster-role-binding.yaml -------------------------------------------------------------------------------- /unsupported/helm/templates/cluster-role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/cluster-role.yaml -------------------------------------------------------------------------------- /unsupported/helm/templates/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/configmap.yaml -------------------------------------------------------------------------------- /unsupported/helm/templates/cron-job.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/cron-job.yaml -------------------------------------------------------------------------------- /unsupported/helm/templates/service-account.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/templates/service-account.yaml -------------------------------------------------------------------------------- /unsupported/helm/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hjacobs/kube-janitor/HEAD/unsupported/helm/values.yaml --------------------------------------------------------------------------------