concept resource quota in category openshift

This is an excerpt from Manning's book OpenShift in Action.
Any time you have a shared environment, you need processes in place to ensure that one user or project doesn’t take up too many resources in your cluster—either accidentally or on purpose. Limit ranges and resource quotas are the processes that manage this potential problem. In OpenShift, these resource constraints are different for each deployment, depending on whether explicit resource quotas are requested.
Resource quotas track all resources in a project that are deployed by Kubernetes. Core components in OpenShift, like deployment configs and build configs, aren’t covered by quotas; that’s because these components are created on demand for each deployment and controlled by OpenShift.
The components that are managed by resource quotas are the primary resources in an OpenShift cluster that consume storage and compute resources. Keeping track of a project’s resources is important when you need to plan how to grow and manage your OpenShift cluster to accommodate your applications. The following components are tracked by resource quotas:
Listing 9.3. Template to create resource quotas
apiVersion: v1 kind: ResourceQuota metadata: name: core-object-counts #1 spec: hard: #2 configmaps: "10" persistentvolumeclaims: "5" resourcequotas: "5" replicationcontrollers: "20" secrets: "50" services: "10" openshift.io/Image streams: "10" #1 Name for the resource quota #2 Limits for resource types !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":3,\"ch\":39},{\"line\":3,\"ch\":41}],[{\"line\":14,\"ch\":0},{\"line\":14,\"ch\":2}],[{\"line\":5,\"ch\":39},{\"line\":5,\"ch\":41}],[{\"line\":15,\"ch\":0},{\"line\":15,\"ch\":2}]]"} !@%STYLE%@!