Skip to content

Sweep and adjust filesystem Stat/Lstat/EvalSymlinks calls in go 1.23 #361

@mauriciopoppe

Description

@mauriciopoppe

Context: kubernetes/kubernetes#129084

Go 1.23 changed stdlib behavior of filesystem calls Stat / Lstat / EvalSymlinks on Windows. This broke some kubelet handling of volumes on Windows, and possibly other use of those functions. For Kubernetes 1.32, the behavior was temporarily reverted via godebug switches in kubernetes/kubernetes#129083, but this is not a long-term solution. Libraries like k8s.io/mount-utils can be used by downstream consumers building with go 1.23 and get unintented behavior.

Even though this project hasn't been updated to use go 1.23 (still using go 1.20), it's possible that the project is built from source using a different go runtime. If the project is built with go 1.23+

Also read kubernetes/kubernetes#129103

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions