aws / aws-application-networking-k8s

A Kubernetes controller for Amazon VPC Lattice

Home Page:https://www.gateway-api-controller.eks.aws.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add validation in the latticeServiceModelBuildTask: the `hostnames` in the TLSRoute is required field for the aws gateway api controller supported TLSRoute

zijun726911 opened this issue · comments

Due to the VPC lattice Considerations:

The VPC Lattice service must have a custom domain name.

For aws gateway api controller supported TLSRoute, it must have at least one item in the hostnames field.

https://docs.aws.amazon.com/vpc-lattice/latest/ug/tls-listeners.html#tls-listeners-considerations

Need to change code here:

spec.CustomerDomainName = string(t.route.Spec().Hostnames()[0])