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

Indexed Resources using build Pattern #230

Open
bjgpnth opened this issue Aug 7, 2024 · 4 comments
Open

Indexed Resources using build Pattern #230

bjgpnth opened this issue Aug 7, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request no API support Xray doesn't have API to support this feature

Comments

@bjgpnth
Copy link

bjgpnth commented Aug 7, 2024

Is your feature request related to a problem? Please describe.

I am attempting to deploy & manager indexed resources using terraform. I am using provider version 2.9.0. Creating the indexed resource using the build name is successful. I would like to add include and exclude patterns. In the documentation there is no mention of patterns.

https://registry.terraform.io/providers/jfrog/xray/latest/docs/resources/binary_manager_builds

Describe the solution you'd like

Ideally I would like to use a pattern (like project-env_**) which will index all the builds that has names starting with the pattern.

Describe alternatives you've considered
The only alternative seems to be add all the build using names explicitly. This will not be efficient as if a new build name is introduced, this is a change in the Terraform code to add that build name.

Terraform code that work

resource "xray_binary_manager_builds" "my-indexed-builds" {
  id = "default"
  indexed_builds  = [ "project1-dev_build-1 ]
}

Terraform that we like to be able to do

resource "xray_binary_manager_builds" "my-indexed-builds" {
  id = "default"
  indexed_builds_patterns  = [ "project1-dev_**" ]
}
@bjgpnth bjgpnth added the enhancement New feature or request label Aug 7, 2024
@alexhung alexhung transferred this issue from jfrog/terraform-provider-project Aug 7, 2024
@alexhung
Copy link
Member

alexhung commented Aug 7, 2024

Closely related to #226

Just like the issue with release bundle v2, patterns are not currently supported for builds.

@bjgpnth
Copy link
Author

bjgpnth commented Aug 8, 2024

Alex - Thank you for your response. Do you know if this feature will be available anytime soon?

@Sam13
Copy link

Sam13 commented Aug 8, 2024

+1 from my side

Without pattern support this is useless for me.

@alexhung
Copy link
Member

alexhung commented Aug 8, 2024

Alex - Thank you for your response. Do you know if this feature will be available anytime soon?

@bjgpnth I've added builds to the internal feature request ticket. I don't have ETA. I encourage you also contact your JFrog support team and make them aware of this.

@alexhung alexhung added the no API support Xray doesn't have API to support this feature label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no API support Xray doesn't have API to support this feature
Projects
None yet
Development

No branches or pull requests

4 participants