Beispiel #1
0
func convertToSARExtra(extra map[string][]string) map[string]authorization.ExtraValue {
	if extra == nil {
		return nil
	}
	ret := map[string]authorization.ExtraValue{}
	for k, v := range extra {
		ret[k] = authorization.ExtraValue(v)
	}

	return ret
}
Beispiel #2
0
func convertToSARExtra(extra map[string][]string) map[string]v1beta1.ExtraValue {
	if extra == nil {
		return nil
	}
	ret := map[string]v1beta1.ExtraValue{}
	for k, v := range extra {
		ret[k] = v1beta1.ExtraValue(v)
	}

	return ret
}