-
Notifications
You must be signed in to change notification settings - Fork 44
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
Write _index.md to local docs dir on Any TF Provider #2717
Conversation
dfce611
to
d78582a
Compare
d78582a
to
5975878
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2717 +/- ##
==========================================
+ Coverage 68.60% 68.67% +0.06%
==========================================
Files 322 322
Lines 41223 41279 +56
==========================================
+ Hits 28282 28349 +67
+ Misses 11348 11333 -15
- Partials 1593 1597 +4 ☔ View full report in Codecov by Sentry. |
Simplify args parsing by using cobra. My hope is that this will make the implementation of #2717 much easier.
This allows modules outside of the bridge to test code that uses `tfbridge.GetLogger`. This will be used by `dynamic`. It may also be used by AWS, which currently has test code which uses the now moved-to-internal logging.InitContext.
This gets us out of the business of writing flag parsing. This does change the format of options. Before, they looked like: ```console $ pulumi package get-schema registry.opentofu.org/owner/provider version fullDocs=true ``` They now look like: ```console $ pulumi package get-schema -- registry.opentofu.org/owner/provider version --fullDocs ```
clean up installation instructions
5975878
to
a282973
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.
2 nits, but otherwise LGTM.
pkg/bridgetest/README.md
Outdated
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.
Should be removed. In favor of unstable/testutils
.
pkg/tfgen/installation_docs.go
Outdated
// **** | ||
// | ||
// Installation | ||
// The Foo provider is available as a package in all Pulumi languages: | ||
// | ||
// JavaScript/TypeScript: @pulumi/foo | ||
// Python: pulumi-foo | ||
// Go: github.com/pulumi/pulumi-foo/sdk/v3/go/foo | ||
// .NET: Pulumi.foo | ||
// Java: com.pulumi/foo | ||
// | ||
// **** |
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.
// **** | |
// | |
// Installation | |
// The Foo provider is available as a package in all Pulumi languages: | |
// | |
// JavaScript/TypeScript: @pulumi/foo | |
// Python: pulumi-foo | |
// Go: github.com/pulumi/pulumi-foo/sdk/v3/go/foo | |
// .NET: Pulumi.foo | |
// Java: com.pulumi/foo | |
// | |
// **** | |
// | |
// Installation | |
// The Foo provider is available as a package in all Pulumi languages: | |
// | |
// JavaScript/TypeScript: @pulumi/foo | |
// Python: pulumi-foo | |
// Go: github.com/pulumi/pulumi-foo/sdk/v3/go/foo | |
// .NET: Pulumi.foo | |
// Java: com.pulumi/foo | |
// |
This PR has been shipped in release v3.99.0. |
Update: Rebased against #2742 which adds Cobra. Blocked until that merges.
This pull request adds a
registryDocs
Generator to the initialSetup call for a dynamic provider.Adjustments to accommodate this change:
terraform
, the section needs to be added after the edit rules are applied.info.Repository
, which is the source repo of the provider. If it doesn't contain "pulumi" then we're dealing with an Any TF provider._index.md
is written to a user-specified (via flag)--indexDocOutDir
. This allows us to write to any location in a file system. Leaving this blank prompts the file to only get written to the virtual filesystem in the bridge._index.md
file` from hashicorp/random.