diff --git a/docs/Getting-Started.md b/docs/Getting-Started.md index aed0559b..08d5a1d7 100644 --- a/docs/Getting-Started.md +++ b/docs/Getting-Started.md @@ -36,7 +36,7 @@ export GIT_REPO=https://github.com/owner/name?ref=gitops_branch #### Using a Specific git Provider You can add the `--provider` flag to the `repo bootstrap` command, to enforce using a specific provider when creating a new repository. If the value is not supplied, the code will attempt to infer it from the clone URL. -Autopilot currently support github and gitea as SCM providers. +Autopilot currently support github, gitlab and gitea as SCM providers. All the following commands will use the variables you supplied in order to manage your GitOps repository. diff --git a/docs/commands/argocd-autopilot_repo_bootstrap.md b/docs/commands/argocd-autopilot_repo_bootstrap.md index 9bd446b8..18612d3a 100644 --- a/docs/commands/argocd-autopilot_repo_bootstrap.md +++ b/docs/commands/argocd-autopilot_repo_bootstrap.md @@ -45,7 +45,7 @@ argocd-autopilot repo bootstrap [flags] --installation-mode string One of: normal|flat. If flat, will commit the bootstrap manifests, otherwise will commit the bootstrap kustomization.yaml (default "normal") --kubeconfig string Path to the kubeconfig file to use for CLI requests. -n, --namespace string If present, the namespace scope for this CLI request - --provider string The git provider, one of: gitea|github + --provider string The git provider, one of: gitea|github|gitlab --repo string Repository URL [GIT_REPO] --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") ``` diff --git a/pkg/git/provider.go b/pkg/git/provider.go index 4fa6843c..8d93256d 100644 --- a/pkg/git/provider.go +++ b/pkg/git/provider.go @@ -53,6 +53,7 @@ var ( var supportedProviders = map[string]func(*ProviderOptions) (Provider, error){ "github": newGithub, "gitea": newGitea, + "gitlab": newGitlab, } // New creates a new git provider