Esempio n. 1
0
//checkStorage returns true if the provided storage is valid
func checkStorage(storage string) bool {
	for _, allowed := range kubecfg.SupportedWireStorage() {
		if allowed == storage {
			return true
		}
	}
	return false
}
Esempio n. 2
0
func prettyWireStorage() string {
	types := kubecfg.SupportedWireStorage()
	sort.Strings(types)
	return strings.Join(types, "|")
}