-
Notifications
You must be signed in to change notification settings - Fork 102
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
[Feature Request] Add JWT type to nomad_acl_auth_method #422
Comments
Thanks for the suggestion @flexwie! It does seem like the |
I have no experience writing Terraform resources, but I can give this a shot! |
That's awesome @flexwie! Resources in Terraform providers have a very simple CRUD (Create, Retrieve, Update, and Delete) interface. Since a resource already exists, you mostly need to update its configuration and populate the values so they're stored in the Terraform state. I believe you will need to add the new fields here: terraform-provider-nomad/nomad/resource_acl_auth_method.go Lines 79 to 142 in ca90452
And then update these two functions that are used to map values from the internal Terraform representation to the Nomad SDK (and vice-versa): terraform-provider-nomad/nomad/resource_acl_auth_method.go Lines 287 to 369 in ca90452
Lastly the new values should be documented in https://github.com/hashicorp/terraform-provider-nomad/blob/main/website/docs/r/acl_auth_method.html.markdown. You can use https://registry.terraform.io/tools/doc-preview to preview changes there. Let me know if you have any questions! |
The
nomad_acl_auth_method
resource currently only has support for OIDC type methods. It would be great, if the JWT type would also be supported (along with the added parameters in the config block).The text was updated successfully, but these errors were encountered: