Skip to content

Commit

Permalink
Merge pull request #114 from cloudsmith-io/ceng-333-terraform-update-…
Browse files Browse the repository at this point in the history
…repository-docs

CENG-333: Update repo docs
  • Loading branch information
BartoszBlizniak authored Aug 28, 2024
2 parents e049972 + 7f35fca commit 3c2d10a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cloudsmith/resource_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func resourceRepository() *schema.Resource {
Type: schema.TypeString,
Description: "A descriptive name for the repository.",
Required: true,
ValidateFunc: validation.All(validation.StringIsNotEmpty, validateNoSpaces),
ValidateFunc: validation.StringIsNotEmpty,
},
"namespace": {
Type: schema.TypeString,
Expand Down Expand Up @@ -558,11 +558,11 @@ func resourceRepository() *schema.Resource {
Description: "The Cloudsmith region in which package files are stored." +
"Supported regions include: Sydney, Australia (au-sydney)," +
"Singapore (sg-singapore), Montreal, Canada (ca-montreal), Frankfurt, Germany (de-frankfurt), Oregon," +
"United States (us-oregon), Ohio, United States (us-ohio), Dublin, Ireland (ie-dublin)",
"United States (us-oregon), Ohio, United States (us-ohio), Dublin, Ireland (ie-dublin) (default)",
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"au-sydney", "sg-singapore", "ca-montreal", "de-frankfurt", "us-oregon", "us-ohio", "ie-dublin"}, false),
ValidateFunc: validation.StringInSlice([]string{"au-sydney", "sg-singapore", "ca-montreal", "de-frankfurt", "us-oregon", "us-ohio", "ie-dublin", "default"}, false),
},
"strict_npm_validation": {
Type: schema.TypeBool,
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ resource "cloudsmith_repository" "my_repository" {
* `index_files` - (Optional) If set to `true`, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
* `move_own` - (Optional) If set to `true`, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
* `move_packages` - (Optional) This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. Valid values include `Admin` and `Write`.
* `name` - (Required) A descriptive name for the repository.
* `name` - (Required) A descriptive visual name for the repository.
* `namespace` - (Required) Namespace (or organization) to which this repository belongs.
* `proxy_npmjs` - (Optional) If set to `true`, Npm packages that are not in the repository when requested by clients will automatically be proxied from the public npmjs.org registry. If there is at least one version for a package, others will not be proxied.
* `proxy_pypi` - (Optional) If set to `true`, Python packages that are not in the repository when requested by clients will automatically be proxied from the public pypi.python.org registry. If there is at least one version for a package, others will not be proxied.
Expand Down

0 comments on commit 3c2d10a

Please sign in to comment.