{{- if .Values.cni.resourceQuotas.enabled }} apiVersion: v1 kind: ResourceQuota metadata: name: {{ template "name" . }}-resource-quota namespace: {{ .Release.Namespace }} spec: hard: pods: {{ .Values.cni.resourceQuotas.pods | quote }} scopeSelector: matchExpressions: - operator: In scopeName: PriorityClass values: - system-node-critical {{- end }}