Commit 2945191
authored
fix(resource/pipeline): fix
## What
This fixes `permit_restart_from_failed_steps` behavior in `pipeline`
resource.
Before this fix, setting `permit_restart_from_failed_steps = false` or
omitting this key resulted in “Permit restart from failed step: Use
account settings” for both cases.
New syntax/behavior is:
`permit_restart_from_failed_steps = [true|false]` with the default value
`true` (“Permit”).
If `false`, the policy is set to “Forbid”.
New flag is added:
`permit_restart_from_failed_steps_use_account_settings = [false|true]`
with the default value `false` (“do not use account settings”).
If `true`, `permit_restart_from_failed_steps` will be ignored and
pipeline policy will be set to “Use account settings”.
> [!WARNING]
> BREAKING CHANGES!
> * Previously, `permit_restart_from_failed_steps = false` resulted in
“Permit restart from failed step: Use account settings”.
> From now on, setting `permit_restart_from_failed_steps = false` will
result in “Permit restart from failed step: Forbid”
Fixes #CR-26963
## Notes
<!-- Add any notes here -->
## Checklist
* [x] _I have read
[CONTRIBUTING.md](https://github.com/codefresh-io/terraform-provider-codefresh/blob/master/CONTRIBUTING.md)._
* [ ] _I have [allowed changes to my fork to be
made](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork)._
* [x] _I have added tests, assuming new tests are warranted_.
* [x] _I understand that the `/test` comment will be ignored by the CI
trigger [unless it is made by a repo admin or
collaborator](https://codefresh.io/docs/docs/pipelines/triggers/git-triggers/#support-for-building-pull-requests-from-forks)._permit_restart_from_failed_steps = false (#160)1 parent 736e7ad commit 2945191
File tree
4 files changed
+51
-12
lines changed- codefresh
- cfclient
- docs/resources
4 files changed
+51
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
105 | | - | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
109 | 123 | | |
110 | 124 | | |
111 | 125 | | |
| |||
915 | 929 | | |
916 | 930 | | |
917 | 931 | | |
918 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
919 | 943 | | |
920 | 944 | | |
921 | 945 | | |
| |||
1084 | 1108 | | |
1085 | 1109 | | |
1086 | 1110 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1094 | 1117 | | |
1095 | 1118 | | |
1096 | 1119 | | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1097 | 1136 | | |
1098 | 1137 | | |
1099 | 1138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments