Skip to content

Commit 63156ba

Browse files
Updating values.yaml to use single resources
1 parent 81f0597 commit 63156ba

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

charts/ingressmonitorcontroller/templates/deployment.yaml

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

charts/ingressmonitorcontroller/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ 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-
{}
2418

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

0 commit comments

Comments
 (0)