Skip to content
Snippets Groups Projects
Commit 257e598f authored by Andrei Skorkin [EPAM / GCP]'s avatar Andrei Skorkin [EPAM / GCP]
Browse files

add global variable limitsEnabled

parent b74d6140
No related branches found
No related tags found
3 merge requests!438Draft: CG Vulnerability for Woodstox - CVE-2022-40151,!430Upgraded Version of spring-security-config due to Component Governance CVE-2023-34034,!417Add global variable limitsEnabled (GONRG-7266)
Pipeline #194065 failed
......@@ -99,6 +99,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**global.dataBootstrapEnabled** | whether bootstrap is enabled | boolean | false | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes
### Configmap variables
......@@ -118,8 +119,8 @@ First you need to set variables in **values.yaml** file using any code editor. S
|------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requests CPU | string | 10m | yes
**data.requestsMemory** | amount of requests memory| string | 550Mi | yes
**data.limitsCpu** | CPU limit | string | 1 | yes
**data.limitsMemory** | memory limit | string | 1G | yes
**data.limitsCpu** | CPU limit | string | 1 | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | 1G | only if `global.limitsEnabled` is true
**data.bootstrapImage** | name of the bootstrap image | string | - | yes
**data.bootstrapServiceAccountName** | name of the bootstrap service account | string | - | yes
**data.serviceAccountName** | name of your service account | string | legal | yes
......
......@@ -45,7 +45,9 @@ spec:
requests:
cpu: {{ .Values.data.requestsCpu | quote }}
memory: {{ .Values.data.requestsMemory | quote }}
{{- if .Values.global.limitsEnabled }}
limits:
cpu: {{ .Values.data.limitsCpu | quote }}
memory: {{ .Values.data.limitsMemory | quote }}
{{- end }}
serviceAccountName: {{ .Values.data.serviceAccountName | quote }}
......@@ -6,6 +6,7 @@ global:
domain: ""
onPremEnabled: false
dataBootstrapEnabled: false
limitsEnabled: true
data:
# configmaps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment