Skip to content

Commit da19c2d

Browse files
feat(fluent-bit): add VPA controlledValues (#619)
* Handle controlledValues Signed-off-by: Giuseppe D'Anna <[email protected]> * Update annotation Signed-off-by: Giuseppe D'Anna <[email protected]> * Default empty Signed-off-by: Giuseppe D'Anna <[email protected]> * Update charts/fluent-bit/values.yaml Co-authored-by: Steve Hipwell <[email protected]> Signed-off-by: Giuseppe D'Anna <[email protected]> --------- Signed-off-by: Giuseppe D'Anna <[email protected]> Signed-off-by: Giuseppe D'Anna <[email protected]> Co-authored-by: Steve Hipwell <[email protected]>
1 parent 54f30bd commit da19c2d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

charts/fluent-bit/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- logging
66
- fluent-bit
77
- fluentd
8-
version: 0.49.1
8+
version: 0.50.0
99
appVersion: 4.0.3
1010
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
1111
home: https://fluentbit.io/
@@ -22,5 +22,5 @@ maintainers:
2222
2323
annotations:
2424
artifacthub.io/changes: |
25-
- kind: changed
26-
description: "Updated Fluent Bit OCI image to v4.0.3."
25+
- kind: added
26+
description: "Add VPA controlledValues option"

charts/fluent-bit/templates/vpa.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ spec:
1515
containerPolicies:
1616
- containerName: {{ .Chart.Name }}
1717
{{- with .Values.autoscaling.vpa.controlledResources }}
18-
controlledResources:
18+
controlledResources:
19+
{{- toYaml . | nindent 8 }}
20+
{{- end }}
21+
{{- with .Values.autoscaling.vpa.controlledValues }}
22+
controlledValues:
1923
{{- toYaml . | nindent 8 }}
2024
{{- end }}
2125
{{- with .Values.autoscaling.vpa.maxAllowed }}

charts/fluent-bit/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ autoscaling:
244244
# List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
245245
controlledResources: []
246246

247+
# Values that the vertical pod autoscaler can control. Allowed values are RequestsAndLimits and RequestsOnly. Default is RequestsAndLimits.
248+
controlledValues:
249+
247250
# Define the max allowed resources for the pod
248251
maxAllowed: {}
249252
# cpu: 200m

0 commit comments

Comments
 (0)