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

Consider Handling of Terraform-specific Behaviour Properties #116

Open
1 task done
bendbennett opened this issue Jan 18, 2024 · 0 comments
Open
1 task done

Consider Handling of Terraform-specific Behaviour Properties #116

bendbennett opened this issue Jan 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bendbennett
Copy link
Contributor

Use Cases or Problem Statement

Automated generation of provider schema Go code for predefined Plan Modifiers would simplify code generation.

Currently, in order to have a predefined Plan Modifier appear in the generated schema, the spec that is fed to the generator needs to explicitly define the Plan Modifier as follows:

              "plan_modifiers": [
                {
                  "custom": {
                    "imports": [
                      {
                        "path": "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
                      }
                    ],
                    "schema_definition": "stringplanmodifier.UseStateForUnknown()"
                  }
                }
              ]

If Consider Adding Terraform-specific Behaviour Properties is implemented in codegen-spec, then modifications to codegen-framework will be required in order to process these new fields in the spec.

Proposal

Track Consider Adding Terraform-specific Behaviour Properties is implemented in codegen-spec, and add relevant code to process new behaviour properties if/when they are added to codegen-spec.

Additional Information

References:

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

No branches or pull requests

1 participant