Page MenuHomePhabricator

Update kubeconform schema and CI checks to new target Kubernetes version
Closed, ResolvedPublic

Description

For the upcoming Kubernetes upgrade (T341984) we have to ensure all of our charts are compatible with the new Kubernetes version (currently validating against 1.27).

So the tool which is validating the helm charts (kubeconform) has to be updated to the new target version 1.31

Event Timeline

Jelto triaged this task as Medium priority.Nov 15 2024, 11:30 AM
Jelto updated the task description. (Show Details)

Change #1091734 had a related patch set uploaded (by Jelto; author: Jelto):

[integration/config@master] helm-linter: Bump version to update kubeconform-json-schema (k8s 1.31.2)

https://gerrit.wikimedia.org/r/1091734

Change #1091737 had a related patch set uploaded (by Jelto; author: Jelto):

[integration/config@master] jjb: bump helm-linter image to newest version (0.6.1)

https://gerrit.wikimedia.org/r/1091737

Change #1091734 merged by jenkins-bot:

[integration/config@master] helm-linter: Bump version to update kubeconform-json-schema (k8s 1.31.2)

https://gerrit.wikimedia.org/r/1091734

Change #1091737 merged by jenkins-bot:

[integration/config@master] jjb: bump helm-linter image to newest version (0.6.1)

https://gerrit.wikimedia.org/r/1091737

I’ve added the new Kubernetes API schema in the MR above. With the rebuild of docker-registry.wikimedia.org/releng/helm-linter, this schema is now available in the latest image.

Locally, I updated KUBERNETES_VERSIONS in the rake linting task to include 1.31.2. The linting runs cleanly on my end—no errors so far. I’ll upload a patch to lint deployment-charts against the new 1.31.2 version as well.

Change #1092780 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/deployment-charts@master] rake_modules: also lint charts against 1.31.2

https://gerrit.wikimedia.org/r/1092780

Change #1092780 merged by jenkins-bot:

[operations/deployment-charts@master] rake_modules: also lint charts against 1.31.2

https://gerrit.wikimedia.org/r/1092780

Jelto updated the task description. (Show Details)

Kubeconform now lints and validates the deployments-charts repository against version 1.31.2. No schema violations were found. I’m closing this task optimistically. If any issues arise when applying the charts to a real 1.31.2 API server, we can create a follow-up task.