Disable Knative install button when Knative already installed on cluster

Problem to solve

With https://gitlab.com/gitlab-org/gitlab-ce/issues/58941 we'll determine if Knative is already installed on cluster so users can take advantage of GitLab serverless features. However, the "install" button for Knative will still be present on the Kubernetes applications page. Two main problems arise: 1) Attempting installation will result in failure as Knative is already installed on cluster and 2) user will not be able to use domain/ingress configuration offered on this page.

Intended users

Operators, developers

Further details

Proposal

  • Disable Install button if we detect Knative in their cluster. Change copy to Installed. This could be the case even if Helm is not yet installed which may need some additional frontend work depending on how the disabled applications were built.
  • Update documentation to include information regarding pre-existing Knative installations and how to fetch the external_ip / edit domain in those cases.

Screen_Shot_2019-05-01_at_2.57.20_PM

Following up issue for nice-to-have feature: https://gitlab.com/gitlab-org/gitlab-ce/issues/61347

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

Links / references

Edited by Taurie Davis