Skip to content

Commit

Permalink
Add optional resources block for init container
Browse files Browse the repository at this point in the history
  • Loading branch information
ner authored and ner committed Feb 16, 2024
1 parent 2f536dc commit df2e9b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/charts/trust-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ spec:
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- if .Values.defaultPackage.resources }}
resources:
{{- toYaml .Values.defaultPackage.resources | nindent 10 }}
{{- end }}
{{- end }}
containers:
- name: {{ include "trust-manager.name" . }}
Expand Down
11 changes: 11 additions & 0 deletions deploy/charts/trust-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ image:
defaultPackage:
# Whether to load the default trust package during pod initialization, and include it in main container args. This container enables the 'useDefaultCAs' source on Bundles.
enabled: true
# Kubernetes pod resource limits for default package init container.
#
# For example:
# resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources: {}

defaultPackageImage:
# The repository for the default package image. This image enables the 'useDefaultCAs' source on Bundles.
Expand Down

0 comments on commit df2e9b8

Please sign in to comment.