Skip to content

Commit ccb4c56

Browse files
authored
Update to ACK runtime v0.27.1, code-generator v0.27.1 (#83)
### 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.2.2` to `v1.2.3` Once this PR is merged, release `v1.2.3` will be automatically created for `dynamodb-controller` **Please close this PR, if you do not want the new patch release for `dynamodb-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building dynamodb-controller ==== Copying common custom resource definitions into dynamodb Building Kubernetes API objects for dynamodb Generating deepcopy code for dynamodb Generating custom resource definitions for dynamodb Building service controller for dynamodb Generating RBAC manifests for dynamodb Running gofmt against generated code for dynamodb Updating additional GitHub repository maintenance files ==== building dynamodb-controller release artifacts ==== Building release artifacts for dynamodb-v1.2.3 Generating common custom resource definitions Generating custom resource definitions for dynamodb Generating RBAC manifests for dynamodb ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent bec39f9 commit ccb4c56

File tree

10 files changed

+40
-21
lines changed

10 files changed

+40
-21
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2023-09-07T10:29:59Z"
3-
build_hash: 2f2b5e916c59ae2a793a1cc9f9d7333b197c9549
2+
build_date: "2023-09-14T23:48:07Z"
3+
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
44
go_version: go1.21.0
5-
version: v0.27.0
5+
version: v0.27.1
66
api_directory_checksum: 8b7b8578b52d12546a7cbe29ca2ea8689ecbb619
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.45.3

config/controller/deployment.yaml

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

config/controller/kustomization.yaml

Lines changed: 1 addition & 1 deletion
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/dynamodb-controller
9-
newTag: 1.2.2
9+
newTag: 1.2.3

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: dynamodb-chart
33
description: A Helm chart for the ACK service controller for Amazon DynamoDB (DynamoDB)
4-
version: 1.2.2
5-
appVersion: 1.2.2
4+
version: 1.2.3
5+
appVersion: 1.2.3
66
home: https://github.com/aws-controllers-k8s/dynamodb-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/crds/services.k8s.aws_adoptedresources.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ spec:
145145
blockOwnerDeletion:
146146
description: If true, AND if the owner has the "foregroundDeletion"
147147
finalizer, then the owner cannot be deleted from the
148-
key-value store until this reference is removed. Defaults
148+
key-value store until this reference is removed. See
149+
https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
150+
for how the garbage collector interacts with this
151+
field and enforces the foreground deletion. Defaults
149152
to false. To set this field, a user needs "delete"
150153
permission of the owner, otherwise 422 (Unprocessable
151154
Entity) will be returned.

helm/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
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/dynamodb-controller:1.2.2".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/dynamodb-controller:1.2.3".
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

Lines changed: 7 additions & 8 deletions
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

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

helm/values.schema.json

Lines changed: 3 additions & 0 deletions
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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
repository: public.ecr.aws/aws-controllers-k8s/dynamodb-controller
7-
tag: 1.2.2
7+
tag: 1.2.3
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)