Skip to content

Commit 67bea0e

Browse files
committed
Add kms referencing
1 parent 70f8dda commit 67bea0e

13 files changed

+187
-5
lines changed

Diff for: apis/v1alpha1/ack-generate-metadata.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-02-19T22:50:30Z"
2+
build_date: "2025-02-20T01:13:10Z"
33
build_hash: 8b426c490ff1984d8ce5577e11d6dabe1b6373b8
44
go_version: go1.24.0
55
version: v0.43.1
6-
api_directory_checksum: d541a9148752f2234a9c2393a16d8af0f86101a9
6+
api_directory_checksum: e279917a9e4b26dd75502a4ef7fa8823f9844c83
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 58cff89d7bab65d2de40974e88c022fe77281cac
10+
file_checksum: f6d68afa724d9e1d8fb6ce58da11ed0e5635f9d5
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

Diff for: apis/v1alpha1/generator.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ resources:
6060
SSESpecification:
6161
compare:
6262
is_ignored: true
63+
SSESpecification.KMSMasterKeyID:
64+
references:
65+
service_name: kms
66+
resource: Key
67+
path: Status.ACKResourceMetadata.ARN
6368
exceptions:
6469
errors:
6570
404:

Diff for: apis/v1alpha1/types.go

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/zz_generated.deepcopy.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: cmd/controller/main.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/crd/bases/dynamodb.services.k8s.aws_tables.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ spec:
228228
type: boolean
229229
kmsMasterKeyID:
230230
type: string
231+
kmsMasterKeyRef:
232+
description: Reference field for KMSMasterKeyID
233+
properties:
234+
from:
235+
description: |-
236+
AWSResourceReference provides all the values necessary to reference another
237+
k8s resource for finding the identifier(Id/ARN/Name)
238+
properties:
239+
name:
240+
type: string
241+
namespace:
242+
type: string
243+
type: object
244+
type: object
231245
sseType:
232246
type: string
233247
type: object

Diff for: config/rbac/cluster-role-controller.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ rules:
4646
- get
4747
- patch
4848
- update
49+
- apiGroups:
50+
- kms.services.k8s.aws
51+
resources:
52+
- keys
53+
- keys/status
54+
verbs:
55+
- get
56+
- list
4957
- apiGroups:
5058
- services.k8s.aws
5159
resources:

Diff for: generator.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ resources:
6060
SSESpecification:
6161
compare:
6262
is_ignored: true
63+
SSESpecification.KMSMasterKeyID:
64+
references:
65+
service_name: kms
66+
resource: Key
67+
path: Status.ACKResourceMetadata.ARN
6368
exceptions:
6469
errors:
6570
404:

Diff for: go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.22.0
55
toolchain go1.22.5
66

77
require (
8+
github.com/aws-controllers-k8s/kms-controller v1.0.21
89
github.com/aws-controllers-k8s/runtime v0.43.0
910
github.com/aws/aws-sdk-go v1.49.0
1011
github.com/aws/aws-sdk-go-v2 v1.36.0

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/aws-controllers-k8s/kms-controller v1.0.21 h1:ar8gCdl/l7qbXzr48YN5tNq4vJbB5UqnRH7pAIkP3tI=
2+
github.com/aws-controllers-k8s/kms-controller v1.0.21/go.mod h1:tHFXV8lkrzautPPvQtPUJABPlJ9MXPRj8GB1UublGHQ=
13
github.com/aws-controllers-k8s/runtime v0.43.0 h1:mCtMHO0rew84VbqotquvBirnKysbao+y2G3QI8bKZxM=
24
github.com/aws-controllers-k8s/runtime v0.43.0/go.mod h1:Oy0JKvDxZMZ+SVupm4NZVqP00KLIIAMfk93KnOwlt5c=
35
github.com/aws/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY=

Diff for: helm/crds/dynamodb.services.k8s.aws_tables.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ spec:
228228
type: boolean
229229
kmsMasterKeyID:
230230
type: string
231+
kmsMasterKeyRef:
232+
description: Reference field for KMSMasterKeyID
233+
properties:
234+
from:
235+
description: |-
236+
AWSResourceReference provides all the values necessary to reference another
237+
k8s resource for finding the identifier(Id/ARN/Name)
238+
properties:
239+
name:
240+
type: string
241+
namespace:
242+
type: string
243+
type: object
244+
type: object
231245
sseType:
232246
type: string
233247
type: object

Diff for: helm/templates/_helpers.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ rules:
9393
- get
9494
- patch
9595
- update
96+
- apiGroups:
97+
- kms.services.k8s.aws
98+
resources:
99+
- keys
100+
- keys/status
101+
verbs:
102+
- get
103+
- list
96104
- apiGroups:
97105
- services.k8s.aws
98106
resources:

Diff for: pkg/resource/table/references.go

+117-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)