Skip to content

Commit

Permalink
Export tailscale-router default images
Browse files Browse the repository at this point in the history
  • Loading branch information
nktpro committed Apr 24, 2024
1 parent 22dcb67 commit 82c9a4e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/mods/tailscale_router/tailscale_router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ import images from "../../images.json" with { type: "json" };

const defaultName = "tailscale-router";

export const defaultHelperImage = images.tailscaleRouterInit;
export const defaultImage = images.tailscale;

export function createTailscaleRouterResources(
{
replicas = 1,
name = defaultName,
image = defaultImage,
helperImage = defaultHelperImage,
namespace,
serviceAccountName,
clientId,
Expand All @@ -36,6 +41,8 @@ export function createTailscaleRouterResources(
}: {
replicas?: number;
name?: string;
image?: string;
helperImage?: string;
namespace: string;
serviceAccountName?: string;
clientId: string;
Expand All @@ -57,8 +64,6 @@ export function createTailscaleRouterResources(
"app.kubernetes.io/instance": name,
};

const helperImage = images.tailscaleRouterInit;

const authKeyRefreshName = `${name}-auth-key-refresh`;
const authKeySecretName = `${name}-auth-key`;
const authKeyRefreshServiceAccount = createK8sServiceAccount({
Expand Down Expand Up @@ -327,7 +332,7 @@ export function createTailscaleRouterResources(
containers: [
{
name: "tailscale",
image: images.tailscale,
image,
env: [{
name: "TS_AUTH_KEY",
valueFrom: {
Expand Down

0 comments on commit 82c9a4e

Please sign in to comment.