Merge pull request #1402 from Yiyiyimu/patch-1

chore: update error for wrong volume type
This commit is contained in:
Kubernetes Prow Robot 2021-08-05 05:41:22 -07:00 committed by GitHub
commit 4386b5af7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ func ValidateFlags(bundle string, args []string, cmd *cobra.Command, opt *kobjec
} }
if opt.Volumes != "persistentVolumeClaim" && opt.Volumes != "emptyDir" && opt.Volumes != "hostPath" && opt.Volumes != "configMap" { if opt.Volumes != "persistentVolumeClaim" && opt.Volumes != "emptyDir" && opt.Volumes != "hostPath" && opt.Volumes != "configMap" {
log.Fatal("Unknown Volume type: ", opt.Volumes, ", possible values are: persistentVolumeClaim, configMap and emptyDir") log.Fatal("Unknown Volume type: ", opt.Volumes, ", possible values are: persistentVolumeClaim, hostPath, configMap and emptyDir")
} }
} }