Retrieve the externalId from the config

My previous change to enable the external id, had missed the part
that actually reads the externalId from the config. This change
is the final piece, all going well.

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2021-08-19 17:14:21 +01:00
parent 2f291dfd04
commit 22fc579fe5
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': patch
---
Fixes bug reading ExternalId from k8s backend config
@@ -44,7 +44,9 @@ export class ConfigClusterLocator implements KubernetesClustersSupplier {
}
case 'aws': {
const assumeRole = c.getOptionalString('assumeRole');
return { assumeRole, ...clusterDetails };
const externalId = c.getOptionalString('externalId');
return { assumeRole, externalId, ...clusterDetails };
}
case 'serviceAccount': {
return clusterDetails;