From 41b52af2874b7f2e1d81595296a121092b40f8d8 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Tue, 30 Jun 2020 13:00:26 -0500 Subject: [PATCH] [plex] Added values to choose init container image (#259) * Added values for the init container image * bumped Chart version Co-authored-by: Richard Cox --- charts/plex/Chart.yaml | 2 +- charts/plex/templates/deployment.yaml | 2 +- charts/plex/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index 959e8455..5bedb4ab 100644 --- a/charts/plex/Chart.yaml +++ b/charts/plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.19.1.2645-ccb6eb67e description: Plex Media Server name: plex -version: 1.3.0 +version: 1.3.1 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index 8315b365..152637e8 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -40,7 +40,7 @@ spec: # This is ugly, but it does work to create a pks file that will work with PLEX from the tls.crt and tls.key that cert-manager normally creates {{- if .Values.certificate.pkcsMangler.enabled }} - name: pkcsmangler-init-container - image: tlsprint/openssl:1.1.1f + image: "{{ .Values.certificate.pkcsMangler.image.repository }}:{{ .Values.certificate.pkcsMangler.image.tag }}" imagePullPolicy: Always command: ["/bin/sh"] args: ["-c", "openssl pkcs12 -export -passout pass:$(PKCSMANGLER_PFXPASSWORD) -out /shared/cert.pfx -inkey {{ .Values.certificate.pkcsMangler.certificateSecret.volume.mountPath }}/{{ .Values.certificate.pkcsMangler.certificateSecret.keyName }} -in {{ .Values.certificate.pkcsMangler.certificateSecret.volume.mountPath }}/{{ .Values.certificate.pkcsMangler.certificateSecret.crtName }}; chmod 0444 /shared/cert.pfx"] diff --git a/charts/plex/values.yaml b/charts/plex/values.yaml index 086cb1d2..ebc59b55 100644 --- a/charts/plex/values.yaml +++ b/charts/plex/values.yaml @@ -215,6 +215,10 @@ certificate: # the location specified in pfxInContainerPath. pkcsMangler: enabled: false + # The Image to use for pkcsMangler + image: + repository: tlsprint/openssl + tag: 1.1.1f configmap: labels: {} annotations: {}