Skip to content

Commit 365e99f

Browse files
Adding resources on values.yaml
1 parent ce999e9 commit 365e99f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

charts/ingressmonitorcontroller/templates/deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ spec:
5959
envFrom:
6060
{{- toYaml .Values.envFrom | nindent 8 }}
6161
{{- end }}
62-
{{- if .Values.resources }}
62+
{{- if .Values.kube-rbac-proxy.resources }}
6363
resources:
64-
{{ toYaml .Values.resources | indent 10 }}
64+
{{ toYaml .Values.kube-rbac-proxy.resources | indent 10 }}
6565
{{- end }}
6666
name: manager
6767
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -78,9 +78,9 @@ spec:
7878
port: 8081
7979
initialDelaySeconds: 5
8080
periodSeconds: 10
81-
{{- if .Values.resources }}
82-
resources:
83-
{{ toYaml .Values.resources | indent 10 }}
81+
{{- if .Values.manager.resources }}
82+
resources:
83+
{{ toYaml .Values.manager.resources | indent 10 }}
8484
{{- end }}
8585
terminationGracePeriodSeconds: 10
8686
{{- with .Values.nodeSelector }}

charts/ingressmonitorcontroller/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ kube-rbac-proxy:
1515
repository: gcr.io/kubebuilder/kube-rbac-proxy
1616
tag: v0.8.0
1717
pullPolicy: IfNotPresent
18+
resources:
19+
{}
20+
21+
manager:
22+
resources:
23+
{}
1824

1925
# Partial override for ingress-monitor-controller.fullname template (will keep the release name)
2026
nameOverride: ""

0 commit comments

Comments
 (0)