From 991356f3afc7794a224e227e2235c1dfaa87ff27 Mon Sep 17 00:00:00 2001 From: Morgan Martinet Date: Sun, 29 Aug 2021 20:30:51 -0400 Subject: [PATCH] add missing link formatters to the registry Signed-off-by: Morgan Martinet --- .../src/utils/clusterLinks/formatters/aks.test.ts | 2 +- .../src/utils/clusterLinks/formatters/eks.test.ts | 2 +- .../src/utils/clusterLinks/formatters/gke.test.ts | 2 +- .../kubernetes/src/utils/clusterLinks/formatters/index.ts | 6 ++++++ .../src/utils/clusterLinks/formatters/openshift.test.ts | 2 +- .../src/utils/clusterLinks/formatters/rancher.test.ts | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/aks.test.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/aks.test.ts index 381df0dc28..847cbf83ef 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/aks.test.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/aks.test.ts @@ -15,7 +15,7 @@ */ import { aksFormatter } from './aks'; -describe('clusterLinks - aks formatter', () => { +describe('clusterLinks - AKS formatter', () => { it('should return an url on the workloads when there is a namespace only', () => { expect(() => aksFormatter({ diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/eks.test.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/eks.test.ts index a1a5252bc4..808901e60e 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/eks.test.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/eks.test.ts @@ -15,7 +15,7 @@ */ import { eksFormatter } from './eks'; -describe('clusterLinks - aks formatter', () => { +describe('clusterLinks - EKS formatter', () => { it('should return an url on the workloads when there is a namespace only', () => { expect(() => eksFormatter({ diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/gke.test.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/gke.test.ts index 56e8b510d3..6a842e0c24 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/gke.test.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/gke.test.ts @@ -15,7 +15,7 @@ */ import { gkeFormatter } from './gke'; -describe('clusterLinks - aks formatter', () => { +describe('clusterLinks - GKE formatter', () => { it('should return an url on the workloads when there is a namespace only', () => { expect(() => gkeFormatter({ diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/index.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/index.ts index f0530f1f7b..a2dea97555 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/index.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/index.ts @@ -17,10 +17,16 @@ import { ClusterLinksFormatter } from '../../../types/types'; import { standardFormatter } from './standard'; import { rancherFormatter } from './rancher'; import { openshiftFormatter } from './openshift'; +import { aksFormatter } from './aks'; +import { eksFormatter } from './eks'; +import { gkeFormatter } from './gke'; export const clusterLinksFormatters: Record = { standard: standardFormatter, rancher: rancherFormatter, openshift: openshiftFormatter, + aks: aksFormatter, + eks: eksFormatter, + gke: gkeFormatter, }; export const defaultFormatterName = 'standard'; diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/openshift.test.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/openshift.test.ts index f9a70d8d9a..67ef5e6c51 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/openshift.test.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/openshift.test.ts @@ -15,7 +15,7 @@ */ import { openshiftFormatter } from './openshift'; -describe('clusterLinks - aks formatter', () => { +describe('clusterLinks - OpenShift formatter', () => { it('should return an url on the workloads when there is a namespace only', () => { expect(() => openshiftFormatter({ diff --git a/plugins/kubernetes/src/utils/clusterLinks/formatters/rancher.test.ts b/plugins/kubernetes/src/utils/clusterLinks/formatters/rancher.test.ts index 61de1a0a4e..503470acd3 100644 --- a/plugins/kubernetes/src/utils/clusterLinks/formatters/rancher.test.ts +++ b/plugins/kubernetes/src/utils/clusterLinks/formatters/rancher.test.ts @@ -15,7 +15,7 @@ */ import { rancherFormatter } from './rancher'; -describe('clusterLinks - aks formatter', () => { +describe('clusterLinks - Rancher formatter', () => { it('should return an url on the workloads when there is a namespace only', () => { expect(() => rancherFormatter({