Skip to content

Commit d95c9a7

Browse files
committed
switch to full Amazon name
1 parent 4bc8e9d commit d95c9a7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/ctrlc/root/sync/aws/eks/eks.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func processCluster(_ context.Context, cluster *types.Cluster, region string, ac
208208

209209
return api.AgentResource{
210210
Version: "ctrlplane.dev/kubernetes/cluster/v1",
211-
Kind: "AWSElasticKubernetesService",
211+
Kind: "AmazonElasticKubernetesService",
212212
Name: *cluster.Name,
213213
Identifier: *cluster.Arn,
214214
Config: map[string]any{
@@ -220,7 +220,7 @@ func processCluster(_ context.Context, cluster *types.Cluster, region string, ac
220220
},
221221

222222
// Provider-specific implementation details
223-
"awsElasticKubernetesService": map[string]any{
223+
"amazonElasticKubernetesService": map[string]any{
224224
"accountId": accountID,
225225
"arn": *cluster.Arn,
226226
"region": region,
@@ -311,10 +311,10 @@ var relationshipRules = []api.CreateResourceRelationshipRule{
311311
DependencyType: api.ProvisionedIn,
312312

313313
SourceVersion: "ctrlplane.dev/kubernetes/cluster/v1",
314-
SourceKind: "AWSElasticKubernetesService",
314+
SourceKind: "AmazonElasticKubernetesService",
315315

316316
TargetVersion: "ctrlplane.dev/network/v1",
317-
TargetKind: "AWSNetwork",
317+
TargetKind: "AmazonNetwork",
318318

319319
MetadataKeysMatches: &[]string{"aws/region", "network/name"},
320320
},

cmd/ctrlc/root/sync/aws/rds/rds.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func processInstance(ctx context.Context, instance *types.DBInstance, region str
220220

221221
return api.AgentResource{
222222
Version: "ctrlplane.dev/database/v1",
223-
Kind: "AWSRelationalDatabaseService",
223+
Kind: "AmazonRelationalDatabaseService",
224224
Name: *instance.DBInstanceIdentifier,
225225
Identifier: identifier,
226226
Config: map[string]any{
@@ -463,10 +463,10 @@ var relationshipRules = []api.CreateResourceRelationshipRule{
463463
DependencyType: api.ProvisionedIn,
464464

465465
SourceVersion: "ctrlplane.dev/database/v1",
466-
SourceKind: "AWSRelationalDatabaseService",
466+
SourceKind: "AmazonRelationalDatabaseService",
467467

468468
TargetVersion: "ctrlplane.dev/network/v1",
469-
TargetKind: "AWSNetwork",
469+
TargetKind: "AmazonNetwork",
470470

471471
MetadataKeysMatches: &[]string{"aws/region", "network/name"},
472472
},

0 commit comments

Comments
 (0)