Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#86: allow webhook deployment limits to be set via values.yaml #87

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,17 @@ spec:
containerPort: 8383
- name: server-port
containerPort: 8443
{{- if .Values.webhook.server.resources }}
resources: {{- toYaml .Values.webhook.server.resources | nindent 12 }}
{{- else }}
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
cpu: 100m
memory: 256Mi
{{- end }}
volumeMounts:
- name: certs-volume
mountPath: /mnt/webhook-certs
Expand Down Expand Up @@ -137,13 +141,17 @@ spec:
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
{{- if .Values.webhook.bootstrapper.resources }}
resources: {{- toYaml .Values.webhook.bootstrapper.resources | nindent 12 }}
{{- else }}
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
cpu: 100m
memory: 256Mi
{{- end }}
volumeMounts:
- name: certs-volume
mountPath: /mnt/webhook-certs
Expand Down
8 changes: 8 additions & 0 deletions dynatrace-oneagent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ secret:
autoCreate: true
apiToken: ""
paasToken: ""

webhook:
server:
# The expected format is YAML and not a string
resources: ""
bootstrapper:
# The expected format is YAML and not a string
resources: ""