fix(components): Add default V1ContainerPort protocol value for the kfserving component (#4956)

This commit is contained in:
Tommy Li 2021-01-07 16:21:00 -08:00 committed by GitHub
parent 27fa60b568
commit b5af45852b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def customEndpointSpec(custom_model_spec, service_account):
else None
)
ports = (
[client.V1ContainerPort(container_port=int(custom_model_spec.get("port", "")))]
[client.V1ContainerPort(container_port=int(custom_model_spec.get("port", "")), protocol="TCP")]
if custom_model_spec.get("port", "")
else None
)