Skip to content

[Feature]: Project Data Source #116

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

Closed
Jake-Mok-Nelson opened this issue May 8, 2023 · 0 comments · Fixed by #117
Closed

[Feature]: Project Data Source #116

Jake-Mok-Nelson opened this issue May 8, 2023 · 0 comments · Fixed by #117
Labels
enhancement New feature or request

Comments

@Jake-Mok-Nelson
Copy link
Contributor

What would you like to be added?

Currently no data source for project and the project resource outputs aren't documented?

It would be good to have a data resource for a project to perform validation before attempting to attach a pipeline to a project that may not exist.

@Jake-Mok-Nelson Jake-Mok-Nelson added the enhancement New feature or request label May 8, 2023
ilia-medvedev-codefresh added a commit that referenced this issue Feb 25, 2024
## What

Create a project data resource for the Terraform Codefresh provider

Fixes #116 

## Why

A project data resource would allow us to perform validation before
allowing a pipeline to target a project that may or may not exist.
Ordinarily you'd just target the project resource but pipelines are not
always created in the same location as the projects.

## Notes

I have no ability to test this at the moment (I do not have connectivity
to a Codefresh system), I'm hoping you can validate that it's good.

## Checklist

* [x] _I have read
[CONTRIBUTING.md](https://github.com/codefresh-io/terraform-provider-codefresh/blob/master/README.md)._
* [x] _I have [allowed changes to my fork to be
made](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork)._
* [ ] _I have added tests, assuming new tests are warranted_.
* [x] _I understand that the `/test` comment will be ignored by the CI
trigger [unless it is made by a repo admin or
collaborator](https://codefresh.io/docs/docs/pipelines/triggers/git-triggers/#support-for-building-pull-requests-from-forks)._

---------

Co-authored-by: Yonatan Koren <[email protected]>
Co-authored-by: Ilia Medvedev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant