Skip to content

Commit

Permalink
[stable/insights-agent] fix right-sizer oom-detection flag (#1450)
Browse files Browse the repository at this point in the history
* Update oom-detection-agent-cronjob.yaml

* Update oom-detection-controller-deployment.yaml

* Update oom-detection-controller-rbac.yaml

* Update Chart.yaml

* Update CHANGELOG.md
  • Loading branch information
rbren committed Mar 25, 2024
1 parent 10b86af commit 1ceba3f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions stable/insights-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 4.0.4
* Fix guard against installing oom-detector unless right-sizer is enabled

## 4.0.3
* add `enableClosedBeta` flag to the `right-sizer` chart, also make it the condition for the VPA subchart
Expand Down
2 changes: 1 addition & 1 deletion stable/insights-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart to run the Fairwinds Insights agent
name: insights-agent
version: 4.0.3
version: 4.0.4
appVersion: 9.2.1
kubeVersion: ">= 1.22.0-0"
icon: https://raw.githubusercontent.com/FairwindsOps/charts/master/stable/insights-agent/icon.png
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (index .Values "right-sizer" "oom-detection" "enabled") -}}
{{- if (and (index .Values "right-sizer" "enabled") (index .Values "right-sizer" "oom-detection" "enabled")) -}}
{{- $_ := set . "Label" "right-sizer" }}
{{- $_ := set . "Config" (index .Values "right-sizer" "oom-detection") }}
{{- include "cronjob" . }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (index .Values "right-sizer" "oom-detection" "enabled") -}}
{{- if (and (index .Values "right-sizer" "enabled") (index .Values "right-sizer" "oom-detection" "enabled")) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (index .Values "right-sizer" "oom-detection" "enabled") (not .Values.rbac.disabled) -}}
{{- if and (and (index .Values "right-sizer" "enabled") (index .Values "right-sizer" "oom-detection" "enabled")) (not .Values.rbac.disabled) -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -124,4 +124,4 @@ subjects:
name: {{ include "insights-agent.fullname" . }}-right-sizer-oom-detection-controller
namespace: {{ .Release.Namespace }}
{{ end -}}
{{ end -}}
{{ end -}}

0 comments on commit 1ceba3f

Please sign in to comment.