diff --git a/chart/templates/limitrange.yaml b/chart/templates/limitrange.yaml index fb0221f53..ff60e002f 100644 --- a/chart/templates/limitrange.yaml +++ b/chart/templates/limitrange.yaml @@ -32,6 +32,16 @@ spec: {{- range $key, $val := .Values.policies.limitRange.defaultRequest }} {{ $key }}: {{ $val | quote }} {{- end }} + {{- if .Values.policies.limitRange.min }} + {{- range $key, $val := .Values.policies.limitRange.min }} + {{ $key }}: {{ $val | quote }} + {{- end }} + {{- end }} + {{- if .Values.policies.limitRange.max }} + {{- range $key, $val := .Values.policies.limitRange.max }} + {{ $key }}: {{ $val | quote }} + {{- end }} + {{- end }} type: Container {{- end }} {{- end }} diff --git a/chart/values.schema.json b/chart/values.schema.json index b18f3ce8b..f70360fcc 100755 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -1838,6 +1838,14 @@ "type": "object", "description": "DefaultRequest are the default request options for the limit range" }, + "max": { + "type": "object", + "description": "Min are the min limits for the limit range" + }, + "min": { + "type": "object", + "description": "Max are the max limits for the limit range" + }, "annotations": { "additionalProperties": { "type": "string" diff --git a/chart/values.yaml b/chart/values.yaml index 536044458..b23c83da5 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -778,7 +778,11 @@ policies: ephemeral-storage: 3Gi memory: 128Mi cpu: 100m - + # Max are the max limits for the limit range + max: {} + # Min are the min limits for the limit range + min: {} + # NetworkPolicy specifies network policy options. networkPolicy: # Enabled defines if the network policy should be deployed by vCluster.