fix prettier-S
Signed-off-by: Guilherme Oenning <goenning@eshopworld.com>
This commit is contained in:
@@ -90,8 +90,8 @@ cluster. Valid values are:
|
||||
| `serviceAccount` | This will use a Kubernetes [service account](https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/) to access the Kubernetes API. When this is used the `serviceAccountToken` field should also be set. |
|
||||
| `google` | This will use a user's Google auth token from the [Google auth plugin](https://backstage.io/docs/auth/) to access the Kubernetes API. |
|
||||
| `aws` | This will use AWS credentials to access resources in EKS clusters |
|
||||
| `googleServiceAccount` | This will use the Google Cloud service account credentials to access resources in clusters
|
||||
| `azure` | This will use [Azure Identity](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview) to access resources in clusters |
|
||||
| `googleServiceAccount` | This will use the Google Cloud service account credentials to access resources in clusters |
|
||||
| `azure` | This will use [Azure Identity](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview) to access resources in clusters |
|
||||
|
||||
##### `clusters.\*.skipTLSVerify`
|
||||
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ import { KubernetesAuthTranslator } from './types';
|
||||
import { AzureClusterDetails } from '../types/types';
|
||||
import { DefaultAzureCredential } from '@azure/identity';
|
||||
|
||||
const aksScope = "6dae42f8-4368-4678-94ff-3960e28e3630/.default" // This scope is the same for all Azure Managed Kubernetes
|
||||
const aksScope = '6dae42f8-4368-4678-94ff-3960e28e3630/.default'; // This scope is the same for all Azure Managed Kubernetes
|
||||
|
||||
export class AzureIdentityKubernetesAuthTranslator
|
||||
implements KubernetesAuthTranslator
|
||||
@@ -35,7 +35,7 @@ export class AzureIdentityKubernetesAuthTranslator
|
||||
|
||||
// TODO: can we cache this? It's inneficiant to get a new token every time
|
||||
const accessToken = await credentials.getToken(aksScope);
|
||||
clusterDetailsWithAuthToken.serviceAccountToken = accessToken.token
|
||||
clusterDetailsWithAuthToken.serviceAccountToken = accessToken.token;
|
||||
return clusterDetailsWithAuthToken;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,10 @@ export class KubernetesAuthProviders implements KubernetesAuthProvidersApi {
|
||||
new GoogleServiceAccountAuthProvider(),
|
||||
);
|
||||
this.kubernetesAuthProviderMap.set('aws', new AwsKubernetesAuthProvider());
|
||||
this.kubernetesAuthProviderMap.set('azure', new AzureKubernetesAuthProvider());
|
||||
this.kubernetesAuthProviderMap.set(
|
||||
'azure',
|
||||
new AzureKubernetesAuthProvider(),
|
||||
);
|
||||
}
|
||||
|
||||
async decorateRequestBodyForAuth(
|
||||
|
||||
Reference in New Issue
Block a user