Commit e917f81
authored
Keep the desired
Fixes aws-controllers-k8s/community#1402
The AWS Lambda API doesn't return the original submitted `s3Bucket`,
`s3Key`, and `s3ObjectVersion` when a function is successfully created.
Instead, it returns different values (In `Getfunction` call) in a
different response field (`Code.Location`). This is causing the
generated code in ACK to set the `spec.Code.s3*` fields to nil values.
To keep the experience in ACK lambda-controller consistent in the
Kubernetes-land, we must keep the original submitted `code.S3*` fields
part of the function's spec.
This patch removes the part that is setting the `spec.Code.s3*` to nil
and allows the controllers to keep the original values part of the spec.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Signed-off-by: Amine Hilaly <hilalyamine@gmail.com>code.s3* fields part of the spec (#43)1 parent e6a6840 commit e917f81
File tree
6 files changed
+31
-11
lines changed- apis/v1alpha1
- pkg/resource/function
- templates/hooks/function
- test/e2e/tests
6 files changed
+31
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
0 commit comments