Skip to content

Commit

Permalink
feat: Update supported Kubernetes versions in outdated-k8s-version rule
Browse files Browse the repository at this point in the history
This commit updates the supported Kubernetes versions in the `outdated-k8s-version` rule. The versions `v1.31`, `v1.30`, and `v1.29` are now considered supported.

Signed-off-by: kooomix <[email protected]>
  • Loading branch information
kooomix committed Aug 15, 2024
1 parent 2c91979 commit 2410245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/outdated-k8s-version/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deny[msga] {

has_outdated_version(version) {
# the `supported_k8s_versions` is validated in the validations script against "https://api.github.com/repos/kubernetes/kubernetes/releases"
supported_k8s_versions := ["v1.30", "v1.29", "v1.28"]
supported_k8s_versions := ["v1.31", "v1.30", "v1.29"]
every v in supported_k8s_versions{
not startswith(version, v)
}
Expand Down

0 comments on commit 2410245

Please sign in to comment.