{{- if .Values.resourceQuotas.create }} apiVersion: v1 kind: ResourceQuota metadata: creationTimestamp: null labels: app: {{ template "storageos.name" . }} app.kubernetes.io/component: operator chart: {{ template "storageos.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: storageos-critical-pods namespace: {{ template "cluster.namespace" . }} spec: hard: pods: {{ .Values.resourceQuotas.pods }} scopeSelector: matchExpressions: - operator: In scopeName: PriorityClass values: - system-cluster-critical - system-node-critical {{- end }}