Skip to content

Commit 25d703a

Browse files
authored
Update to ACK runtime v0.27.1, code-generator v0.27.0 (#155)
### Update to ACK runtime `v0.27.1`, code-generator `v0.27.0` ---------- * ACK code-generator `v0.27.0` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.27.0) * 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.1.5` to `v1.1.6` Once this PR is merged, release `v1.1.6` will be automatically created for `rds-controller` **Please close this PR, if you do not want the new patch release for `rds-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building rds-controller ==== Copying common custom resource definitions into rds Building Kubernetes API objects for rds Generating deepcopy code for rds Generating custom resource definitions for rds Building service controller for rds Generating RBAC manifests for rds Running gofmt against generated code for rds Updating additional GitHub repository maintenance files ==== building rds-controller release artifacts ==== Building release artifacts for rds-v1.1.6 Generating common custom resource definitions Generating custom resource definitions for rds Generating RBAC manifests for rds ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2272700 commit 25d703a

25 files changed

+227
-73
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ack_generate_info:
2-
build_date: "2023-05-15T22:54:34Z"
3-
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
4-
go_version: go1.19
5-
version: v0.26.1
6-
api_directory_checksum: b3f33aebf366349bde7945f7b627ae788a18c0d5
2+
build_date: "2023-09-07T01:00:56Z"
3+
build_hash: 2f2b5e916c59ae2a793a1cc9f9d7333b197c9549
4+
go_version: go1.21.0
5+
version: v0.27.0
6+
api_directory_checksum: ec327bd746176accff503d6ca1306e08a55ac61b
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.232
99
generator_config_info:

apis/v1alpha1/db_cluster_parameter_group.go

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/db_parameter_group.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/controller/deployment.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ spec:
2929
- "$(AWS_REGION)"
3030
- --aws-endpoint-url
3131
- "$(AWS_ENDPOINT_URL)"
32-
- --enable-development-logging
33-
- "$(ACK_ENABLE_DEVELOPMENT_LOGGING)"
32+
- --enable-development-logging=$(ACK_ENABLE_DEVELOPMENT_LOGGING)
3433
- --log-level
3534
- "$(ACK_LOG_LEVEL)"
3635
- --resource-tags
3736
- "$(ACK_RESOURCE_TAGS)"
3837
- --watch-namespace
3938
- "$(ACK_WATCH_NAMESPACE)"
39+
- --enable-leader-election=$(ENABLE_LEADER_ELECTION)
40+
- --leader-election-namespace
41+
- "$(LEADER_ELECTION_NAMESPACE)"
4042
image: controller:latest
4143
name: controller
4244
ports:
@@ -66,6 +68,10 @@ spec:
6668
value: "info"
6769
- name: ACK_RESOURCE_TAGS
6870
value: "services.k8s.aws/controller-version=%CONTROLLER_SERVICE%-%CONTROLLER_VERSION%,services.k8s.aws/namespace=%K8S_NAMESPACE%"
71+
- name: ENABLE_LEADER_ELECTION
72+
value: "false"
73+
- name: LEADER_ELECTION_NAMESPACE
74+
value: "ack-system"
6975
securityContext:
7076
allowPrivilegeEscalation: false
7177
privileged: false

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/rds-controller
9-
newTag: 1.1.5
9+
newTag: 1.1.6

config/crd/bases/rds.services.k8s.aws_dbclusterparametergroups.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ spec:
7070
parameterOverrides:
7171
additionalProperties:
7272
type: string
73-
description: These are ONLY user-defined parameter overrides for the
74-
DB cluster parameter group. This does not contain default or system
75-
parameters.
7673
type: object
7774
parameters:
7875
description: "A list of parameters in the DB cluster parameter group
@@ -84,8 +81,7 @@ spec:
8481
clusters associated with the parameter group. When the application
8582
method is pending-reboot, changes to dynamic and static parameters
8683
are applied after a reboot without failover to the DB clusters associated
87-
with the parameter group. \n DEPRECATED - do not use. Prefer ParameterOverrides
88-
instead."
84+
with the parameter group."
8985
items:
9086
description: "This data type is used as a request parameter in the
9187
ModifyDBParameterGroup and ResetDBParameterGroup actions. \n This

config/crd/bases/rds.services.k8s.aws_dbparametergroups.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ spec:
6868
parameterOverrides:
6969
additionalProperties:
7070
type: string
71-
description: These are ONLY user-defined parameter overrides for the
72-
DB parameter group. This does not contain default or system parameters.
7371
type: object
7472
tags:
7573
description: Tags to assign to the DB parameter group.

config/rbac/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ resources:
44
- role-reader.yaml
55
- role-writer.yaml
66
- service-account.yaml
7-
7+
- leader-election-role.yaml
8+
- leader-election-role-binding.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: RoleBinding
4+
metadata:
5+
namespace: ack-system
6+
name: rds-leader-election-rolebinding
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: Role
10+
name: rds-leader-election-role
11+
subjects:
12+
- kind: ServiceAccount
13+
name: ack-rds-controller
14+
namespace: ack-system

0 commit comments

Comments
 (0)