Skip to content

Commit

Permalink
Merge pull request #1084 from jfrog/GH-1079-add-cocoapods-to-virtual-…
Browse files Browse the repository at this point in the history
…repos

Add Cocoapods package type to virtual repo list
  • Loading branch information
alexhung authored Sep 25, 2024
2 parents b0152ef + 2a92c3f commit 0bb9f74
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 12.1.0 (September 26, 2024). Tested on Artifactory 7.90.10 with Terraform 1.9.6 and OpenTofu 1.8.2

IMPROVEMENTS:

* **New Resource:** artifactory_virtual_cocoapods_repository, which was missing from the provider. Issue: [#1079](https://github.com/jfrog/terraform-provider-artifactory/issues/1079) PR: [#1084](https://github.com/jfrog/terraform-provider-artifactory/pull/1084)

## 12.0.0 (September 16, 2024). Tested on Artifactory 7.90.10 with Terraform 1.9.6 and OpenTofu 1.8.2

BREAKING CHANGES:
Expand Down
38 changes: 38 additions & 0 deletions docs/resources/virtual_cocoapods_repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
subcategory: "Virtual Repositories"
---
# Artifactory Virtual Cocoapods Repository Resource

Creates a virtual Cocoapods repository. Official documentation can be found [here](https://jfrog.com/help/r/jfrog-artifactory-documentation/set-up-virtual-cocoapods-repositories).

## Example Usage

```hcl
resource "artifactory_virtual_cocoapods_repository" "foo-cocoapods" {
key = "foo-cocoapods"
repositories = []
description = "A test virtual repo"
notes = "Internal description"
includes_pattern = "com/jfrog/**,cloud/jfrog/**"
excludes_pattern = "com/google/**"
}
```

## Argument Reference

Arguments have a one to one mapping with the [JFrog API](https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON).
The following arguments are supported, along with the [common list of arguments for the virtual repositories](virtual.md):

* `key` - (Required) A mandatory identifier for the repository that must be unique. It cannot begin with a number or
contain spaces or special characters.
* `repositories` - (Optional) The effective list of actual repositories included in this virtual repository.
* `description` - (Optional)
* `notes` - (Optional)

## Import

Virtual repositories can be imported using their name, e.g.

```
$ terraform import artifactory_virtual_cocoapods_repository.foo-composer foo-cocoapods
```
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var defaultRepoLayoutMap = map[string]SupportedRepoClasses{
SupportedRepoTypes: map[string]bool{
"local": true,
"remote": true,
"virtual": true,
"federated": true,
},
},
Expand Down
1 change: 1 addition & 0 deletions pkg/artifactory/resource/repository/virtual/virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (bp RepositoryBaseParams) Id() string {
}

var PackageTypesLikeGeneric = []string{
repository.CocoapodsPackageType,
repository.ComposerPackageType,
repository.GemsPackageType,
repository.GenericPackageType,
Expand Down

0 comments on commit 0bb9f74

Please sign in to comment.