knative / func

Knative Functions client API and CLI
Apache License 2.0
275 stars 138 forks source link

faas create/deploy could suggest the correct domain #94

Closed zroubalik closed 3 years ago

zroubalik commented 4 years ago

When creating/deploying a function, faas CLI could suggest the correct domain as user doesn't have to look up for the current value. Kubernetes clusters could be deployed accross various clouds, where the domain could be generated, long and ungly

lkingland commented 4 years ago

This would be a nice addition. If I am understanding you correctly, we would implement a suggestion feature, where creating a function test:

$ faas create test

Where there is no domain derivable from the current path, and a full domain has not been provided, would reach out to the cluster to query domains for which the cluster has been configured, prompting the user to choose one, with the default being .cluster.local, and it being one of the options.

This seems useful especially for, as you mention, deploying Functions to clusters which have been exposed as remarkably long and domain names... which seems to be quite often.

zroubalik commented 3 years ago

Closing this as we decoupled the domain from the Function name