Exemplo 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
}
Exemplo n.º 2
0
func prettyWireStorage() string {
	types := kubecfg.SupportedWireStorage()
	sort.Strings(types)
	return strings.Join(types, "|")
}