Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clustermesh: explicitly validate service type, and forbid ClusterIP
Currently, the "clustermesh enable" command lists ClusterIP as one of the supported service types. However, exposing the clustermesh-apiserver via a ClusterIP service is hardly ever a sensible idea, as this component must be reachable from other clusters. Still, this possibility has proved to be sometimes confusing for newbie users, who ended up with a broken setup. In an effort to prevent these problems, let's explicitly validate the specified service type, and allow only NodePort and LoadBalancer services. In any case, it is still possible to configure a service of type ClusterIP via the helm chart in the handful of very advanced use-cases (if any) which can actually work and benefit from it. Signed-off-by: Marco Iorio <[email protected]>
- Loading branch information