Use Tanzu Mission Control to add a Git repository to your cluster or cluster group to use for a kustomization.

Prerequisites

Log in to the Tanzu Mission Control console, as described in Log In to the Tanzu Mission Control Console.

Make sure you have the appropriate permissions to add a repository.
  • To add a repository, you must be associated with the cluster.admin or clustergroup.admin role.

Make sure you have already enabled continuous delivery for the cluster, as described in Enable Continuous Delivery for a Cluster or Cluster Group.

If your Git repository requires a secret, make sure that you have already added a repository credential, as described in Create a Repository Credential for a Cluster or Cluster Group.

Procedure

  1. Navigate to the cluster or cluster group to which you want to add a Git repository.
  2. Click the Add-ons tab.
  3. In the navigation menu on the Add-ons tab, under Sources click Git repositories.
  4. Click Add Git Repository.
  5. Enter a name and (optionally) a description for the repository.
  6. Specify the URL to the repository, beginning with HTTP, HTTPS, or SSH.
    Note: For clusters running behind a proxy that requires a self-signed CA certificate, you must provide the final redirected URL when you add the Git repository to the cluster.
    The URL format for SSH is slightly different from the HTTP format. For example, if the Git repository looks like this:
    https://github.com/my-integrations/my-private-configmap
    then the SSH URL looks like this:
    ssh://github.com/my-integrations/my-private-configmap.git
  7. Specify the credential setting for the repository.
    • You can optionally accept the default of No credentials needed.
    • To select a previously-defined credential, click the delete icon (x) and then select the credential from the dropdown.
  8. You can optionally expand Advanced settings to specify additional options, like Branch and Tag.
  9. After you have defined the configuration for the Git repository, click Add Git Repository.