Skip to content

Commit e5ab717

Browse files
committed
attempt to fix user certs with _ in the name to have - in the secret and cert name
1 parent 9491334 commit e5ab717

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

charts/cloudnative-pg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cnpg-cluster
33
description: Create postgres tenant clusters managed by the CNPG Operator
44
type: application
5-
version: 0.3.10
5+
version: 0.3.11
66

77
maintainers:
88
- name: "cloudymax"

charts/cloudnative-pg-cluster/README.md

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

3-
![Version: 0.3.10](https://img.shields.io/badge/Version-0.3.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.3.11](https://img.shields.io/badge/Version-0.3.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
Create postgres tenant clusters managed by the CNPG Operator
66

charts/cloudnative-pg-cluster/templates/user_certificates.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{{- if and .Values.certificates.user.enabled }}
22
{{- range .Values.certificates.user.username }}
3+
{{- $username := . | replace "_" "-" -}}
34
---
45
apiVersion: v1
56
kind: Secret
67
metadata:
7-
name: "{{ $.Values.name }}-{{ . }}-cert"
8+
name: "{{ $.Values.name }}-{{ $username }}-cert"
89
labels:
910
cnpg.io/reload: ""
1011
---
1112
apiVersion: cert-manager.io/v1
1213
kind: Certificate
1314
metadata:
14-
name: "{{ $.Values.name }}-{{ . }}-cert"
15+
name: "{{ $.Values.name }}-{{ $username }}-cert"
1516
spec:
16-
secretName: "{{ $.Values.name }}-{{ . }}-cert"
17+
secretName: "{{ $.Values.name }}-{{ $username }}-cert"
1718
usages:
1819
- client auth
1920
commonName: {{ . }}

0 commit comments

Comments
 (0)