Commit 7a94ed9
committed
must-gather: Do cleanup on role binding error
When the temporary must-gather role binding fails to be created, no
namespace cleanup function is returned and the namespace is left behind.
This is now fixed by returning the namespace cleanup function on error.1 parent c1fa788 commit 7a94ed9
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | 1015 | | |
1022 | 1016 | | |
1023 | 1017 | | |
| |||
1026 | 1020 | | |
1027 | 1021 | | |
1028 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
0 commit comments