-
Notifications
You must be signed in to change notification settings - Fork 53
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
terraform-provider: add image datasource #2642
Conversation
1e8ff57
to
bb0473e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have tested it locally and changes look mostly good
terraform-provider-constellation/internal/provider/image_data_source.go
Outdated
Show resolved
Hide resolved
terraform-provider-constellation/internal/provider/provider_test.go
Outdated
Show resolved
Hide resolved
terraform-provider-constellation/internal/provider/image_data_source_test.go
Show resolved
Hide resolved
can you rebase? otherwise my PR is hard to review 🙈 |
Rebase to what? I should be up-to-date with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't review the Bazel parts or the tests
Rest looks good to me
terraform-provider-constellation/internal/provider/image_data_source.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
✅ Deploy Preview for constellation-docs canceled.
|
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
4bc35bd
to
686f465
Compare
// Save data into Terraform state | ||
data.Reference = types.StringValue(imageRef) | ||
// Use a placeholder ID for testing, as per | ||
data.ID = types.StringValue("placeholder") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report
|
Context
In the Terraform provider, we need a way to transform a CSP-agnostic image reference to a CSP-specific image reference, which can be used inside the Cluster resource. This is based on #2632.
Proposed change(s)
Additional info
Checklist