Add support to create a issuer and CA via cert-manager (#342)
Co-authored-by: Kevin Fox <[email protected]>
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Issuer
|
|
||||||
metadata:
|
|
||||||
name: selfsigned-issuer
|
|
||||||
spec:
|
|
||||||
selfSigned: {}
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
name: demo-selfsigned-ca
|
|
||||||
spec:
|
|
||||||
isCA: true
|
|
||||||
commonName: demo-selfsigned-ca
|
|
||||||
secretName: root-secret
|
|
||||||
privateKey:
|
|
||||||
algorithm: ECDSA
|
|
||||||
size: 256
|
|
||||||
issuerRef:
|
|
||||||
name: selfsigned-issuer
|
|
||||||
kind: Issuer
|
|
||||||
group: cert-manager.io
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Issuer
|
|
||||||
metadata:
|
|
||||||
name: demo-ca
|
|
||||||
spec:
|
|
||||||
ca:
|
|
||||||
secretName: root-secret
|
|
||||||
@@ -5,5 +5,3 @@ SCRIPTPATH="$(dirname "${SCRIPT}")"
|
|||||||
scenario="${scenario:-$(basename "${SCRIPTPATH}")}"
|
scenario="${scenario:-$(basename "${SCRIPTPATH}")}"
|
||||||
|
|
||||||
helm install cert-manager cert-manager --namespace cert-manager --create-namespace --version "$VERSION_CERT_MANAGER" --set installCRDs=true --repo "$HELM_REPO_CERT_MANAGER" --wait
|
helm install cert-manager cert-manager --namespace cert-manager --create-namespace --version "$VERSION_CERT_MANAGER" --set installCRDs=true --repo "$HELM_REPO_CERT_MANAGER" --wait
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
||||||
kubectl apply -f "${SCRIPT_DIR}/cert-manager-ca.yaml" -n "$scenario"
|
|
||||||
|
|||||||
@@ -2,4 +2,5 @@ spire-server:
|
|||||||
upstreamAuthority:
|
upstreamAuthority:
|
||||||
certManager:
|
certManager:
|
||||||
enabled: true
|
enabled: true
|
||||||
issuer_name: "demo-ca"
|
ca:
|
||||||
|
create: true
|
||||||
|
|||||||
+12
-6
@@ -306,11 +306,6 @@ Now you can interact with the Spire agent socket from your own application. The
|
|||||||
| spire-server.controllerManager.service.port | int | `443` | |
|
| spire-server.controllerManager.service.port | int | `443` | |
|
||||||
| spire-server.controllerManager.service.type | string | `"ClusterIP"` | |
|
| spire-server.controllerManager.service.type | string | `"ClusterIP"` | |
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.failurePolicy | string | `"Fail"` | |
|
| spire-server.controllerManager.validatingWebhookConfiguration.failurePolicy | string | `"Fail"` | |
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.upgradeHook.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy |
|
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.upgradeHook.image.registry | string | `"docker.io"` | The OCI registry to pull the image from |
|
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.upgradeHook.image.repository | string | `"rancher/kubectl"` | The repository within the registry |
|
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.upgradeHook.image.tag | string | `""` | Overrides the image tag |
|
|
||||||
| spire-server.controllerManager.validatingWebhookConfiguration.upgradeHook.image.version | string | `""` | This value is deprecated in favor of tag. (Will be removed in a future release) |
|
|
||||||
| spire-server.dataStore.sql.databaseName | string | `"spire"` | Only used by "postgres" or "mysql" |
|
| spire-server.dataStore.sql.databaseName | string | `"spire"` | Only used by "postgres" or "mysql" |
|
||||||
| spire-server.dataStore.sql.databaseType | string | `"sqlite3"` | Other supported databases are "postgres" and "mysql" |
|
| spire-server.dataStore.sql.databaseType | string | `"sqlite3"` | Other supported databases are "postgres" and "mysql" |
|
||||||
| spire-server.dataStore.sql.host | string | `""` | Only used by "postgres" or "mysql" |
|
| spire-server.dataStore.sql.host | string | `""` | Only used by "postgres" or "mysql" |
|
||||||
@@ -382,6 +377,11 @@ Now you can interact with the Spire agent socket from your own application. The
|
|||||||
| spire-server.telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
| spire-server.telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
||||||
| spire-server.telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-server |
|
| spire-server.telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-server |
|
||||||
| spire-server.tolerations | list | `[]` | |
|
| spire-server.tolerations | list | `[]` | |
|
||||||
|
| spire-server.tools.kubectl.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy |
|
||||||
|
| spire-server.tools.kubectl.image.registry | string | `"docker.io"` | The OCI registry to pull the image from |
|
||||||
|
| spire-server.tools.kubectl.image.repository | string | `"rancher/kubectl"` | The repository within the registry |
|
||||||
|
| spire-server.tools.kubectl.image.tag | string | `""` | Overrides the image tag |
|
||||||
|
| spire-server.tools.kubectl.image.version | string | `""` | This value is deprecated in favor of tag. (Will be removed in a future release) |
|
||||||
| spire-server.topologySpreadConstraints | list | `[]` | |
|
| spire-server.topologySpreadConstraints | list | `[]` | |
|
||||||
| spire-server.tornjak.config.dataStore | object | `{"driver":"sqlite3","file":"/run/spire/data/tornjak.sqlite3"}` | persistent DB for storing Tornjak specific information |
|
| spire-server.tornjak.config.dataStore | object | `{"driver":"sqlite3","file":"/run/spire/data/tornjak.sqlite3"}` | persistent DB for storing Tornjak specific information |
|
||||||
| spire-server.tornjak.enabled | bool | `false` | Deploys Tornjak API (backend) (Not for production) |
|
| spire-server.tornjak.enabled | bool | `false` | Deploys Tornjak API (backend) (Not for production) |
|
||||||
@@ -400,10 +400,16 @@ Now you can interact with the Spire agent socket from your own application. The
|
|||||||
| spire-server.tornjak.startupProbe.successThreshold | int | `1` | |
|
| spire-server.tornjak.startupProbe.successThreshold | int | `1` | |
|
||||||
| spire-server.tornjak.startupProbe.timeoutSeconds | int | `5` | |
|
| spire-server.tornjak.startupProbe.timeoutSeconds | int | `5` | |
|
||||||
| spire-server.trustDomain | string | `"example.org"` | Set the trust domain to be used for the SPIFFE identifiers |
|
| spire-server.trustDomain | string | `"example.org"` | Set the trust domain to be used for the SPIFFE identifiers |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.create | bool | `false` | Creates a Cert-Manager CA |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.duration | string | `"87600h"` | Duration of the CA. Defaults to 10 years. |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.privateKey.algorithm | string | `"ECDSA"` | |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.privateKey.rotationPolicy | string | `""` | |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.privateKey.size | int | `256` | |
|
||||||
|
| spire-server.upstreamAuthority.certManager.ca.renewBefore | string | `""` | How long to wait before renewing the CA |
|
||||||
| spire-server.upstreamAuthority.certManager.enabled | bool | `false` | |
|
| spire-server.upstreamAuthority.certManager.enabled | bool | `false` | |
|
||||||
| spire-server.upstreamAuthority.certManager.issuer_group | string | `"cert-manager.io"` | |
|
| spire-server.upstreamAuthority.certManager.issuer_group | string | `"cert-manager.io"` | |
|
||||||
| spire-server.upstreamAuthority.certManager.issuer_kind | string | `"Issuer"` | |
|
| spire-server.upstreamAuthority.certManager.issuer_kind | string | `"Issuer"` | |
|
||||||
| spire-server.upstreamAuthority.certManager.issuer_name | string | `"spire-ca"` | |
|
| spire-server.upstreamAuthority.certManager.issuer_name | string | `""` | Defaults to the release name, override if CA is provided outside of the chart |
|
||||||
| spire-server.upstreamAuthority.certManager.kube_config_file | string | `""` | |
|
| spire-server.upstreamAuthority.certManager.kube_config_file | string | `""` | |
|
||||||
| spire-server.upstreamAuthority.certManager.namespace | string | `""` | Specify to use a namespace other then the one the chart is installed into |
|
| spire-server.upstreamAuthority.certManager.namespace | string | `""` | Specify to use a namespace other then the one the chart is installed into |
|
||||||
| spire-server.upstreamAuthority.certManager.rbac.create | bool | `true` | |
|
| spire-server.upstreamAuthority.certManager.rbac.create | bool | `true` | |
|
||||||
|
|||||||
@@ -67,11 +67,6 @@ A Helm chart to install the SPIRE server.
|
|||||||
| controllerManager.service.port | int | `443` | |
|
| controllerManager.service.port | int | `443` | |
|
||||||
| controllerManager.service.type | string | `"ClusterIP"` | |
|
| controllerManager.service.type | string | `"ClusterIP"` | |
|
||||||
| controllerManager.validatingWebhookConfiguration.failurePolicy | string | `"Fail"` | |
|
| controllerManager.validatingWebhookConfiguration.failurePolicy | string | `"Fail"` | |
|
||||||
| controllerManager.validatingWebhookConfiguration.upgradeHook.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy |
|
|
||||||
| controllerManager.validatingWebhookConfiguration.upgradeHook.image.registry | string | `"docker.io"` | The OCI registry to pull the image from |
|
|
||||||
| controllerManager.validatingWebhookConfiguration.upgradeHook.image.repository | string | `"rancher/kubectl"` | The repository within the registry |
|
|
||||||
| controllerManager.validatingWebhookConfiguration.upgradeHook.image.tag | string | `""` | Overrides the image tag |
|
|
||||||
| controllerManager.validatingWebhookConfiguration.upgradeHook.image.version | string | `""` | This value is deprecated in favor of tag. (Will be removed in a future release) |
|
|
||||||
| dataStore.sql.databaseName | string | `"spire"` | Only used by "postgres" or "mysql" |
|
| dataStore.sql.databaseName | string | `"spire"` | Only used by "postgres" or "mysql" |
|
||||||
| dataStore.sql.databaseType | string | `"sqlite3"` | Other supported databases are "postgres" and "mysql" |
|
| dataStore.sql.databaseType | string | `"sqlite3"` | Other supported databases are "postgres" and "mysql" |
|
||||||
| dataStore.sql.host | string | `""` | Only used by "postgres" or "mysql" |
|
| dataStore.sql.host | string | `""` | Only used by "postgres" or "mysql" |
|
||||||
@@ -143,6 +138,11 @@ A Helm chart to install the SPIRE server.
|
|||||||
| telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
| telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
||||||
| telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-server |
|
| telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-server |
|
||||||
| tolerations | list | `[]` | |
|
| tolerations | list | `[]` | |
|
||||||
|
| tools.kubectl.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy |
|
||||||
|
| tools.kubectl.image.registry | string | `"docker.io"` | The OCI registry to pull the image from |
|
||||||
|
| tools.kubectl.image.repository | string | `"rancher/kubectl"` | The repository within the registry |
|
||||||
|
| tools.kubectl.image.tag | string | `""` | Overrides the image tag |
|
||||||
|
| tools.kubectl.image.version | string | `""` | This value is deprecated in favor of tag. (Will be removed in a future release) |
|
||||||
| topologySpreadConstraints | list | `[]` | |
|
| topologySpreadConstraints | list | `[]` | |
|
||||||
| tornjak.config.dataStore | object | `{"driver":"sqlite3","file":"/run/spire/data/tornjak.sqlite3"}` | persistent DB for storing Tornjak specific information |
|
| tornjak.config.dataStore | object | `{"driver":"sqlite3","file":"/run/spire/data/tornjak.sqlite3"}` | persistent DB for storing Tornjak specific information |
|
||||||
| tornjak.enabled | bool | `false` | Deploys Tornjak API (backend) (Not for production) |
|
| tornjak.enabled | bool | `false` | Deploys Tornjak API (backend) (Not for production) |
|
||||||
@@ -161,10 +161,16 @@ A Helm chart to install the SPIRE server.
|
|||||||
| tornjak.startupProbe.successThreshold | int | `1` | |
|
| tornjak.startupProbe.successThreshold | int | `1` | |
|
||||||
| tornjak.startupProbe.timeoutSeconds | int | `5` | |
|
| tornjak.startupProbe.timeoutSeconds | int | `5` | |
|
||||||
| trustDomain | string | `"example.org"` | Set the trust domain to be used for the SPIFFE identifiers |
|
| trustDomain | string | `"example.org"` | Set the trust domain to be used for the SPIFFE identifiers |
|
||||||
|
| upstreamAuthority.certManager.ca.create | bool | `false` | Creates a Cert-Manager CA |
|
||||||
|
| upstreamAuthority.certManager.ca.duration | string | `"87600h"` | Duration of the CA. Defaults to 10 years. |
|
||||||
|
| upstreamAuthority.certManager.ca.privateKey.algorithm | string | `"ECDSA"` | |
|
||||||
|
| upstreamAuthority.certManager.ca.privateKey.rotationPolicy | string | `""` | |
|
||||||
|
| upstreamAuthority.certManager.ca.privateKey.size | int | `256` | |
|
||||||
|
| upstreamAuthority.certManager.ca.renewBefore | string | `""` | How long to wait before renewing the CA |
|
||||||
| upstreamAuthority.certManager.enabled | bool | `false` | |
|
| upstreamAuthority.certManager.enabled | bool | `false` | |
|
||||||
| upstreamAuthority.certManager.issuer_group | string | `"cert-manager.io"` | |
|
| upstreamAuthority.certManager.issuer_group | string | `"cert-manager.io"` | |
|
||||||
| upstreamAuthority.certManager.issuer_kind | string | `"Issuer"` | |
|
| upstreamAuthority.certManager.issuer_kind | string | `"Issuer"` | |
|
||||||
| upstreamAuthority.certManager.issuer_name | string | `"spire-ca"` | |
|
| upstreamAuthority.certManager.issuer_name | string | `""` | Defaults to the release name, override if CA is provided outside of the chart |
|
||||||
| upstreamAuthority.certManager.kube_config_file | string | `""` | |
|
| upstreamAuthority.certManager.kube_config_file | string | `""` | |
|
||||||
| upstreamAuthority.certManager.namespace | string | `""` | Specify to use a namespace other then the one the chart is installed into |
|
| upstreamAuthority.certManager.namespace | string | `""` | Specify to use a namespace other then the one the chart is installed into |
|
||||||
| upstreamAuthority.certManager.rbac.create | bool | `true` | |
|
| upstreamAuthority.certManager.rbac.create | bool | `true` | |
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ plugins:
|
|||||||
UpstreamAuthority:
|
UpstreamAuthority:
|
||||||
- cert-manager:
|
- cert-manager:
|
||||||
plugin_data:
|
plugin_data:
|
||||||
issuer_name: {{ .issuer_name | quote }}
|
issuer_name: {{ default .issuer_name (include "spire-server.fullname" $root) }}
|
||||||
issuer_kind: {{ .issuer_kind | quote }}
|
issuer_kind: {{ .issuer_kind | quote }}
|
||||||
issuer_group: {{ .issuer_group | quote }}
|
issuer_group: {{ .issuer_group | quote }}
|
||||||
namespace: {{ default $root.Release.Namespace .namespace | quote }}
|
namespace: {{ default $root.Release.Namespace .namespace | quote }}
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
{{- with .Values.upstreamAuthority.certManager }}
|
||||||
|
{{ if and .enabled .ca.create }}
|
||||||
|
{{/*
|
||||||
|
Configuring CA Issuer: https://cert-manager.io/docs/configuration/ca/
|
||||||
|
*/}}
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: {{ include "spire-server.fullname" $ }}-selfsigned
|
||||||
|
namespace: {{ include "spire-server.namespace" $ }}
|
||||||
|
labels:
|
||||||
|
{{- include "spire-server.labels" $ | nindent 4}}
|
||||||
|
spec:
|
||||||
|
selfSigned: {}
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: {{ include "spire-server.fullname" $ }}
|
||||||
|
namespace: {{ include "spire-server.namespace" $ }}
|
||||||
|
spec:
|
||||||
|
isCA: true
|
||||||
|
commonName: {{ $.Values.ca_subject.common_name }}
|
||||||
|
secretName: {{ include "spire-server.fullname" $ }}-ca-keys
|
||||||
|
duration: {{ $.Values.upstreamAuthority.certManager.ca.duration }}
|
||||||
|
subject:
|
||||||
|
countries:
|
||||||
|
- {{ $.Values.ca_subject.country }}
|
||||||
|
organizations:
|
||||||
|
- {{ $.Values.ca_subject.organization }}
|
||||||
|
privateKey:
|
||||||
|
algorithm: {{ $.Values.upstreamAuthority.certManager.ca.privateKey.algorithm }}
|
||||||
|
size: {{ $.Values.upstreamAuthority.certManager.ca.privateKey.size }}
|
||||||
|
{{- with $.Values.upstreamAuthority.certManager.ca.privateKey.rotationPolicy }}
|
||||||
|
rotationPolicy: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $.Values.upstreamAuthority.certManager.ca.renewBefore }}
|
||||||
|
renewBefore: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
issuerRef:
|
||||||
|
name: {{ include "spire-server.fullname" $ }}-selfsigned
|
||||||
|
kind: Issuer
|
||||||
|
group: cert-manager.io
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: {{ include "spire-server.fullname" $ }}
|
||||||
|
namespace: {{ include "spire-server.namespace" $ }}
|
||||||
|
spec:
|
||||||
|
ca:
|
||||||
|
secretName: {{ include "spire-server.fullname" $ }}-ca-keys
|
||||||
|
---
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -63,7 +63,7 @@ spec:
|
|||||||
- name: post-install-job
|
- name: post-install-job
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 10 }}
|
{{- toYaml .Values.securityContext | nindent 10 }}
|
||||||
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.controllerManager.validatingWebhookConfiguration.upgradeHook.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.tools.kubectl.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
||||||
args:
|
args:
|
||||||
- patch
|
- patch
|
||||||
- validatingwebhookconfiguration
|
- validatingwebhookconfiguration
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ spec:
|
|||||||
- name: post-upgrade-job
|
- name: post-upgrade-job
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 10 }}
|
{{- toYaml .Values.securityContext | nindent 10 }}
|
||||||
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.controllerManager.validatingWebhookConfiguration.upgradeHook.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.tools.kubectl.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
||||||
args:
|
args:
|
||||||
- patch
|
- patch
|
||||||
- validatingwebhookconfiguration
|
- validatingwebhookconfiguration
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ spec:
|
|||||||
- name: post-install-job
|
- name: post-install-job
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 10 }}
|
{{- toYaml .Values.securityContext | nindent 10 }}
|
||||||
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.controllerManager.validatingWebhookConfiguration.upgradeHook.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.tools.kubectl.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
||||||
args:
|
args:
|
||||||
- patch
|
- patch
|
||||||
- validatingwebhookconfiguration
|
- validatingwebhookconfiguration
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ rules:
|
|||||||
- apiGroups: ["cert-manager.io"]
|
- apiGroups: ["cert-manager.io"]
|
||||||
resources:
|
resources:
|
||||||
- certificaterequests
|
- certificaterequests
|
||||||
|
- issuers
|
||||||
verbs:
|
verbs:
|
||||||
- list
|
- list
|
||||||
- get
|
- get
|
||||||
|
|||||||
@@ -42,8 +42,23 @@ spec:
|
|||||||
shareProcessNamespace: true
|
shareProcessNamespace: true
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
{{- if gt (len .Values.initContainers) 0 }}
|
|
||||||
initContainers:
|
initContainers:
|
||||||
|
{{- if and .Values.upstreamAuthority.certManager.enabled .Values.upstreamAuthority.certManager.createCA }}
|
||||||
|
- name: wait
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
image: {{ template "spire-server.kubectl-image" (dict "appVersion" $.Chart.AppVersion "image" .Values.controllerManager.validatingWebhookConfiguration.upgradeHook.image "global" .Values.global "KubeVersion" .Capabilities.KubeVersion.Version) }}
|
||||||
|
args:
|
||||||
|
- wait
|
||||||
|
- --namespace
|
||||||
|
- {{ .Release.Namespace }}
|
||||||
|
- --timeout=3m
|
||||||
|
- --for=condition=ready
|
||||||
|
- issuer
|
||||||
|
- {{ include "spire-server.fullname" $ }}
|
||||||
|
imagePullPolicy: {{ .Values.controllerManager.validatingWebhookConfiguration.upgradeHook.image.pullPolicy }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if gt (len .Values.initContainers) 0 }}
|
||||||
{{- toYaml .Values.initContainers | nindent 8 }}
|
{{- toYaml .Values.initContainers | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
|
|||||||
@@ -188,12 +188,25 @@ upstreamAuthority:
|
|||||||
enabled: false
|
enabled: false
|
||||||
rbac:
|
rbac:
|
||||||
create: true
|
create: true
|
||||||
issuer_name: "spire-ca"
|
# -- Defaults to the release name, override if CA is provided outside of the chart
|
||||||
|
issuer_name: ""
|
||||||
issuer_kind: "Issuer"
|
issuer_kind: "Issuer"
|
||||||
issuer_group: "cert-manager.io"
|
issuer_group: "cert-manager.io"
|
||||||
# -- Specify to use a namespace other then the one the chart is installed into
|
# -- Specify to use a namespace other then the one the chart is installed into
|
||||||
namespace: ""
|
namespace: ""
|
||||||
kube_config_file: ""
|
kube_config_file: ""
|
||||||
|
|
||||||
|
ca:
|
||||||
|
# -- Creates a Cert-Manager CA
|
||||||
|
create: false
|
||||||
|
# -- Duration of the CA. Defaults to 10 years.
|
||||||
|
duration: 87600h
|
||||||
|
privateKey:
|
||||||
|
algorithm: ECDSA
|
||||||
|
size: 256
|
||||||
|
rotationPolicy: ""
|
||||||
|
# -- How long to wait before renewing the CA
|
||||||
|
renewBefore: ""
|
||||||
spire:
|
spire:
|
||||||
enabled: false
|
enabled: false
|
||||||
server:
|
server:
|
||||||
@@ -269,7 +282,9 @@ controllerManager:
|
|||||||
|
|
||||||
validatingWebhookConfiguration:
|
validatingWebhookConfiguration:
|
||||||
failurePolicy: Fail
|
failurePolicy: Fail
|
||||||
upgradeHook:
|
|
||||||
|
tools:
|
||||||
|
kubectl:
|
||||||
image:
|
image:
|
||||||
# -- The OCI registry to pull the image from
|
# -- The OCI registry to pull the image from
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
|
|||||||
Reference in New Issue
Block a user