Skip to content

Commit 6a1f71e

Browse files
authored
Update to ACK runtime v0.27.1, code-generator v0.27.1 (#111)
### Update to ACK runtime `v0.27.1`, code-generator `v0.27.1` ---------- * ACK code-generator `v0.27.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.27.1) * ACK runtime `v0.27.1` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.27.1) ---------- NOTE: This PR increments the release version of service controller from `v1.3.3` to `v1.3.4` Once this PR is merged, release `v1.3.4` 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-v1.3.4 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 8315181 commit 6a1f71e

9 files changed

+36
-20
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2023-09-07T01:14:25Z"
3-
build_hash: 2f2b5e916c59ae2a793a1cc9f9d7333b197c9549
2+
build_date: "2023-09-14T23:34:27Z"
3+
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
44
go_version: go1.21.0
5-
version: v0.27.0
5+
version: v0.27.1
66
api_directory_checksum: 8f80588f678cbcff979aa67cf82e547315fdb2b8
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.181

config/controller/deployment.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,6 @@ spec:
8585
terminationGracePeriodSeconds: 10
8686
serviceAccountName: ack-lambda-controller
8787
hostIPC: false
88-
hostNetwork: false
8988
hostPID: false
89+
hostNetwork: false
90+
dnsPolicy: ClusterFirst

config/controller/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/lambda-controller
9-
newTag: 1.3.3
9+
newTag: 1.3.4

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: 1.3.3
5-
appVersion: 1.3.3
4+
version: 1.3.4
5+
appVersion: 1.3.4
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/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:1.3.3".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/lambda-controller:1.3.4".
33

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

helm/templates/deployment.yaml

+7-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
k8s-app: {{ include "app.name" . }}
1212
helm.sh/chart: {{ include "chart.name-version" . }}
1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.deployment.replicas }}
1515
selector:
1616
matchLabels:
1717
app.kubernetes.io/name: {{ include "app.name" . }}
@@ -48,8 +48,9 @@ spec:
4848
- "$(AWS_REGION)"
4949
- --aws-endpoint-url
5050
- "$(AWS_ENDPOINT_URL)"
51+
{{- if .Values.log.enable_development_logging }}
5152
- --enable-development-logging
52-
- "$(ENABLE_DEVELOPMENT_LOGGING)"
53+
{{- end }}
5354
- --log-level
5455
- "$(ACK_LOG_LEVEL)"
5556
- --resource-tags
@@ -58,10 +59,11 @@ spec:
5859
- "$(ACK_WATCH_NAMESPACE)"
5960
- --deletion-policy
6061
- "$(DELETION_POLICY)"
62+
{{- if .Values.leaderElection.enabled }}
6163
- --enable-leader-election
62-
- "$(ENABLE_LEADER_ELECTION)"
6364
- --leader-election-namespace
6465
- "$(LEADER_ELECTION_NAMESPACE)"
66+
{{- end }}
6567
{{- if gt .Values.reconcile.defaultResyncPeriod 0.0 }}
6668
- --reconcile-default-resync-seconds
6769
- "$(RECONCILE_DEFAULT_RESYNC_SECONDS)"
@@ -91,12 +93,8 @@ spec:
9193
value: {{ include "watch-namespace" . }}
9294
- name: DELETION_POLICY
9395
value: {{ .Values.deletionPolicy }}
94-
- name: ENABLED_LEADER_ELECTION
95-
value: {{ .Values.leaderElection.enabled | quote }}
9696
- name: LEADER_ELECTION_NAMESPACE
9797
value: {{ .Values.leaderElection.namespace | quote }}
98-
- name: ACK_ENABLE_DEVELOPMENT_LOGGING
99-
value: {{ .Values.log.enable_development_logging | quote }}
10098
- name: ACK_LOG_LEVEL
10199
value: {{ .Values.log.level | quote }}
102100
- name: ACK_RESOURCE_TAGS
@@ -149,8 +147,9 @@ spec:
149147
priorityClassName: {{ .Values.deployment.priorityClassName }}
150148
{{ end -}}
151149
hostIPC: false
152-
hostNetwork: false
153150
hostPID: false
151+
hostNetwork: {{ .Values.deployment.hostNetwork }}
152+
dnsPolicy: {{ .Values.deployment.dnsPolicy }}
154153
volumes:
155154
{{- if .Values.aws.credentials.secretName -}}
156155
- name: {{ .Values.aws.credentials.secretName }}

helm/templates/leader-election-role-binding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ roleRef:
1414
name: lambda-leader-election-role
1515
subjects:
1616
- kind: ServiceAccount
17-
name: ack-lambda-controller
17+
name: {{ include "service-account.name" . }}
1818
namespace: {{ .Release.Namespace }}{{- end }}

helm/values.schema.json

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"minimum": 1,
4848
"maximum": 65535
4949
},
50+
"replicas": {
51+
"type": "integer"
52+
},
5053
"nodeSelector": {
5154
"type": "object"
5255
},

helm/values.yaml

+16-3
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: 1.3.3
7+
tag: 1.3.4
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

@@ -15,6 +15,10 @@ deployment:
1515
annotations: {}
1616
labels: {}
1717
containerPort: 8080
18+
# Number of Deployment replicas
19+
# This determines how many instances of the controller will be running. It's recommended
20+
# to enable leader election if you need to increase the number of replicas > 1
21+
replicas: 1
1822
# Which nodeSelector to set?
1923
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
2024
nodeSelector:
@@ -28,6 +32,15 @@ deployment:
2832
# Which priorityClassName to set?
2933
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
3034
priorityClassName: ""
35+
# Specifies the hostname of the Pod.
36+
# If not specified, the pod's hostname will be set to a system-defined value.
37+
hostNetwork: false
38+
# Set DNS policy for the pod.
39+
# Defaults to "ClusterFirst".
40+
# Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
41+
# To have DNS options set along with hostNetwork, you have to specify DNS policy
42+
# explicitly to 'ClusterFirstWithHostNet'.
43+
dnsPolicy: ClusterFirst
3144
extraVolumes: []
3245
extraVolumeMounts: []
3346

@@ -52,7 +65,7 @@ deployment:
5265
# If "installScope: cluster" then these labels will be applied to ClusterRole
5366
role:
5467
labels: {}
55-
68+
5669
metrics:
5770
service:
5871
# Set to true to automatically create a Kubernetes Service resource for the
@@ -80,7 +93,7 @@ aws:
8093
# Secret stringData key that contains the credentials
8194
secretKey: "credentials"
8295
# Profile used for AWS credentials
83-
profile: "default"
96+
profile: "default"
8497

8598
# log level for the controller
8699
log:

0 commit comments

Comments
 (0)