Skip to content

Commit 83df4af

Browse files
authored
Update ACK runtime to v0.16.4 (#22)
### Update ACK runtime to `v0.16.4` ---------- * ACK code-generator `v0.16.4` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.16.4) * ACK runtime `v0.16.4` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.16.4) ---------- NOTE: This PR increments the release version of service controller from `v0.0.7` to `v0.0.8` Once this PR is merged, release `v0.0.8` will be automatically created for `lambda-controller` **Please close this PR, if you do not want the new patch release for `lambda-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building lambda-controller ==== Copying common custom resource definitions into lambda Building Kubernetes API objects for lambda Generating deepcopy code for lambda Generating custom resource definitions for lambda Building service controller for lambda Generating RBAC manifests for lambda Running gofmt against generated code for lambda Updating additional GitHub repository maintenance files ==== building lambda-controller release artifacts ==== Building release artifacts for lambda-v0.0.8 Generating common custom resource definitions Generating custom resource definitions for lambda Generating RBAC manifests for lambda ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent c0f8652 commit 83df4af

26 files changed

+344
-180
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ack_generate_info:
2-
build_date: "2022-01-24T20:54:09Z"
3-
build_hash: cccec82a27ddd880095383360df1fdc8f530842f
2+
build_date: "2022-02-02T21:52:15Z"
3+
build_hash: 8f02d7700eaa65a51e99c37d296056def0b70647
44
go_version: go1.17.5
5-
version: v0.16.3
6-
api_directory_checksum: 32108bf51ff23a696a702601b9f30c796b0d42e1
5+
version: v0.16.4
6+
api_directory_checksum: 9701e37aeeaeb7393f499d354f8d6db9130576bb
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.40.28
8+
aws_sdk_go_version: v1.42.0
99
generator_config_info:
1010
file_checksum: f04b298afa1fd7fd3980226d52412de9ca1523d4
1111
original_file_name: generator.yaml

apis/v1alpha1/enums.go

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

apis/v1alpha1/event_source_mapping.go

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

apis/v1alpha1/function.go

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

apis/v1alpha1/types.go

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

apis/v1alpha1/zz_generated.deepcopy.go

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

config/controller/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ spec:
6161
drop:
6262
- ALL
6363
terminationGracePeriodSeconds: 10
64+
serviceAccountName: ack-lambda-controller
6465
hostIPC: false
6566
hostNetwork: false
6667
hostPID: false

config/controller/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
55
kind: Kustomization
66
images:
77
- name: controller
8-
newName: ack-lambda-controller
9-
newTag: latest
8+
newName: public.ecr.aws/aws-controllers-k8s/lambda-controller
9+
newTag: v0.0.8

config/crd/bases/lambda.services.k8s.aws_eventsourcemappings.yaml

+15-9
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ spec:
3838
description: EventSourceMappingSpec defines the desired state of EventSourceMapping.
3939
properties:
4040
batchSize:
41-
description: "The maximum number of items to retrieve in a single
42-
batch. \n * Amazon Kinesis - Default 100. Max 10,000. \n *
43-
Amazon DynamoDB Streams - Default 100. Max 1,000. \n * Amazon
44-
Simple Queue Service - Default 10. For standard queues the max is
45-
10,000. For FIFO queues the max is 10. \n * Amazon Managed Streaming
41+
description: "The maximum number of records in each batch that Lambda
42+
pulls from your stream or queue and sends to your function. Lambda
43+
passes all of the records in the batch to the function in a single
44+
call, up to the payload limit for synchronous invocation (6 MB).
45+
\n * Amazon Kinesis - Default 100. Max 10,000. \n * Amazon
46+
DynamoDB Streams - Default 100. Max 1,000. \n * Amazon Simple
47+
Queue Service - Default 10. For standard queues the max is 10,000.
48+
For FIFO queues the max is 10. \n * Amazon Managed Streaming
4649
for Apache Kafka - Default 100. Max 10,000. \n * Self-Managed
4750
Apache Kafka - Default 100. Max 10,000."
4851
format: int64
@@ -69,8 +72,8 @@ spec:
6972
type: object
7073
type: object
7174
enabled:
72-
description: If true, the event source mapping is active. Set to false
73-
to pause polling and invocation.
75+
description: "When true, the event source mapping is active. When
76+
false, Lambda pauses polling and invocation. \n Default: True"
7477
type: boolean
7578
eventSourceARN:
7679
description: "The Amazon Resource Name (ARN) of the event source.
@@ -94,8 +97,11 @@ spec:
9497
type: string
9598
type: array
9699
maximumBatchingWindowInSeconds:
97-
description: (Streams and SQS standard queues) The maximum amount
98-
of time to gather records before invoking the function, in seconds.
100+
description: "(Streams and Amazon SQS standard queues) The maximum
101+
amount of time, in seconds, that Lambda spends gathering records
102+
before invoking the function. \n Default: 0 \n Related setting:
103+
When you set BatchSize to a value greater than 10, you must set
104+
MaximumBatchingWindowInSeconds to at least 1."
99105
format: int64
100106
type: integer
101107
maximumRecordAgeInSeconds:

config/crd/bases/lambda.services.k8s.aws_functions.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ spec:
3636
spec:
3737
description: FunctionSpec defines the desired state of Function.
3838
properties:
39+
architectures:
40+
description: The instruction set architecture that the function supports.
41+
Enter a string array with one of the valid values. The default value
42+
is x86_64.
43+
items:
44+
type: string
45+
type: array
3946
code:
4047
description: The code for the function.
4148
properties:

config/rbac/cluster-role-binding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ roleRef:
88
name: ack-lambda-controller
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
11+
name: ack-lambda-controller
1212
namespace: ack-system

config/rbac/kustomization.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ resources:
33
- cluster-role-controller.yaml
44
- role-reader.yaml
55
- role-writer.yaml
6+
- service-account.yaml
7+

config/rbac/service-account.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: ack-lambda-controller
6+
namespace: ack-system

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/aws-controllers-k8s/lambda-controller
33
go 1.17
44

55
require (
6-
github.com/aws-controllers-k8s/runtime v0.16.3
7-
github.com/aws/aws-sdk-go v1.40.28
6+
github.com/aws-controllers-k8s/runtime v0.16.4
7+
github.com/aws/aws-sdk-go v1.42.0
88
github.com/go-logr/logr v1.2.0
99
github.com/spf13/pflag v1.0.5
1010
k8s.io/api v0.23.0

go.sum

+4-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hC
6464
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
6565
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
6666
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
67-
github.com/aws-controllers-k8s/runtime v0.16.3 h1:AaufF1pkfX3M3G4WK6m9OTcI6yEzKnFsffpuWTIy5wY=
68-
github.com/aws-controllers-k8s/runtime v0.16.3/go.mod h1:DHwPczqO/nK4L1kqWlmng5GuIQuX5MSSWbTQMuL4LnM=
69-
github.com/aws/aws-sdk-go v1.37.10/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
70-
github.com/aws/aws-sdk-go v1.40.28 h1:IWzkX36BHx9R4jYd5y8NAudk8sxUeJHHohZgPI9kq/A=
71-
github.com/aws/aws-sdk-go v1.40.28/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
67+
github.com/aws-controllers-k8s/runtime v0.16.4 h1:gV8jT09PwaCQWaC46NEnaEggqPm8Lxke6G0f7SxVsys=
68+
github.com/aws-controllers-k8s/runtime v0.16.4/go.mod h1:9c2CL3w0BlVkse+foHlP1SkJRqYWLs9H+4X/z+2kE3w=
69+
github.com/aws/aws-sdk-go v1.42.0 h1:BMZws0t8NAhHFsfnT3B40IwD13jVDG5KerlRksctVIw=
70+
github.com/aws/aws-sdk-go v1.42.0/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
7271
github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
7372
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
7473
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=

helm/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: lambda-chart
33
description: A Helm chart for the ACK service controller for AWS Lambda (lambda)
4-
version: v0.0.7
5-
appVersion: v0.0.7
4+
version: v0.0.8
5+
appVersion: v0.0.8
66
home: https://github.com/aws-controllers-k8s/lambda-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/crds/lambda.services.k8s.aws_eventsourcemappings.yaml

+15-9
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ spec:
3838
description: EventSourceMappingSpec defines the desired state of EventSourceMapping.
3939
properties:
4040
batchSize:
41-
description: "The maximum number of items to retrieve in a single
42-
batch. \n * Amazon Kinesis - Default 100. Max 10,000. \n *
43-
Amazon DynamoDB Streams - Default 100. Max 1,000. \n * Amazon
44-
Simple Queue Service - Default 10. For standard queues the max is
45-
10,000. For FIFO queues the max is 10. \n * Amazon Managed Streaming
41+
description: "The maximum number of records in each batch that Lambda
42+
pulls from your stream or queue and sends to your function. Lambda
43+
passes all of the records in the batch to the function in a single
44+
call, up to the payload limit for synchronous invocation (6 MB).
45+
\n * Amazon Kinesis - Default 100. Max 10,000. \n * Amazon
46+
DynamoDB Streams - Default 100. Max 1,000. \n * Amazon Simple
47+
Queue Service - Default 10. For standard queues the max is 10,000.
48+
For FIFO queues the max is 10. \n * Amazon Managed Streaming
4649
for Apache Kafka - Default 100. Max 10,000. \n * Self-Managed
4750
Apache Kafka - Default 100. Max 10,000."
4851
format: int64
@@ -69,8 +72,8 @@ spec:
6972
type: object
7073
type: object
7174
enabled:
72-
description: If true, the event source mapping is active. Set to false
73-
to pause polling and invocation.
75+
description: "When true, the event source mapping is active. When
76+
false, Lambda pauses polling and invocation. \n Default: True"
7477
type: boolean
7578
eventSourceARN:
7679
description: "The Amazon Resource Name (ARN) of the event source.
@@ -94,8 +97,11 @@ spec:
9497
type: string
9598
type: array
9699
maximumBatchingWindowInSeconds:
97-
description: (Streams and SQS standard queues) The maximum amount
98-
of time to gather records before invoking the function, in seconds.
100+
description: "(Streams and Amazon SQS standard queues) The maximum
101+
amount of time, in seconds, that Lambda spends gathering records
102+
before invoking the function. \n Default: 0 \n Related setting:
103+
When you set BatchSize to a value greater than 10, you must set
104+
MaximumBatchingWindowInSeconds to at least 1."
99105
format: int64
100106
type: integer
101107
maximumRecordAgeInSeconds:

helm/crds/lambda.services.k8s.aws_functions.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ spec:
3636
spec:
3737
description: FunctionSpec defines the desired state of Function.
3838
properties:
39+
architectures:
40+
description: The instruction set architecture that the function supports.
41+
Enter a string array with one of the valid values. The default value
42+
is x86_64.
43+
items:
44+
type: string
45+
type: array
3946
code:
4047
description: The code for the function.
4148
properties:

helm/templates/NOTES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ .Chart.Name }} has been installed.
2-
This chart deploys "public.ecr.aws/aws-controllers-k8s/lambda-controller:v0.0.7".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/lambda-controller:v0.0.8".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"

helm/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
repository: public.ecr.aws/aws-controllers-k8s/lambda-controller
7-
tag: v0.0.7
7+
tag: v0.0.8
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

pkg/resource/alias/manager.go

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

0 commit comments

Comments
 (0)