Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion deploy/charts/origin-ca-issuer/templates/issuer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,17 @@ spec:
{{- if .Values.controller.extraEnv }}
{{ toYaml .Values.controller.extraEnv | indent 12 }}
{{- end }}
resources: {{ toYaml .Values.controller.resources | nindent 12 }}
resources:
{{- if .Values.controller.resources }}
{{ toYaml .Values.controller.resources | indent 12 }}
{{- else }}
requests:
cpu: "1"
memory: 512Mi
limits:
cpu: "1"
memory: 512Mi
{{- end }}
{{- with .Values.controller.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 8 }}
{{- end }}
Expand Down
9 changes: 2 additions & 7 deletions deploy/charts/origin-ca-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,8 @@ controller:
# Optional additional annotations to add to the controller's service account.
# annotations: {}

resources:
limits:
cpu: "1"
memory: 512Mi
requests:
cpu: "1"
memory: 512Mi
# Resource requests and limits
resources: {}

# Optional Pod Security Context
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
Expand Down