Commit a8283f5
authored
Add sdk addon hook (#94)
Issue #, if available:
Ability for service controllers to add code (additional functions, variables etc as needed) to sdk.go file using hooks as extension mechanism.
Description of changes:
This PR adds `sdk_addon` hook to `sdk.go.tpl`. Using this hook, service controllers can append code to a custom resource's `sdk.go` file. It will help in placing reusable code/functions which are generated dynamically using hook templates.
Following PR contains changes showcasing how this facility helps service controllers auto generate reusable code: aws-controllers-k8s/elasticache-controller#36
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent c77aa9c commit a8283f5
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
0 commit comments