diff --git a/codefresh/resource_account_gitops_settings.go b/codefresh/resource_account_gitops_settings.go index 6ac6460..81dd852 100644 --- a/codefresh/resource_account_gitops_settings.go +++ b/codefresh/resource_account_gitops_settings.go @@ -62,7 +62,7 @@ func resourceAccountGitopsSettings() *schema.Resource { }, "shared_config_repository": { Type: schema.TypeString, - Description: "Shared config repository url. Must be a valid git url which contains `.git`. May also includ path and branch references", + Description: "Shared config repository url. Must be a valid git url which contains `.git`. May also include path and branch references", ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(https?:\/\/)(\S+)(.git)(\S*)$`), "must be a valid git url and must contain .git For example https://github.com/owner/repo.git or https://github.com/owner/repo.git/some/path?ref=branch-name"), Required: true, }, diff --git a/docs/resources/account_gitops_settings.md b/docs/resources/account_gitops_settings.md index b5663e5..b8be9f7 100644 --- a/docs/resources/account_gitops_settings.md +++ b/docs/resources/account_gitops_settings.md @@ -13,7 +13,7 @@ Codefresh account gitops setting - such as git provider, API URL for the git pro ```hcl resource "codefresh_account_gitops_settings" "gitops-settings" { git_provider = "GITHUB" - shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git" + shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git?ref=main" } ``` ```hcl @@ -30,7 +30,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" { ### Required - `git_provider` (String) Git provider name - currently supported values are: GITHUB ,GERRIT ,GITLAB ,BITBUCKET ,BITBUCKET_SERVER -- `shared_config_repository` (String) Shared config repository url. Must be a valid git url which contains `.git`. May also includ path and branch references +- `shared_config_repository` (String) Shared config repository url. Must be a valid git url which contains `.git`. May also include path and branch references ### Optional @@ -42,7 +42,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" { - `name` (String) Account name for active account [!WARNING] -Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updated will fail. +Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updates will fail. If you need to change the repository please contact Codefresh support. ## Import diff --git a/templates/resources/account_gitops_settings.md.tmpl b/templates/resources/account_gitops_settings.md.tmpl index b8fbfdd..1966bbf 100644 --- a/templates/resources/account_gitops_settings.md.tmpl +++ b/templates/resources/account_gitops_settings.md.tmpl @@ -13,7 +13,7 @@ description: |- ```hcl resource "codefresh_account_gitops_settings" "gitops-settings" { git_provider = "GITHUB" - shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git" + shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git?ref=main" } ``` ```hcl @@ -27,7 +27,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" { {{ .SchemaMarkdown | trimspace }} [!WARNING] -Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updated will fail. +Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updates will fail. If you need to change the repository please contact Codefresh support. ## Import