mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-04 17:21:20 -07:00
Added constant exports and linted new ...list.js files.
This commit is contained in:
@@ -35,6 +35,9 @@ const extractKubeData = (config) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const ANNOTATION_BASE = "gethomepage.dev";
|
||||
export const ANNOTATION_WIDGET_BASE = `${ANNOTATION_BASE}/widget.`;
|
||||
|
||||
export default function getKubeArguments() {
|
||||
checkAndCopyConfig("kubernetes.yaml");
|
||||
|
||||
@@ -72,4 +75,4 @@ export async function checkCRD(name,kc,logger) {
|
||||
});
|
||||
|
||||
return exist;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import createLogger from "utils/logger";
|
||||
import checkAndCopyConfig, { CONF_DIR, getSettings, substituteEnvironmentVars } from "utils/config/config";
|
||||
import getDockerArguments from "utils/config/docker";
|
||||
import { getUrlSchema, getRouteList } from "utils/kubernetes/kubernetes-routes";
|
||||
import {ANNOTATION_BASE,ANNOTATION_WIDGET_BASE} from "utils/config/kubernetes"
|
||||
import * as shvl from "utils/config/shvl";
|
||||
|
||||
const logger = createLogger("service-helpers");
|
||||
@@ -167,8 +168,6 @@ export async function servicesFromDocker() {
|
||||
}
|
||||
|
||||
export async function servicesFromKubernetes() {
|
||||
const ANNOTATION_BASE = "gethomepage.dev";
|
||||
const ANNOTATION_WIDGET_BASE = `${ANNOTATION_BASE}/widget.`;
|
||||
const { instanceName } = getSettings();
|
||||
|
||||
checkAndCopyConfig("kubernetes.yaml");
|
||||
|
||||
Reference in New Issue
Block a user