Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validatePathNoBacksteps (0.35 sec)

  1. pkg/apis/core/validation/validation.go

    	if path.IsAbs(targetPath) {
    		allErrs = append(allErrs, field.Invalid(fldPath, targetPath, "must be a relative path"))
    	}
    
    	allErrs = append(allErrs, validatePathNoBacksteps(targetPath, fldPath)...)
    
    	return allErrs
    }
    
    // validatePathNoBacksteps makes sure the targetPath does not have any `..` path elements when split
    //
    // This assumes the OS of the apiserver and the nodes are the same. The same check should be done
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top