mirror of https://github.com/linkerd/linkerd2.git
22 lines
576 B
YAML
22 lines
576 B
YAML
{{- define "resources" }}
|
|
resources:
|
|
{{- if or .CPU.Request .Memory.Request }}
|
|
requests:
|
|
{{- with .CPU.Request }}
|
|
cpu: {{.}}
|
|
{{- end }}
|
|
{{- with .Memory.Request }}
|
|
memory: {{.}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if or .CPU.Limit .Memory.Limit }}
|
|
limits:
|
|
{{- with .CPU.Limit }}
|
|
cpu: {{.}}
|
|
{{- end }}
|
|
{{- with .Memory.Limit }}
|
|
memory: {{.}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|