func addClusterPolicyBinding(bindings map[string]map[string]authorizationapi.ClusterPolicyBinding, binding authorizationapi.ClusterPolicyBinding) { resourceVersion += 1 binding.ResourceVersion = fmt.Sprintf("%d", resourceVersion) namespacedBindings, ok := bindings[binding.Namespace] if !ok { namespacedBindings = make(map[string]authorizationapi.ClusterPolicyBinding) bindings[binding.Namespace] = namespacedBindings } namespacedBindings[binding.Name] = binding }
func convert_v1beta3_ClusterPolicyBinding_To_api_ClusterPolicyBinding(in *ClusterPolicyBinding, out *newer.ClusterPolicyBinding, s conversion.Scope) error { out.LastModified = in.LastModified out.RoleBindings = make(map[string]*newer.ClusterRoleBinding) return s.DefaultConvert(in, out, conversion.IgnoreMissingFields) }