Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cocoapods package type to virtual repo list #1084

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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