From 7f844f6013e16803c07312151fe7f681f2b8a967 Mon Sep 17 00:00:00 2001 From: Christian Bianchi Date: Mon, 13 May 2024 09:42:44 +0200 Subject: [PATCH] Set type for tls secrets (#1616) * Set type for tls secrets * Use `kubernetes.io/tls` type for TLS secrets. --------- Co-authored-by: Quentin Bisson --- CHANGELOG.md | 4 ++++ .../templates/alertmanager/alertmanager-tls-secret.yaml | 1 + .../templates/prometheus/prometheus-tls-secret.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b5a91b9c..b8b9beddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed `apiserver_down` inhibition. +### Fixed + +- Use `kubernetes.io/tls` type for TLS secrets. + ## [4.74.0] - 2024-05-02 ### Changed diff --git a/helm/prometheus-meta-operator/templates/alertmanager/alertmanager-tls-secret.yaml b/helm/prometheus-meta-operator/templates/alertmanager/alertmanager-tls-secret.yaml index c270be311..0f1a8adaf 100644 --- a/helm/prometheus-meta-operator/templates/alertmanager/alertmanager-tls-secret.yaml +++ b/helm/prometheus-meta-operator/templates/alertmanager/alertmanager-tls-secret.yaml @@ -6,6 +6,7 @@ metadata: {{- include "labels.common" . | nindent 4 }} name: alertmanager-tls namespace: {{ include "resource.default.namespace" . }} +type: kubernetes.io/tls data: tls.crt: {{ .Values.certificate.monitoring.crtPem | quote }} tls.key: {{ .Values.certificate.monitoring.keyPem | quote }} diff --git a/helm/prometheus-meta-operator/templates/prometheus/prometheus-tls-secret.yaml b/helm/prometheus-meta-operator/templates/prometheus/prometheus-tls-secret.yaml index 480fe5e5d..de2f45064 100644 --- a/helm/prometheus-meta-operator/templates/prometheus/prometheus-tls-secret.yaml +++ b/helm/prometheus-meta-operator/templates/prometheus/prometheus-tls-secret.yaml @@ -6,6 +6,7 @@ metadata: {{- include "labels.common" . | nindent 4 }} name: prometheus-tls namespace: {{ include "resource.default.namespace" . }} +type: kubernetes.io/tls data: tls.crt: {{ .Values.certificate.monitoring.crtPem | quote }} tls.key: {{ .Values.certificate.monitoring.keyPem | quote }}