Skip to content

Commit 15b6e9e

Browse files
authored
add zipfile to updateFunctionCode (#182)
Issue aws-controllers-k8s/community#2551 Description of changes: - Now includes the zipFile data in the AWS API call when SHA256 changes By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 9a561ad commit 15b6e9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/resource/function/hooks.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ func (rm *resourceManager) updateFunctionCode(
443443
if dspec.Code.S3ObjectVersion != nil {
444444
input.S3ObjectVersion = aws.String(*dspec.Code.S3ObjectVersion)
445445
}
446+
if dspec.Code.ZipFile != nil {
447+
input.ZipFile = dspec.Code.ZipFile
448+
}
446449
} else if delta.DifferentAt("Spec.Code.ImageURI") && dspec.Code.ImageURI != nil {
447450
if dspec.Code.ImageURI != nil {
448451
input.ImageUri = aws.String(*dspec.Code.ImageURI)

0 commit comments

Comments
 (0)