aws / aws-application-networking-k8s

A Kubernetes controller for Amazon VPC Lattice
https://www.gateway-api-controller.eks.aws.dev/
Apache License 2.0
164 stars 49 forks source link

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

Open zijun726911 opened 3 months ago

zijun726911 commented 3 months ago

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: https://github.com/aws/aws-application-networking-k8s/blob/036e2a3ef0648407282a0ec0cdb6386425cb06c0/pkg/gateway/model_build_lattice_service.go#L135