You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/reference/values.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -569,7 +569,8 @@
569
569
|gateway.validation.disableTransformationValidation|bool|false|set this to true to disable transformation validation. This may bring significant performance benefits if using many transformations, at the cost of possibly incorrect transformations being sent to Envoy. When using this value make sure to pre-validate transformations.|
570
570
|gateway.validation.warnRouteShortCircuiting|bool|false|Write a warning to route resources if validation produced a route ordering warning (defaults to false). By setting to true, this means that Gloo Edge will start assigning warnings to resources that would result in route short-circuiting within a virtual host.|
571
571
|gateway.validation.secretName|string|gateway-validation-certs|Name of the Kubernetes Secret containing TLS certificates used by the validation webhook server. This secret will be created by the certGen Job if the certGen Job is enabled.|
572
-
|gateway.validation.failurePolicy|string|Ignore|failurePolicy defines how unrecognized errors from the Gateway validation endpoint are handled - allowed values are 'Ignore' or 'Fail'. Defaults to Ignore |
572
+
|gateway.validation.failurePolicy|string|Ignore|Specify how to handle unrecognized errors for Gloo resources that are returned from the Gateway validation endpoint. Supported values are 'Ignore' or 'Fail'|
573
+
|gateway.validation.kubeCoreFailurePolicy|string|Ignore|Specify how to handle unrecognized errors for Kubernetes core resources that are returned by the Gateway validation endpoint. Currently the [validation webhook](https://github.com/solo-io/gloo/blob/main/install/helm/gloo/templates/5-gateway-validation-webhook-configuration.yaml) is configured to handle errors for Kubernetes secrets and namespaces. Supported values are 'Ignore' or 'Fail'. If you set this value to 'Fail', you cannot modify these core resources if the 'gloo' service is unavailable.|
Copy file name to clipboardexpand all lines: install/helm/gloo/generate/values.go
+2-1
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,8 @@ type GatewayValidation struct {
479
479
DisableTransformationValidation*bool`json:"disableTransformationValidation,omitempty" desc:"set this to true to disable transformation validation. This may bring significant performance benefits if using many transformations, at the cost of possibly incorrect transformations being sent to Envoy. When using this value make sure to pre-validate transformations."`
480
480
WarnRouteShortCircuiting*bool`json:"warnRouteShortCircuiting,omitempty" desc:"Write a warning to route resources if validation produced a route ordering warning (defaults to false). By setting to true, this means that Gloo Edge will start assigning warnings to resources that would result in route short-circuiting within a virtual host."`
481
481
SecretName*string`json:"secretName,omitempty" desc:"Name of the Kubernetes Secret containing TLS certificates used by the validation webhook server. This secret will be created by the certGen Job if the certGen Job is enabled."`
482
-
FailurePolicy*string`json:"failurePolicy,omitempty" desc:"failurePolicy defines how unrecognized errors from the Gateway validation endpoint are handled - allowed values are 'Ignore' or 'Fail'. Defaults to Ignore "`
482
+
FailurePolicy*string`json:"failurePolicy,omitempty" desc:"Specify how to handle unrecognized errors for Gloo resources that are returned from the Gateway validation endpoint. Supported values are 'Ignore' or 'Fail'"`
483
+
KubeCoreFailurePolicy*string`json:"kubeCoreFailurePolicy,omitempty" desc:"Specify how to handle unrecognized errors for Kubernetes core resources that are returned by the Gateway validation endpoint. Currently the [validation webhook](https://github.com/solo-io/gloo/blob/main/install/helm/gloo/templates/5-gateway-validation-webhook-configuration.yaml) is configured to handle errors for Kubernetes secrets and namespaces. Supported values are 'Ignore' or 'Fail'. If you set this value to 'Fail', you cannot modify these core resources if the 'gloo' service is unavailable."`
483
484
Webhook*Webhook`json:"webhook,omitempty" desc:"webhook specific configuration"`
484
485
ValidationServerGrpcMaxSizeBytes*int`json:"validationServerGrpcMaxSizeBytes,omitempty" desc:"gRPC max message size in bytes for the gloo validation server"`
485
486
LivenessProbeEnabled*bool`json:"livenessProbeEnabled,omitempty" desc:"Set to true to enable a liveness probe for the gateway (default is false). You must also set the 'Probes' value to true."`
- name: kube.{{ .Release.Namespace }}.svc # must be a domain with at least three segments separated by dots
77
+
clientConfig:
78
+
service:
79
+
name: gloo
80
+
namespace: {{ .Release.Namespace }}
81
+
path: "/validation"
82
+
caBundle: ""# update manually or use certgen job or cert-manager's ca-injector
83
+
rules:
84
+
{{- /* Can't use the include for this one because if the operations are empty, we need to drop the whole list element */}}
56
85
{{- if and (not (has "*" .Values.gateway.validation.webhook.skipDeleteValidationResources)) (not (has "secrets" .Values.gateway.validation.webhook.skipDeleteValidationResources)) }}
57
86
- operations: [ "DELETE" ]
58
87
apiGroups: [""]{{/* We do not have internal secret CRDs. We want to validate the deletion of secrets such as TLS, so we add "" which refers to Kubernetes' core APIs. */}}
@@ -66,20 +95,18 @@ specific resources, we will manage the resources that the webhook receives via t
66
95
apiVersions: ["v1"]
67
96
resources: ["namespaces"]
68
97
{{- end }}
69
-
- operations: {{ include "gloo.webhookvalidation.operationsForResource" (list "ratelimitconfigs" .Values.gateway.validation.webhook.skipDeleteValidationResources) }}
70
-
apiGroups: ["ratelimit.solo.io"]
71
-
apiVersions: ["v1alpha1"]
72
-
resources: ["ratelimitconfigs"]
73
98
sideEffects: None
74
99
matchPolicy: Exact
75
100
{{- if .Values.gateway.validation.webhook.timeoutSeconds }}
0 commit comments