From 7267951dbd9bef7044e7fe640064c81b087f723d Mon Sep 17 00:00:00 2001 From: JSpon <115185500+JSpon@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:05:22 -0400 Subject: [PATCH] Add environmental variables to deployment for use with proxy configuration --- deploy/charts/command-cert-manager-issuer/README.md | 1 + .../command-cert-manager-issuer/templates/deployment.yaml | 4 ++++ deploy/charts/command-cert-manager-issuer/values.yaml | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/deploy/charts/command-cert-manager-issuer/README.md b/deploy/charts/command-cert-manager-issuer/README.md index 5256fde..5e35a5c 100644 --- a/deploy/charts/command-cert-manager-issuer/README.md +++ b/deploy/charts/command-cert-manager-issuer/README.md @@ -83,4 +83,5 @@ The following table lists the configurable parameters of the `command-cert-manag | `resources` | CPU/Memory resource requests/limits | `{}` (with commented out options) | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Tolerations for pod assignment | `[]` | +| `env` | Environmental variables set for pod | `{}` | | `secretConfig.useClusterRoleForSecretAccess` | Specifies if the ServiceAccount should be granted access to the Secret resource using a ClusterRole | `false` | diff --git a/deploy/charts/command-cert-manager-issuer/templates/deployment.yaml b/deploy/charts/command-cert-manager-issuer/templates/deployment.yaml index 856ace0..4c786c7 100644 --- a/deploy/charts/command-cert-manager-issuer/templates/deployment.yaml +++ b/deploy/charts/command-cert-manager-issuer/templates/deployment.yaml @@ -38,6 +38,10 @@ spec: {{- end}} command: - /manager + {{- with .Values.env }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}" imagePullPolicy: {{ .Values.image.pullPolicy }} livenessProbe: diff --git a/deploy/charts/command-cert-manager-issuer/values.yaml b/deploy/charts/command-cert-manager-issuer/values.yaml index 6fd5bcb..4163688 100644 --- a/deploy/charts/command-cert-manager-issuer/values.yaml +++ b/deploy/charts/command-cert-manager-issuer/values.yaml @@ -70,3 +70,10 @@ resources: {} nodeSelector: {} tolerations: [] + +env: {} + # This can be used to set an http proxy to access the Keyfactor instance + # - name: https_proxy + # value: http://someproxy:someport + # - name: no_proxy + # value: .somedomain.com,.local,10.0.0.1