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

Make not-generated Terraform resources CSV available as a Github workflow artifact #47

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

ulucinar
Copy link
Contributor

@ulucinar ulucinar commented Nov 10, 2022

Description of your changes

This PR proposes a change where a CSV file of Terraform resource names which are available in the Terraform provider's schema but not generated as managed resources is produced and made available as a Github workflow artifact.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested with the following workflow run:
https://github.com/upbound/provider-gcp/actions/runs/3439134516
https://github.com/upbound/provider-gcp/actions/runs/3461113867

@ulucinar ulucinar marked this pull request as draft November 10, 2022 17:40
…flow artifact

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
…nerator

- Consume upjet commit 6de200a3a8b0ac77c5f9d122f93db26aacd61960

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar ulucinar marked this pull request as ready for review November 14, 2022 11:37
# to save a skipped resource list
SKIPPED_RESOURCES_CSV: ../_output/skipped_resources.csv

- name: Publish skipped resources CSV to Github
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this better fits publish-artifacts job below rather than check-diff. What do you think @ulucinar ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Unfortunately, the make build.all does not currently call the generate target and I did not want to introduce an extra make generate call that would make the workflows a little bit longer. I've discussed it here.

Copy link
Contributor

@turkenh turkenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ulucinar!

@ulucinar ulucinar merged commit 148ecc1 into crossplane-contrib:main Nov 14, 2022
@ulucinar ulucinar deleted the fix-867 branch November 14, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants