Commit e566808
authored
Improve handling of missing namespace in
Fixes aws-controllers-k8s/community#1699
When reconciling a resource that references a Kubernetes Secret via a
`SecretKeyReference`, if the namespace field is not specified, the code
previously defaulted to the "default" namespace.
This commit changes that behavior to instead use the namespace of the
resource being reconciled, if available in the reconcile context.
Signed-off-by: Amine Hilaly <[email protected]>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.SecretKeyReference (#146)1 parent f67ec48 commit e566808
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
131 | 141 | | |
132 | 142 | | |
133 | 143 | | |
| |||
175 | 185 | | |
176 | 186 | | |
177 | 187 | | |
| 188 | + | |
178 | 189 | | |
179 | 190 | | |
180 | 191 | | |
| |||
0 commit comments