Commit 2d98055
authored
Fix AWS Security Group leakage at creation when an error occures (#174)
fix aws-controllers-k8s/community#1990
Description of changes:
Change the hook `security_group/sdk_create_post_set_output.go.tpl` to always return the resource even if an error occurred. At this point the Security Group exists and we should keep track of it.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 1d88d6e commit 2d98055
File tree
5 files changed
+12
-27
lines changed- apis/v1alpha1
- helm
- crds
- templates
- pkg/resource/security_group
- templates/hooks/security_group
5 files changed
+12
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | | - | |
18 | 15 | | |
19 | | - | |
20 | 16 | | |
21 | | - | |
22 | 17 | | |
23 | | - | |
24 | 18 | | |
25 | | - | |
26 | 19 | | |
27 | | - | |
28 | 20 | | |
29 | | - | |
30 | 21 | | |
31 | | - | |
32 | 22 | | |
33 | | - | |
34 | 23 | | |
35 | | - | |
36 | 24 | | |
37 | | - | |
38 | 25 | | |
39 | | - | |
40 | 26 | | |
41 | | - | |
42 | 27 | | |
43 | 28 | | |
44 | 29 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
0 commit comments