-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add snooze rules resource #218
Conversation
@@ -38,6 +38,6 @@ Documentation files in `docs` are generated by combining: | |||
Any edits to documentation files should be made in the `templates` directory or the .go files. Then you can use the following steps to generate the files in the docs directory: | |||
|
|||
1. Download `tfplugindocs` from https://github.com/hashicorp/terraform-plugin-docs/releases and make it available on your `PATH` | |||
2. Run `$ make docs` or `$ tfplugindocs` from the root of this directory |
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.
Running tfplugindocs directly doesn't work anymore because tfplugindocs builds the provider with the registry.terraform.io
prefix, but then calls the terraform binary which is now open-tofu that looks for plugins with the prefix of registry.opentofu.org
.
tfplugindocs | ||
docs: build | ||
$(MAKE) -C tfplugindocs_working generate-schema | ||
tfplugindocs generate --providers-schema tfplugindocs_working/schema.json |
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.
Now we generate the schema separately from generating the docs to allow us bypass the tfplugindocs
auto compiling the provider.
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.
LGTM!
3c9284e
to
572075d
Compare
Adds snooze rules as a resource to the terraform provider.
Note that I had to fix how we generate docs now that we have tofu as our terraform binary. The docs can still be created via the
make docs
command, and should now be agnostic to whether you have terraform or tofu installed.@lightstep/team-alerts-be