You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Updating lambda function runtime configuration through a custom controller that reconciles Functions k8s resource using sigs.k8s.io/controller-runtime/pkg/controller/controllerutilCreateOrUpdate method fails to persist updated runtime configuration on AWS.
I am able to see from logs the custom controller reconciles updated runtime as shown below:
AWS ack lambda picks up the diff for the updated runtime but does not persist on AWS:
{"level":"info","ts":"2025-01-08T11:07:57.414Z","logger":"ackrt","msg":"desired resource state has changed","kind":"Function","namespace":"custom-resource-namespace","name":"log-transformer-lambda","account":"12345678","role":"arn:aws:iam::12345678:role/ack-role","region":"us-west-2","is_adopted":false,"generation":75,"diff":[{"Path":{"Parts":["Spec","Architectures"]},"A":null,"B":["x86_64"]},{"Path":{"Parts":["Spec","Description"]},"A":null,"B":""},{"Path":{"Parts":["Spec","PackageType"]},"A":null,"B":"Zip"},{"Path":{"Parts":["Spec","Runtime"]},"A":"nodejs22.x","B":"nodejs16.x"},{"Path":{"Parts":["Spec","SnapStart"]},"A":null,"B":{"applyOn":"None"}},{"Path":{"Parts":["Spec","TracingConfig"]},"A":null,"B":{"mode":"PassThrough"}}]}
{"level":"info","ts":"2025-01-08T11:07:58.652Z","logger":"ackrt","msg":"updated resource","kind":"Function","namespace":"custom-resource-namespace","name":"log-transformer-lambda","account":"12345678","role":"arn:aws:iam::12345678:role/ack-role","region":"us-west-2","is_adopted":false,"generation":75}
Function resource still shows old runtime after reconciliation:
Steps to reproduce
Create a custom controller that creates and reconciles Function k8s resource with lambda runtime nodejs v16 (or any runtime).
Update custom controller with a different runtime version using controller/controllerutil CreateOrUpdate.
Expected outcome
It is expected that both Functions k8s resource and specified lambda on AWS get updated with new runtime configuration.
Environment
Kubernetes version: v1.30.3
Using EKS (yes/no), if so version? no
AWS service targeted (S3, RDS, etc.): Lambda
The text was updated successfully, but these errors were encountered:
Describe the bug
Updating lambda function runtime configuration through a custom controller that reconciles
Functions
k8s resource using sigs.k8s.io/controller-runtime/pkg/controller/controllerutilCreateOrUpdate
method fails to persist updated runtime configuration on AWS.I am able to see from logs the custom controller reconciles updated runtime as shown below:
AWS ack lambda picks up the diff for the updated runtime but does not persist on AWS:
Function resource still shows old runtime after reconciliation:
Steps to reproduce
CreateOrUpdate
.Expected outcome
It is expected that both Functions k8s resource and specified lambda on AWS get updated with new runtime configuration.
Environment
The text was updated successfully, but these errors were encountered: