@crossdelta/infrastructure 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/dist/runtimes/doks/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1149,7 +1149,8 @@ var indent = (text, level) => {
|
|
|
1149
1149
|
`).map((line) => line.trim() === "" ? "" : `${prefix}${line}`).join(`
|
|
1150
1150
|
`);
|
|
1151
1151
|
};
|
|
1152
|
-
var
|
|
1152
|
+
var encodeHash = (hash) => hash.startsWith("$") ? Buffer.from(hash).toString("base64") : hash;
|
|
1153
|
+
var basicAuthLines = (basicAuth) => basicAuth ? ["basic_auth {", ` ${basicAuth.user} ${encodeHash(basicAuth.hash)}`, "}"] : [];
|
|
1153
1154
|
var generateHandleBlock = (handle, level, basicAuth) => {
|
|
1154
1155
|
const hasPath = handle.path != null;
|
|
1155
1156
|
const header = hasPath ? `handle ${handle.path}* {` : "handle {";
|
|
@@ -1284,6 +1285,9 @@ var deployCaddy = (provider, namespace, config) => {
|
|
|
1284
1285
|
metadata: { labels },
|
|
1285
1286
|
spec: {
|
|
1286
1287
|
containers,
|
|
1288
|
+
...config.imagePullSecretName && {
|
|
1289
|
+
imagePullSecrets: [{ name: config.imagePullSecretName }]
|
|
1290
|
+
},
|
|
1287
1291
|
volumes: [
|
|
1288
1292
|
{
|
|
1289
1293
|
name: "caddy-data",
|
package/dist/index.js
CHANGED
|
@@ -1053,7 +1053,8 @@ var indent = (text, level) => {
|
|
|
1053
1053
|
`).map((line) => line.trim() === "" ? "" : `${prefix}${line}`).join(`
|
|
1054
1054
|
`);
|
|
1055
1055
|
};
|
|
1056
|
-
var
|
|
1056
|
+
var encodeHash = (hash) => hash.startsWith("$") ? Buffer.from(hash).toString("base64") : hash;
|
|
1057
|
+
var basicAuthLines = (basicAuth) => basicAuth ? ["basic_auth {", ` ${basicAuth.user} ${encodeHash(basicAuth.hash)}`, "}"] : [];
|
|
1057
1058
|
var generateHandleBlock = (handle, level, basicAuth) => {
|
|
1058
1059
|
const hasPath = handle.path != null;
|
|
1059
1060
|
const header = hasPath ? `handle ${handle.path}* {` : "handle {";
|
|
@@ -1188,6 +1189,9 @@ var deployCaddy = (provider, namespace, config) => {
|
|
|
1188
1189
|
metadata: { labels },
|
|
1189
1190
|
spec: {
|
|
1190
1191
|
containers,
|
|
1192
|
+
...config.imagePullSecretName && {
|
|
1193
|
+
imagePullSecrets: [{ name: config.imagePullSecretName }]
|
|
1194
|
+
},
|
|
1191
1195
|
volumes: [
|
|
1192
1196
|
{
|
|
1193
1197
|
name: "caddy-data",
|
|
@@ -445,6 +445,8 @@ export interface CaddyConfig {
|
|
|
445
445
|
acmeEmail?: string;
|
|
446
446
|
/** Additional containers in the Caddy pod (e.g., /ask sidecar) */
|
|
447
447
|
sidecars?: k8s.types.input.core.v1.Container[];
|
|
448
|
+
/** Secret name for pulling private container images */
|
|
449
|
+
imagePullSecretName?: string;
|
|
448
450
|
/** Resource limits for the Caddy container */
|
|
449
451
|
resources?: K8sResourceConfig;
|
|
450
452
|
/** Persistent storage for certs and OCSP cache */
|