Skip to content

Commit dfccbc7

Browse files
Allowing /run mapping to the device-plugin/dra volumes
1 parent 756ef27 commit dfccbc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/webhook/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func validateDRA(mod *kmmv1beta1.Module, kubeVersion *KubeVersion) error {
236236
return nil
237237
}
238238

239-
var allowedHostPathPrefixes = []string{"/dev", "/sys", "/var", "/opt"}
239+
var allowedHostPathPrefixes = []string{"/dev", "/sys", "/var", "/opt", "/run"}
240240

241241
func isAllowedHostPath(hostPath string) bool {
242242
p := filepath.Clean(hostPath)

0 commit comments

Comments
 (0)