Skip to content

Commit b91a5e7

Browse files
authored
fix: ensure function syncs when inactive (#167)
Issue [#2446](aws-controllers-k8s/community#2446) Description of changes: Currently the controller only marks a function resource as synced only when it is active. We want to ensure we sync if it is inactive as well. In Lambda function, inactive simply indicates that a function has been idle for a long time, and we do not want the controller to keep requeueing indefinitely By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 76c5fe0 commit b91a5e7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-04-18T02:07:04Z"
2+
build_date: "2025-04-29T21:53:05Z"
33
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
44
go_version: go1.24.1
55
version: v0.44.0-3-g0909e7f
66
api_directory_checksum: b37edb8bba9d3847d4bdf1e842b7a597821c8c37
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 3dbfbaabdb68f05226834184bacb6be1028ba38d
10+
file_checksum: 5d39bbf411d4c83ce03ff295703199b5c5a215ac
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ resources:
5959
synced:
6060
when:
6161
- path: Status.State
62-
in: [ "Active" ]
62+
in: [ "Active", "Inactive" ]
6363
fields:
6464
Code.SHA256:
6565
type: string

generator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ resources:
5959
synced:
6060
when:
6161
- path: Status.State
62-
in: [ "Active" ]
62+
in: [ "Active", "Inactive" ]
6363
fields:
6464
Code.SHA256:
6565
type: string

pkg/resource/function/manager.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)