Skip to content

Commit 22eb19f

Browse files
authored
fix(snapshotAgent): don't create service account if disabled (#135)
The service account for the snapshot agent gets created even if the snapshot agent itself is disabled. Now we check if the agent is enabled as well as the existing create check. This skips creating a ServiceAccount resource when it's not necessary. Signed-off-by: Florian Ruechel <code@inexplicity.de>
1 parent 959a834 commit 22eb19f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Unreleased
22

3+
## 0.23.4
4+
5+
- fix(snapshotAgent): don't create service account if disabled
6+
37
## 0.23.3
48

59
- fix(deps): switch injector to openbao-k8s with patched golang.org/x/crypto (CVE-2024-45337)

charts/openbao/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
apiVersion: v2
55
name: openbao
6-
version: 0.23.3
6+
version: 0.23.4
77
appVersion: v2.4.4
88
kubeVersion: ">= 1.30.0-0"
99
description: Official OpenBao Chart
@@ -26,9 +26,9 @@ annotations:
2626
charts.openshift.io/name: Openbao
2727
artifacthub.io/containsSecurityUpdates: "true"
2828
artifacthub.io/changes: |
29-
- kind: security
29+
- kind: fixed
3030
description: |
31-
fix(deps): switch injector to openbao-k8s with patched golang.org/x/crypto (CVE-2024-45337)
31+
fix(snapshotAgent): don't create service account if disabled
3232
3333
maintainers:
3434
- name: OpenBao

charts/openbao/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# openbao
22

3-
![Version: 0.23.3](https://img.shields.io/badge/Version-0.23.3-informational?style=flat-square) ![AppVersion: v2.4.4](https://img.shields.io/badge/AppVersion-v2.4.4-informational?style=flat-square)
3+
![Version: 0.23.4](https://img.shields.io/badge/Version-0.23.4-informational?style=flat-square) ![AppVersion: v2.4.4](https://img.shields.io/badge/AppVersion-v2.4.4-informational?style=flat-square)
44

55
Official OpenBao Chart
66

charts/openbao/templates/snapshotagent-serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.snapshotAgent.serviceAccount.create -}}
1+
{{- if and .Values.snapshotAgent.enabled .Values.snapshotAgent.serviceAccount.create -}}
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:

0 commit comments

Comments
 (0)