Skip to content

Commit 560d1f8

Browse files
fix(helm): Add configuration options for the secret migration job (#536)
* fix(helm): Add configuration options for the secret migration job * fix(helm): Default the tools image to 1.0.0-stackable24.11.0
1 parent 5ae4de0 commit 560d1f8

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ All notable changes to this project will be documented in this file.
88

99
- Made RSA key length configurable for certificates issued by cert-manager ([#528]).
1010

11+
### Fixed
12+
13+
- Helm chart: The secret migration job can be omitted via Helm values ([#536]).
14+
- Helm chart: The tag of the tools image used for the secret migration job can
15+
be changed in the Helm values and defaults now to 1.0.0-stackable24.11.0
16+
rather than being hard-coded to 1.0.0-stackable24.7.0 ([#536]).
17+
1118
[#528]: https://github.com/stackabletech/secret-operator/pull/528
19+
[#536]: https://github.com/stackabletech/secret-operator/pull/536
1220

1321
## [24.11.0] - 2024-11-18
1422

deploy/helm/secret-operator/templates/secret_migration_job.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{ if .Values.secretMigrationJob.enabled -}}
23
# Migrates the TLS CA key pair from the hard-coded default namespace to the operator namespace
34
# See https://github.com/stackabletech/secret-operator/issues/453
45
apiVersion: batch/v1
@@ -30,7 +31,7 @@ spec:
3031
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3132
containers:
3233
- name: migrate-secret
33-
image: "{{ .Values.secretMigrationJob.image.repository }}:1.0.0-stackable24.7.0"
34+
image: "{{ .Values.secretMigrationJob.image.repository }}:{{ .Values.secretMigrationJob.image.tag }}"
3435
imagePullPolicy: {{ .Values.secretMigrationJob.image.pullPolicy }}
3536
resources:
3637
{{ .Values.secretMigrationJob.resources | toYaml | nindent 12 }}
@@ -53,3 +54,4 @@ spec:
5354
fi
5455
fi
5556
restartPolicy: Never
57+
{{- end }}

deploy/helm/secret-operator/templates/secret_migration_rbac.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{ if .Values.secretMigrationJob.enabled -}}
23
apiVersion: v1
34
kind: ServiceAccount
45
metadata:
@@ -53,4 +54,5 @@ rules:
5354
- watch
5455
- create
5556
- patch
56-
- update
57+
- update
58+
{{- end }}

deploy/helm/secret-operator/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ image:
66
pullSecrets: []
77

88
secretMigrationJob:
9+
enabled: true
910
image:
1011
repository: docker.stackable.tech/stackable/tools
12+
tag: 1.0.0-stackable24.11.0
1113
pullPolicy: IfNotPresent
1214
resources:
1315
requests:

0 commit comments

Comments
 (0)