forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: kube-controller-manager: exclude some origin resou…
…rces from quota OpenShift-Rebase-Source: 7d2a074
- Loading branch information
1 parent
d8b50a1
commit b7c126e
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package install | ||
|
||
import "k8s.io/apimachinery/pkg/runtime/schema" | ||
|
||
func init() { | ||
newIgnoredResources := map[schema.GroupResource]struct{}{ | ||
{Group: "extensions", Resource: "networkpolicies"}: {}, | ||
{Group: "", Resource: "bindings"}: {}, | ||
{Group: "", Resource: "componentstatuses"}: {}, | ||
{Group: "", Resource: "events"}: {}, | ||
{Group: "authentication.k8s.io", Resource: "tokenreviews"}: {}, | ||
{Group: "authorization.k8s.io", Resource: "subjectaccessreviews"}: {}, | ||
{Group: "authorization.k8s.io", Resource: "selfsubjectaccessreviews"}: {}, | ||
{Group: "authorization.k8s.io", Resource: "localsubjectaccessreviews"}: {}, | ||
{Group: "authorization.k8s.io", Resource: "selfsubjectrulesreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "selfsubjectaccessreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "subjectaccessreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "localsubjectaccessreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "resourceaccessreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "localresourceaccessreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "selfsubjectrulesreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "subjectrulesreviews"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "roles"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "rolebindings"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "clusterroles"}: {}, | ||
{Group: "authorization.openshift.io", Resource: "clusterrolebindings"}: {}, | ||
{Group: "apiregistration.k8s.io", Resource: "apiservices"}: {}, | ||
{Group: "apiextensions.k8s.io", Resource: "customresourcedefinitions"}: {}, | ||
} | ||
for k, v := range newIgnoredResources { | ||
ignoredResources[k] = v | ||
} | ||
} |