mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-12-08 20:29:05 +00:00
template varnish config using gomplate
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
if (counter + 1 >= colors.length) counter = 1;
|
||||
else counter += 1;
|
||||
|
||||
console.log(counter);
|
||||
|
||||
return {
|
||||
bgColor: colors[counter - 1][0],
|
||||
color: colors[counter - 1][1],
|
||||
@@ -99,7 +97,6 @@
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.4;
|
||||
line-height: 1.7;
|
||||
max-width: 80%;
|
||||
color: #333;
|
||||
|
||||
background-color: #fafafa; /* Subtle background to separate it from the rest */
|
||||
|
||||
@@ -13,7 +13,6 @@ const AVAILABLE_RESOURCES = [
|
||||
|
||||
export const load: PageServerLoad = async ({ params }) => {
|
||||
const { resource, uid } = params;
|
||||
console.log('PARAMS:', params);
|
||||
|
||||
if (!AVAILABLE_RESOURCES.includes(resource)) {
|
||||
return {
|
||||
|
||||
@@ -3,13 +3,11 @@ import { produce } from 'sveltekit-sse';
|
||||
|
||||
export function GET({ request }) {
|
||||
return produce(async function start({ emit }) {
|
||||
console.log('----- REQUEST -----');
|
||||
const url = new URL(request.url);
|
||||
const pod = url.searchParams.get('pod');
|
||||
const namespace = url.searchParams.get('namespace');
|
||||
const container = url.searchParams.get('container');
|
||||
|
||||
console.log('pod, namespace:', pod, namespace);
|
||||
const k8sLogs = createLogStream(pod, namespace, container);
|
||||
k8sLogs.start();
|
||||
const unsubscribe = k8sLogs.logEmitter.subscribe((msg: string) => {
|
||||
|
||||
@@ -23,7 +23,6 @@ async function fetchImage(src: string) {
|
||||
}
|
||||
|
||||
export const GET: RequestHandler = async ({ url }) => {
|
||||
console.log('GET');
|
||||
url.pathname = url.pathname.replace('/image/', '');
|
||||
|
||||
const res = await fetchImage(url.href);
|
||||
Reference in New Issue
Block a user