Skip to content

Commit

Permalink
CASMPET-6904 update the cert-manager API in etcd-base chart (#40)
Browse files Browse the repository at this point in the history
* CASMPET-6904 update the cert-manager API in etcd-base chart
  • Loading branch information
leliasen-hpe authored May 21, 2024
1 parent e10d6ab commit 3e88101
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 21 deletions.
2 changes: 1 addition & 1 deletion charts/cray-etcd-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#
apiVersion: v2
name: cray-etcd-base
version: 1.1.2
version: 1.2.0
description: This chart should never be installed directly, instead it is intended to be a sub-chart.
home: https://github.com/Cray-HPE/cray-etcd
dependencies:
Expand Down
42 changes: 24 additions & 18 deletions charts/cray-etcd-base/templates/certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,23 @@ OTHER DEALINGS IN THE SOFTWARE.
*/}}
{{- if .Values.etcd.auth.client.secureTransport -}}
---
apiVersion: cert-manager.io/v1alpha2
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "{{ include "cray-etcd-base.fullname" . }}-etcd-server-tls"
spec:
secretName: "{{ include "cray-etcd-base.fullname" . }}-etcd-server-tls"
duration: 720h
renewBefore: 24h
organization:
- Cray
subject:
organizations:
- Cray
commonName: "{{ include "cray-etcd-base.fullname" . }}-{{ .Release.Namespace }}-server"
isCA: false
keySize: 2048
keyAlgorithm: rsa
keyEncoding: pkcs1
privateKey:
size: 2048
algorithm: RSA
encoding: PKCS1
usages:
- signing
- key encipherment
Expand All @@ -53,21 +55,23 @@ spec:
name: "{{ .Values.etcd.auth.client.issuer }}"
kind: Issuer
---
apiVersion: cert-manager.io/v1alpha2
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "{{ include "cray-etcd-base.fullname" . }}-etcd-peer-tls"
spec:
secretName: "{{ include "cray-etcd-base.fullname" . }}-etcd-peer-tls"
duration: 720h
renewBefore: 24h
organization:
- Cray
subject:
organizations:
- Cray
commonName: "{{ include "cray-etcd-base.fullname" . }}-{{ .Release.Namespace }}-peer"
isCA: false
keySize: 2048
keyAlgorithm: rsa
keyEncoding: pkcs1
privateKey:
size: 2048
algorithm: RSA
encoding: PKCS1
usages:
- signing
- key encipherment
Expand All @@ -80,21 +84,23 @@ spec:
name: "{{ .Values.etcd.auth.client.issuer }}"
kind: Issuer
---
apiVersion: cert-manager.io/v1alpha2
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "{{ include "cray-etcd-base.fullname" . }}-etcd-tls"
spec:
secretName: "{{ include "cray-etcd-base.fullname" . }}-etcd-tls"
duration: 720h
renewBefore: 24h
organization:
- Cray
subject:
organizations:
- Cray
commonName: "{{ include "cray-etcd-base.fullname" . }}-{{ .Release.Namespace }}-client"
isCA: false
keySize: 2048
keyAlgorithm: rsa
keyEncoding: pkcs1
privateKey:
size: 2048
algorithm: RSA
encoding: PKCS1
usages:
- signing
- key encipherment
Expand Down
4 changes: 2 additions & 2 deletions charts/cray-etcd-test/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies:
version: "~10.0.0"
repository: https://artifactory.algol60.net/artifactory/csm-helm-charts
- name: cray-etcd-base
version: "~1.1.1"
version: "1.2.0-20240516154242+ff2fc0e"
repository: https://artifactory.algol60.net/artifactory/csm-helm-charts
description: "Test etcd chart"
home: "https://github.com/Cray-HPE/cray-etcd-test"
Expand All @@ -40,4 +40,4 @@ maintainers:
name: cray-etcd-test
sources:
- "https://github.com/Cray-HPE/cray-etcd-test"
version: 1.1.1
version: 1.2.0
5 changes: 5 additions & 0 deletions charts/cray-etcd-test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ cray-service:
cray-etcd-base:
nameOverride: cray-etcd-test
etcd:
auth:
client:
secureTransport: true
issuer: "cert-manager-issuer-common"
existingSecret: "cray-etcd-test-bitnami-etcd-jwt-token"
disasterRecovery:
cronjob:
snapshotsDir: "/snapshots/cray-etcd-test-bitnami-etcd"
Expand Down

0 comments on commit 3e88101

Please sign in to comment.