UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Big Bang
P
Packages
Security Tools
Twistlock
Commits
b8f9e4c5
Commit
b8f9e4c5
authored
Aug 02, 2021
by
Kavitha Thulasiraman
Browse files
add resource and limit
parent
50510534
Pipeline
#402913
passed with stages
in 2 minutes and 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
+2
-29
chart/templates/_common.tpl
chart/templates/_common.tpl
+0
-27
chart/values.yaml
chart/values.yaml
+2
-2
No files found.
chart/templates/_common.tpl
deleted
100644 → 0
View file @
50510534
{{
/*
twistlock
.
resources
accepts
a
resource
stanza
as
its
scope
and
returns
resource
configuration
if
any
of
the
values
are
set
.
*/
}}
{{- define "twistlock.resources" -}}
{{- if . }}
resources:
{{- if .requests }}
requests:
{{- if .requests.cpu }}
cpu: {{ .requests.cpu | quote }}
{{- end }}
{{- if .requests.memory }}
memory: {{ .requests.memory | quote }}
{{- end }}
{{- end }}
{{- if .limits }}
limits:
{{- if .limits.cpu }}
cpu: {{ .limits.cpu | quote }}
{{- end }}
{{- if .limits.memory }}
memory: {{ .limits.memory | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
chart/values.yaml
View file @
b8f9e4c5
...
...
@@ -64,10 +64,10 @@ tolerations:
resources
:
limits
:
memory
:
256
Mi
memory
:
512
Mi
cpu
:
100m
requests
:
memory
:
256
Mi
memory
:
512
Mi
cpu
:
100m
openshift
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment