- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateAbsolutePath (0.14 sec)
-
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
if e.External.CAFile != "" { allErrs = append(allErrs, ValidateAbsolutePath(e.External.CAFile, externalPath.Child("caFile"))...) } if e.External.CertFile != "" { allErrs = append(allErrs, ValidateAbsolutePath(e.External.CertFile, externalPath.Child("certFile"))...) } if e.External.KeyFile != "" { allErrs = append(allErrs, ValidateAbsolutePath(e.External.KeyFile, externalPath.Child("keyFile"))...) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 33.4K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go
{name: "relative path", path: "./tmp", expectedErrors: true}, {name: "invalid path", path: "foo..", expectedErrors: true}, } for _, tc := range tests { actual := ValidateAbsolutePath(tc.path, field.NewPath("certificatesDir")) actualErrors := len(actual) > 0 if actualErrors != tc.expectedErrors {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 46.1K bytes - Viewed (0)