Skip to content

fix: sanitize kernel versions in enable-local-drivers-distribution#1848

Open
kristina-solovyova wants to merge 1 commit intomainfrom
11-12-fix_sanitize_kernel_versions_in_enable-local-drivers-distribution
Open

fix: sanitize kernel versions in enable-local-drivers-distribution#1848
kristina-solovyova wants to merge 1 commit intomainfrom
11-12-fix_sanitize_kernel_versions_in_enable-local-drivers-distribution

Conversation

@kristina-solovyova
Copy link
Collaborator

@kristina-solovyova kristina-solovyova commented Nov 12, 2025

Fixed an issue in enable-local-drivers-distribution WekaPolicy operation where kernel versions containing special characters (e.g., 6.6.105+ on Google COS) caused Kubernetes label validation errors when labeling nodes and creating driver builder containers.

P.S.: We should not run enable-local-drivers-distribution on Google COS, but maybe we will hit same issue in other OSes

Changes:

  • Added sanitizeKernelVersionForLabel() and sanitizeForDNS1123() helper functions
  • Sanitize kernel versions when setting weka.io/kernel labels on nodes
  • Sanitize kernel versions in builder container labels and nodeSelectors
  • Keep original kernel version in instruction payload for uname -r validation

Example: Kernel 6.6.105+ becomes 6.6.105 in labels, allowing driver builder pods to schedule correctly.

Copy link
Collaborator Author

kristina-solovyova commented Nov 12, 2025


How to use the Graphite Merge Queue

Add the label main-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kristina-solovyova kristina-solovyova marked this pull request as ready for review November 12, 2025 12:52
@graphite-app graphite-app bot requested review from assafgi and tigrawap November 12, 2025 12:52
@graphite-app
Copy link

graphite-app bot commented Nov 12, 2025

Graphite Automations

"Add anton/matt/sergey/kristina as reviwers on operator PRs" took an action on this PR • (11/12/25)

2 reviewers were added to this PR based on Anton Bykov's automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants