Commit cf95d82
authored
Initialise
Fixes aws-controllers-k8s/community#1480
The runtime panics observed in issue 1480 were mainly caused by the
`sdk_read_one` hook we use for `Function` resource. The hook didn't
correctly initialise `spec.Code`.
This patch fixes the initialization to avoid nil pointer panics when
adopting function resources
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.spec.Code before setting the imageURI (#55)1 parent 753891a commit cf95d82
File tree
2 files changed
+13
-1
lines changed- pkg/resource/function
- templates/hooks/function
2 files changed
+13
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments