Skip to content

Commit 92a9e8b

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

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:46:32Z"
3-
build_hash: 2f2b5e916c59ae2a793a1cc9f9d7333b197c9549
2+
build_date: "2023-09-14T23:39:01Z"
3+
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
44
go_version: go1.21.0
5-
version: v0.27.0
5+
version: v0.27.1
66
api_directory_checksum: 2f681761d3417cd3c65709b6dc71d9853bdf0481
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93

‎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-route53-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/route53-controller
9-
newTag: 0.0.7
9+
newTag: 0.0.8

‎helm/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: route53-chart
33
description: A Helm chart for the ACK service controller for Amazon Route53 (Route53)
4-
version: 0.0.7
5-
appVersion: 0.0.7
4+
version: 0.0.8
5+
appVersion: 0.0.8
66
home: https://github.com/aws-controllers-k8s/route53-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/route53-controller:0.0.7".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/route53-controller:0.0.8".
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: route53-leader-election-role
1515
subjects:
1616
- kind: ServiceAccount
17-
name: ack-route53-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/route53-controller
7-
tag: 0.0.7
7+
tag: 0.0.8
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)
Please sign in to comment.