Skip to content

Commit 86b0fbb

Browse files
authored
chore: add references for resource Instance (#262)
Description of changes: references LaunchTemplateID and SubnetID By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 3067f1b commit 86b0fbb

10 files changed

+309
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-04-14T02:36:47Z"
2+
build_date: "2025-04-23T21:54:50Z"
33
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
44
go_version: go1.24.1
55
version: v0.44.0-3-g0909e7f
6-
api_directory_checksum: 5e4731f8ab6fa4bafdb863edf0e678e604697103
6+
api_directory_checksum: 29e783658b9bc19537d366523638f79284000012
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 91537a111710acf9c1f9c7c6c451ca017568ecb7
10+
file_checksum: 631d4b99d0839af4f2c0561d15f7da3c911786d7
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,14 @@ resources:
380380
SecurityGroups:
381381
set:
382382
- from: GroupName
383+
LaunchTemplate.LaunchTemplateID:
384+
references:
385+
resource: LaunchTemplate
386+
path: Status.ID
387+
SubnetID:
388+
references:
389+
resource: Subnet
390+
path: Status.SubnetID
383391
Tags:
384392
from:
385393
operation: CreateTags

apis/v1alpha1/instance.go

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

apis/v1alpha1/types.go

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

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/ec2.services.k8s.aws_instances.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,20 @@ spec:
325325
type: string
326326
launchTemplateName:
327327
type: string
328+
launchTemplateRef:
329+
description: Reference field for LaunchTemplateID
330+
properties:
331+
from:
332+
description: |-
333+
AWSResourceReference provides all the values necessary to reference another
334+
k8s resource for finding the identifier(Id/ARN/Name)
335+
properties:
336+
name:
337+
type: string
338+
namespace:
339+
type: string
340+
type: object
341+
type: object
328342
version:
329343
type: string
330344
type: object
@@ -554,6 +568,23 @@ spec:
554568
If you specify a network interface, you must specify any subnets as part
555569
of the network interface instead of using this parameter.
556570
type: string
571+
subnetRef:
572+
description: "AWSResourceReferenceWrapper provides a wrapper around
573+
*AWSResourceReference\ntype to provide more user friendly syntax
574+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
575+
\ name: my-api"
576+
properties:
577+
from:
578+
description: |-
579+
AWSResourceReference provides all the values necessary to reference another
580+
k8s resource for finding the identifier(Id/ARN/Name)
581+
properties:
582+
name:
583+
type: string
584+
namespace:
585+
type: string
586+
type: object
587+
type: object
557588
tags:
558589
description: |-
559590
The tags. The value parameter is required, but if you don't want the tag

generator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,14 @@ resources:
380380
SecurityGroups:
381381
set:
382382
- from: GroupName
383+
LaunchTemplate.LaunchTemplateID:
384+
references:
385+
resource: LaunchTemplate
386+
path: Status.ID
387+
SubnetID:
388+
references:
389+
resource: Subnet
390+
path: Status.SubnetID
383391
Tags:
384392
from:
385393
operation: CreateTags

helm/crds/ec2.services.k8s.aws_instances.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,20 @@ spec:
325325
type: string
326326
launchTemplateName:
327327
type: string
328+
launchTemplateRef:
329+
description: Reference field for LaunchTemplateID
330+
properties:
331+
from:
332+
description: |-
333+
AWSResourceReference provides all the values necessary to reference another
334+
k8s resource for finding the identifier(Id/ARN/Name)
335+
properties:
336+
name:
337+
type: string
338+
namespace:
339+
type: string
340+
type: object
341+
type: object
328342
version:
329343
type: string
330344
type: object
@@ -554,6 +568,23 @@ spec:
554568
If you specify a network interface, you must specify any subnets as part
555569
of the network interface instead of using this parameter.
556570
type: string
571+
subnetRef:
572+
description: "AWSResourceReferenceWrapper provides a wrapper around
573+
*AWSResourceReference\ntype to provide more user friendly syntax
574+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
575+
\ name: my-api"
576+
properties:
577+
from:
578+
description: |-
579+
AWSResourceReference provides all the values necessary to reference another
580+
k8s resource for finding the identifier(Id/ARN/Name)
581+
properties:
582+
name:
583+
type: string
584+
namespace:
585+
type: string
586+
type: object
587+
type: object
557588
tags:
558589
description: |-
559590
The tags. The value parameter is required, but if you don't want the tag

pkg/resource/instance/delta.go

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

0 commit comments

Comments
 (0)