Skip to content

Commit 9bee77c

Browse files
author
Nicholas Thomson
committed
Add additional keys to adopted resource spec
1 parent 1a47363 commit 9bee77c

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

apis/core/v1alpha1/identifiers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ type AWSIdentifiers struct {
2121
// NameOrId is a user-supplied string identifier for the resource. It may
2222
// or may not be globally unique, depending on the type of resource.
2323
NameOrID *string `json:"nameOrID,omitempty"`
24+
// AdditionalKeys represents any additional arbitrary identifiers used when
25+
// describing the target resource.
26+
AdditionalKeys map[string]*string `json:"additionalKeys,omitempty"`
2427
}
2528

2629
// TargetKubernetesResource provides all the values necessary to identify a given ACK type

apis/core/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/services.k8s.aws_adoptedresources.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ spec:
4040
description: AWSIdentifiers provide all unique ways to reference an
4141
AWS resource.
4242
properties:
43+
additionalKeys:
44+
additionalProperties:
45+
type: string
46+
description: AdditionalKeys represents any additional arbitrary
47+
identifiers used when describing the target resource.
48+
type: object
4349
arn:
4450
description: ARN is the AWS Resource Name for the resource. It
4551
is a globally unique identifier.

0 commit comments

Comments
 (0)