Skip to content

Commit f1c8237

Browse files
committed
code-gen 0.44.0 update
1 parent 9d79bc4 commit f1c8237

File tree

13 files changed

+84
-98
lines changed

13 files changed

+84
-98
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-03-14T20:31:38Z"
3-
build_hash: 0ab258c51775fd52af32e649da00d57373b20869
4-
go_version: go1.24.0
5-
version: v0.43.2-6-g0ab258c
2+
build_date: "2025-04-08T20:12:02Z"
3+
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
4+
go_version: go1.24.1
5+
version: v0.44.0-3-g0909e7f
66
api_directory_checksum: ada51eb492c387f770228d8880ba5402e14417d2
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 9257585e2b84c5cd7801c36cec539240d1f98bd0
10+
file_checksum: af3c521029374b2be321d5da57871d5a182f4d0a
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ resources:
207207
is_secret: true
208208
compare:
209209
is_ignored: true
210-
set:
211-
- ignore: all
210+
212211
Events:
213212
is_read_only: true
214213
from:
@@ -223,10 +222,6 @@ resources:
223222
code: "rm.setAnnotationsFields(desired, ko)"
224223
sdk_update_pre_build_request:
225224
template_path: hooks/user/sdk_update_pre_build_request.go.tpl
226-
sdk_update_post_build_request:
227-
template_path: hooks/user/sdk_update_post_build_request.go.tpl
228-
sdk_create_post_build_request:
229-
template_path: hooks/user/sdk_create_post_build_request.go.tpl
230225
renames:
231226
operations:
232227
CreateUser:

cmd/controller/main.go

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

generator.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ resources:
207207
is_secret: true
208208
compare:
209209
is_ignored: true
210-
set:
211-
- ignore: all
210+
212211
Events:
213212
is_read_only: true
214213
from:
@@ -223,10 +222,6 @@ resources:
223222
code: "rm.setAnnotationsFields(desired, ko)"
224223
sdk_update_pre_build_request:
225224
template_path: hooks/user/sdk_update_pre_build_request.go.tpl
226-
sdk_update_post_build_request:
227-
template_path: hooks/user/sdk_update_post_build_request.go.tpl
228-
sdk_create_post_build_request:
229-
template_path: hooks/user/sdk_create_post_build_request.go.tpl
230225
renames:
231226
operations:
232227
CreateUser:

helm/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ spec:
5757
- "$(ACK_RESOURCE_TAGS)"
5858
- --watch-namespace
5959
- "$(ACK_WATCH_NAMESPACE)"
60+
- --watch-selectors
61+
- "$(ACK_WATCH_SELECTORS)"
6062
- --deletion-policy
6163
- "$(DELETION_POLICY)"
6264
{{- if .Values.leaderElection.enabled }}
@@ -103,6 +105,8 @@ spec:
103105
value: {{ .Values.aws.endpoint_url | quote }}
104106
- name: ACK_WATCH_NAMESPACE
105107
value: {{ include "ack-memorydb-controller.watch-namespace" . }}
108+
- name: ACK_WATCH_SELECTORS
109+
value: {{ .Values.watchSelectors }}
106110
- name: DELETION_POLICY
107111
value: {{ .Values.deletionPolicy }}
108112
- name: LEADER_ELECTION_NAMESPACE

helm/values.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@
210210
},
211211
"watchNamespace": {
212212
"type": "string"
213-
},
213+
},
214+
"watchSelectors": {
215+
"type": "string"
216+
},
214217
"resourceTags": {
215218
"type": "array",
216219
"items": {

helm/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ installScope: cluster
110110
# You can set multiple namespaces by providing a comma separated list of namespaces. e.g "namespace1,namespace2"
111111
watchNamespace: ""
112112

113+
# Set the value of labelsSelectors to be used by the controller to filter the resources to watch.
114+
# You can set multiple labelsSelectors by providing a comma separated list of a=b arguments. e.g "label1=value1,label2=value2"
115+
watchSelectors: ""
116+
113117
resourceTags:
114118
# Configures the ACK service controller to always set key/value pairs tags on
115119
# resources that it manages.

pkg/resource/acl/hooks.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ package acl
1515

1616
import (
1717
"context"
18+
1819
"github.com/pkg/errors"
1920

2021
ackcompare "github.com/aws-controllers-k8s/runtime/pkg/compare"

pkg/resource/cluster/hooks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (rm *resourceManager) newMemoryDBClusterUploadPayload(
195195
res.SecurityGroupIds = aws.ToStringSlice(f8)
196196
}
197197
if delta.DifferentAt("Spec.SnapshotRetentionLimit") && desired.ko.Spec.SnapshotRetentionLimit != nil {
198-
res.SnapshotRetentionLimit = svcutil.Int32OrNil(desired.ko.Spec.SnapshotRetentionLimit)
198+
res.SnapshotRetentionLimit = svcutil.ConvertOrNil[int64, int32](desired.ko.Spec.SnapshotRetentionLimit)
199199
}
200200
if delta.DifferentAt("Spec.SnapshotWindow") && desired.ko.Spec.SnapshotWindow != nil {
201201
res.SnapshotWindow = desired.ko.Spec.SnapshotWindow
@@ -260,7 +260,7 @@ func (rm *resourceManager) newMemoryDBClusterUploadPayload(
260260
if !engineUpgradeOrScaling && !reSharding &&
261261
delta.DifferentAt("Spec.NumReplicasPerShard") && desired.ko.Spec.NumReplicasPerShard != nil {
262262
replicaConfig := &svcsdktypes.ReplicaConfigurationRequest{}
263-
replicaConfig.ReplicaCount = *svcutil.Int32OrNil(desired.ko.Spec.NumReplicasPerShard)
263+
replicaConfig.ReplicaCount = aws.ToInt32(svcutil.ConvertOrNil[int64, int32](desired.ko.Spec.NumReplicasPerShard))
264264
res.ReplicaConfiguration = replicaConfig
265265
}
266266

pkg/resource/user/sdk.go

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

0 commit comments

Comments
 (0)