-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78a3901
commit 05a8216
Showing
6 changed files
with
137 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "codefresh_account_gitops_settings Data Source - terraform-provider-codefresh" | ||
subcategory: "" | ||
description: |- | ||
This data source retrieves gitops settings for the active account | ||
--- | ||
|
||
# codefresh_account_gitops_settings (Data Source) | ||
|
||
This data source retrieves gitops settings for the active account | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `_id` (String) | ||
- `admins` (List of String) | ||
- `git_provider` (String) | ||
- `git_provider_api_url` (String) | ||
- `id` (String) The ID of this resource. | ||
- `name` (String) | ||
- `shared_config_repository` (String) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
page_title: "codefresh_account_gitops_settings Resource - terraform-provider-codefresh" | ||
subcategory: "" | ||
description: |- | ||
Codefresh account gitops setting - such as git provider, API URL for the git provider and internal shared config repository | ||
--- | ||
|
||
# codefresh_account_gitops_settings (Resource) | ||
|
||
Codefresh account gitops setting - such as git provider, API URL for the git provider and internal shared config repository | ||
|
||
## Example usage | ||
```hcl | ||
resource "codefresh_account_gitops_settings" "gitops-settings" { | ||
git_provider = "GITHUB" | ||
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git" | ||
} | ||
``` | ||
```hcl | ||
resource "codefresh_account_gitops_settings" "gitops-settings" { | ||
git_provider = "BITBUCKET_SERVER" | ||
git_provider_api_url = https://bitbucket.example.com/rest/api/1.0 | ||
shared_config_repository = "http://example-bitbucket.com/scm/proj/codefresh-internal-shared-config.git" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### 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 | ||
|
||
### Optional | ||
|
||
- `git_provider_api_url` (String) Git provider API url. If not provided can automatically be set for known SaaS git providers. For example - for github it will be set to https://api.github.com | ||
|
||
### Read-Only | ||
|
||
- `_id` (String) Account ID for active account | ||
- `id` (String) The ID of this resource. | ||
- `name` (String) Account name for active account | ||
|
||
|
||
-> 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 | ||
```sh | ||
terraform import codefresh_account_idp.test <id> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
## Example usage | ||
```hcl | ||
resource "codefresh_account_gitops_settings" "gitops-settings" { | ||
git_provider = "GITHUB" | ||
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git" | ||
} | ||
``` | ||
```hcl | ||
resource "codefresh_account_gitops_settings" "gitops-settings" { | ||
git_provider = "BITBUCKET_SERVER" | ||
git_provider_api_url = https://bitbucket.example.com/rest/api/1.0 | ||
shared_config_repository = "http://example-bitbucket.com/scm/proj/codefresh-internal-shared-config.git" | ||
} | ||
``` | ||
|
||
{{ .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. | ||
If you need to change the repository please contact Codefresh support. | ||
|
||
## Import | ||
```sh | ||
terraform import codefresh_account_idp.test <id> | ||
``` |