{"id":22930663,"url":"https://github.com/kubewarden/deprecated-api-versions-policy","last_synced_at":"2025-08-12T15:31:34.295Z","repository":{"id":65367073,"uuid":"557363598","full_name":"kubewarden/deprecated-api-versions-policy","owner":"kubewarden","description":"A Kubewarden Policy that detects usage of deprecated and dropped Kubernetes resources","archived":false,"fork":false,"pushed_at":"2024-12-10T00:14:33.000Z","size":260,"stargazers_count":15,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-10T01:20:14.039Z","etag":null,"topics":["hacktoberfest","kubernetes","kubernetes-security","kubewarden-policy","policy-as-code","webassembly"],"latest_commit_sha":null,"homepage":"https://kubewarden.io","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kubewarden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-25T14:53:22.000Z","updated_at":"2024-12-09T10:40:31.000Z","dependencies_parsed_at":"2023-11-07T09:28:30.310Z","dependency_job_id":"3293a08d-36ce-41cf-b67e-95d464cdbf7f","html_url":"https://github.com/kubewarden/deprecated-api-versions-policy","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubewarden%2Fdeprecated-api-versions-policy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubewarden%2Fdeprecated-api-versions-policy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubewarden%2Fdeprecated-api-versions-policy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubewarden%2Fdeprecated-api-versions-policy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubewarden","download_url":"https://codeload.github.com/kubewarden/deprecated-api-versions-policy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229694588,"owners_count":18108931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","kubernetes","kubernetes-security","kubewarden-policy","policy-as-code","webassembly"],"created_at":"2024-12-14T10:29:13.680Z","updated_at":"2025-08-12T15:31:34.274Z","avatar_url":"https://github.com/kubewarden.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Kubewarden Policy Repository](https://github.com/kubewarden/community/blob/main/badges/kubewarden-policies.svg)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#policy-scope)\n[![Stable](https://img.shields.io/badge/status-stable-brightgreen?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable)\n\n# Kubewarden policy deprecated-api-versions\n\n## Description\n\nThis policy detects usage of Kubernetes resources that have been deprecated\nor removed.\n\nAt deployment time, the operator must provide a Kubernetes version to use when\nlooking for deprecation/removal objects.\nThis is done via the `kubernetes_version` attribute.\n\nFor example, given the following configuration:\n\n```yaml\nkubernetes_version: \"1.24.2\"\n```\n\nThe policy will detect all the Kubernetes resources that are deprecated or removed\nstarting from the Kubernetes version `1.24.2`.\n\n## Keeping up with Kubernetes deprecations\n\nKubernetes deprecation evolve over the time. As soon as new deprecations are\nadded this policy will be updated.\n\nCurrently, this policy is aware of deprecations introduced up to the Kubernetes **1.32.0** release.\n\n## Deprecated but not yet removed resources\n\nBy default the policy will prevent the usage of Kubernetes resources that are\nalready deprecated, but not yet removed.\n\nThis behaviour can be changed via the `deny_on_deprecation` setting.\n\nFor example, let's assume we are using an old version of Kubernetes like\n`1.19.3` and someone is attempting to create a `extensions/v1beta1/Ingress`\nobject.\n\nThis kind of resource has been deprecated starting from `v1.14.0` of Kubernetes,\nbut it has been removed starting from version `v1.22.0`.\n\nGiven the following configuration:\n\n```yaml\nkubernetes_version: \"1.19.0\"\ndeny_on_deprecation: false\n```\n\nThe `extensions/v1beta1/Ingress` object will be accepted inside of the cluster.\n\nOn the other hand, it would be blocked with this configuration:\n\n```yaml\nkubernetes_version: \"1.19.0\"\ndeny_on_deprecation: true # note: this is set to true by default\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubewarden%2Fdeprecated-api-versions-policy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubewarden%2Fdeprecated-api-versions-policy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubewarden%2Fdeprecated-api-versions-policy/lists"}