Make webhook fail policy configurable (#124)

This patch makes the webhook fail policy configurable.

---------

Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
kfox1111
2023-03-15 12:55:07 -07:00
committed by GitHub
parent 9ccbd3c67f
commit 2e3f045826
3 changed files with 6 additions and 2 deletions
@@ -47,6 +47,7 @@ A Helm chart to install the SPIRE server.
| controllerManager.service.annotations | object | `{}` | |
| controllerManager.service.port | int | `443` | |
| controllerManager.service.type | string | `"ClusterIP"` | |
| controllerManager.validatingWebhookConfiguration.failurePolicy | string | `"Fail"` | |
| dataStorage.accessMode | string | `"ReadWriteOnce"` | |
| dataStorage.enabled | bool | `true` | |
| dataStorage.size | string | `"1Gi"` | |
@@ -10,7 +10,7 @@ webhooks:
name: {{ include "spire-controller-manager.fullname" . }}-webhook
namespace: {{ include "spire-server.namespace" . }}
path: /validate-spire-spiffe-io-v1alpha1-clusterfederatedtrustdomain
failurePolicy: Fail
failurePolicy: {{ .Values.controllerManager.validatingWebhookConfiguration.failurePolicy }}
name: vclusterfederatedtrustdomain.kb.io
rules:
- apiGroups: ["spire.spiffe.io"]
@@ -24,7 +24,7 @@ webhooks:
name: {{ include "spire-controller-manager.fullname" . }}-webhook
namespace: {{ include "spire-server.namespace" . }}
path: /validate-spire-spiffe-io-v1alpha1-clusterspiffeid
failurePolicy: Fail
failurePolicy: {{ .Values.controllerManager.validatingWebhookConfiguration.failurePolicy }}
name: vclusterspiffeid.kb.io
rules:
- apiGroups: ["spire.spiffe.io"]
@@ -174,6 +174,9 @@ controllerManager:
dnsNameTemplates: []
# - '{{ index .PodMeta.Labels "app.kubernetes.io/name" }}.{{ .PodMeta.Namespace }}.svc.cluster.local'
validatingWebhookConfiguration:
failurePolicy: Fail
telemetry:
prometheus:
enabled: false