add missing link formatters to the registry
Signed-off-by: Morgan Martinet <morgan.martinet@montreal.ca>
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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<string, ClusterLinksFormatter> = {
|
||||
standard: standardFormatter,
|
||||
rancher: rancherFormatter,
|
||||
openshift: openshiftFormatter,
|
||||
aks: aksFormatter,
|
||||
eks: eksFormatter,
|
||||
gke: gkeFormatter,
|
||||
};
|
||||
export const defaultFormatterName = 'standard';
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user