Commit b08ec5a
committed
feat(tfdatasource): add ConnectionDetailsFn support
Add an optional ConnectionDetailsFn field to the tfdatasource.Spec that
allows observed resources to publish connection details to a Secret via
writeConnectionSecretToRef. The function is called in both Observe (when
up-to-date) and Update (after a successful read).
Extend the generate-observed emitter to automatically generate a
ConnectionDetailsFn for every observed resource that has scalar
atProvider fields. Each field is exported using its Terraform attribute
name as the secret key.1 parent 5a00f6c commit b08ec5a
2 files changed
Lines changed: 108 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
138 | 149 | | |
139 | | - | |
140 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
| |||
151 | 163 | | |
152 | 164 | | |
153 | 165 | | |
154 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
155 | 172 | | |
156 | 173 | | |
157 | 174 | | |
| |||
0 commit comments