Skip to content

Commit

Permalink
add better description for flow stage binding
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Dec 19, 2024
1 parent ac6dc1c commit 5706a3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/resources/flow_stage_binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "authentik_flow_stage_binding" "dummy-flow" {

### Optional

- `evaluate_on_plan` (Boolean) Defaults to `true`.
- `evaluate_on_plan` (Boolean) Evaluate policies during the Flow planning process. Defaults to `true`.
- `invalid_response_action` (String) Allowed values:
- `retry`
- `restart`
Expand All @@ -53,7 +53,7 @@ resource "authentik_flow_stage_binding" "dummy-flow" {
- `all`
- `any`
Defaults to `any`.
- `re_evaluate_policies` (Boolean) Defaults to `false`.
- `re_evaluate_policies` (Boolean) Evaluate policies when the Stage is present to the user. Defaults to `false`.

### Read-Only

Expand Down
14 changes: 8 additions & 6 deletions internal/provider/resource_flow_stage_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ func resourceFlowStageBinding() *schema.Resource {
Required: true,
},
"evaluate_on_plan": {
Type: schema.TypeBool,
Optional: true,
Default: true,
Type: schema.TypeBool,
Optional: true,
Default: true,
Description: "Evaluate policies during the Flow planning process.",
},
"re_evaluate_policies": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Evaluate policies when the Stage is present to the user.",
},
"order": {
Type: schema.TypeInt,
Expand Down

0 comments on commit 5706a3e

Please sign in to comment.