FQDN Field Validation with Pydantic
The Problem
Customers were configuring egress entries for external services using incorrect syntax. This would lead to validation errors from Istio when deploying microservice CRDs, so the controller that manages the CRD's owned resources would then begin generating errors when attempting to update resources that Istio's validatingwebhook
would reject:
microserviceDeployment.yaml | |
---|---|
- When the CRD is applied, various Istio resources are generated. Istio's
DestinationRule
resource expectshost
values that referenceServiceEntry
resources to be formatted asnamespace/service-entry-name.namespace.svc.cluster.local
.
The microservice pipeline would validate that the field contained a list of strings: