rancher-partner-charts/charts/ondat/ondat-operator/templates/resource-quota.yaml

25 lines
637 B
YAML

{{- 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 }}