/**
 * Kubernetes 集群数据源
 */
import type { DataSourceConfig } from '../types';

export const k8sClustersConfig: DataSourceConfig = {
  url: '/api/v1/k8s-cluster/list',
  params: { enabled: true },
  transform: (data: any[]) => {
    return data.map((item: any) => ({
      label: item.name,
      value: item.id,
      apiServer: item.apiServer
    }));
  }
};

