Skip to content

Commit 5af1414

Browse files
authored
Default to installing the TLS CA into the operator's target namespace (#397)
* Default to installing the TLS CA into the operator's target namespace * Changelog * Changelog formatting * Tag the changelog entry with the PR
1 parent 6faa79e commit 5af1414

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Changed
8+
9+
- [BREAKING] The TLS CA Secret is now installed into the Namespace of the operator (typically `stackable-operators`), rather than `default` ([#397]).
10+
- Existing users can either migrate by either:
11+
- (Recommended) Copying the CA into the new location
12+
(`kubectl -n default get secret/secret-provisioner-tls-ca -o json | jq '.metadata.namespace = "stackable-operators"' | kubectl create -f-`)
13+
- Setting the `secretClasses.tls.caSecretNamespace` Helm flag (`--set secretClasses.tls.caSecretNamespace=default`)
14+
15+
[#397]: https://github.com/stackabletech/secret-operator/pull/397
16+
717
## [24.3.0] - 2024-03-20
818

919
### Added

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ spec:
1111
ca:
1212
secret:
1313
name: secret-provisioner-tls-ca
14-
namespace: default
14+
namespace: {{ .Values.secretClasses.tls.caSecretNamespace | default .Release.Namespace }}
1515
autoGenerate: true

deploy/helm/secret-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ affinity: {}
8484

8585
# Kubelet dir may vary in environments such as microk8s, see https://github.com/stackabletech/secret-operator/issues/229
8686
kubeletDir: /var/lib/kubelet
87+
88+
secretClasses:
89+
tls:
90+
# The namespace that the TLS Certificate Authority is installed into.
91+
# Defaults to the namespace where secret-op is installed.
92+
caSecretNamespace: null

0 commit comments

Comments
 (0)