@vaharoni/devops 1.0.47
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/README.md +51 -0
- package/dist/app-support/crypto/index.d.ts +15 -0
- package/dist/app-support/crypto/index.d.ts.map +1 -0
- package/dist/app-support/crypto/index.js +30 -0
- package/dist/app-support/crypto/internal-token.d.ts +20 -0
- package/dist/app-support/crypto/internal-token.d.ts.map +1 -0
- package/dist/app-support/crypto/internal-token.js +42 -0
- package/dist/app-support/crypto/internal-token.spec.d.ts +2 -0
- package/dist/app-support/crypto/internal-token.spec.d.ts.map +1 -0
- package/dist/app-support/crypto/internal-token.spec.js +45 -0
- package/dist/app-support/crypto/secret.d.ts +3 -0
- package/dist/app-support/crypto/secret.d.ts.map +1 -0
- package/dist/app-support/crypto/secret.js +12 -0
- package/dist/app-support/crypto/secret.spec.d.ts +2 -0
- package/dist/app-support/crypto/secret.spec.d.ts.map +1 -0
- package/dist/app-support/crypto/secret.spec.js +15 -0
- package/dist/app-support/discovery/dev-discovery-loader.d.ts +2 -0
- package/dist/app-support/discovery/dev-discovery-loader.d.ts.map +1 -0
- package/dist/app-support/discovery/dev-discovery-loader.js +30 -0
- package/dist/app-support/discovery/service-endpoint.d.ts +2 -0
- package/dist/app-support/discovery/service-endpoint.d.ts.map +1 -0
- package/dist/app-support/discovery/service-endpoint.js +10 -0
- package/dist/cli/affected.d.ts +11 -0
- package/dist/cli/affected.d.ts.map +1 -0
- package/dist/cli/affected.js +103 -0
- package/dist/cli/common.d.ts +89 -0
- package/dist/cli/common.d.ts.map +1 -0
- package/dist/cli/common.js +236 -0
- package/dist/cli/common.spec.d.ts +2 -0
- package/dist/cli/common.spec.d.ts.map +1 -0
- package/dist/cli/common.spec.js +64 -0
- package/dist/cli/console.d.ts +11 -0
- package/dist/cli/console.d.ts.map +1 -0
- package/dist/cli/console.js +35 -0
- package/dist/cli/constant.d.ts +11 -0
- package/dist/cli/constant.d.ts.map +1 -0
- package/dist/cli/constant.js +22 -0
- package/dist/cli/db.d.ts +11 -0
- package/dist/cli/db.d.ts.map +1 -0
- package/dist/cli/db.js +119 -0
- package/dist/cli/dml.d.ts +11 -0
- package/dist/cli/dml.d.ts.map +1 -0
- package/dist/cli/dml.js +116 -0
- package/dist/cli/env.d.ts +11 -0
- package/dist/cli/env.d.ts.map +1 -0
- package/dist/cli/env.js +67 -0
- package/dist/cli/exec.d.ts +11 -0
- package/dist/cli/exec.d.ts.map +1 -0
- package/dist/cli/exec.js +50 -0
- package/dist/cli/image.d.ts +11 -0
- package/dist/cli/image.d.ts.map +1 -0
- package/dist/cli/image.js +140 -0
- package/dist/cli/init.d.ts +11 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +66 -0
- package/dist/cli/internal-curl.d.ts +11 -0
- package/dist/cli/internal-curl.d.ts.map +1 -0
- package/dist/cli/internal-curl.js +43 -0
- package/dist/cli/job.d.ts +11 -0
- package/dist/cli/job.d.ts.map +1 -0
- package/dist/cli/job.js +67 -0
- package/dist/cli/jwt.d.ts +11 -0
- package/dist/cli/jwt.d.ts.map +1 -0
- package/dist/cli/jwt.js +27 -0
- package/dist/cli/namespace.d.ts +11 -0
- package/dist/cli/namespace.d.ts.map +1 -0
- package/dist/cli/namespace.js +70 -0
- package/dist/cli/prep-build.d.ts +11 -0
- package/dist/cli/prep-build.d.ts.map +1 -0
- package/dist/cli/prep-build.js +82 -0
- package/dist/cli/prisma.d.ts +11 -0
- package/dist/cli/prisma.d.ts.map +1 -0
- package/dist/cli/prisma.js +25 -0
- package/dist/cli/redis.d.ts +11 -0
- package/dist/cli/redis.d.ts.map +1 -0
- package/dist/cli/redis.js +76 -0
- package/dist/cli/registry.d.ts +11 -0
- package/dist/cli/registry.d.ts.map +1 -0
- package/dist/cli/registry.js +58 -0
- package/dist/cli/run-many.d.ts +11 -0
- package/dist/cli/run-many.d.ts.map +1 -0
- package/dist/cli/run-many.js +50 -0
- package/dist/cli/run.d.ts +11 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +37 -0
- package/dist/cli/template.d.ts +11 -0
- package/dist/cli/template.d.ts.map +1 -0
- package/dist/cli/template.js +123 -0
- package/dist/cli/test.d.ts +11 -0
- package/dist/cli/test.d.ts.map +1 -0
- package/dist/cli/test.js +28 -0
- package/dist/devops.d.ts +3 -0
- package/dist/devops.d.ts.map +1 -0
- package/dist/devops.js +103 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/libs/affected-entities.d.ts +15 -0
- package/dist/libs/affected-entities.d.ts.map +1 -0
- package/dist/libs/affected-entities.js +52 -0
- package/dist/libs/config.d.ts +6 -0
- package/dist/libs/config.d.ts.map +1 -0
- package/dist/libs/config.js +98 -0
- package/dist/libs/dependencies.d.ts +19 -0
- package/dist/libs/dependencies.d.ts.map +1 -0
- package/dist/libs/dependencies.js +62 -0
- package/dist/libs/dependencies.spec.d.ts +2 -0
- package/dist/libs/dependencies.spec.d.ts.map +1 -0
- package/dist/libs/dependencies.spec.js +21 -0
- package/dist/libs/digital-ocean/container-reg.d.ts +6 -0
- package/dist/libs/digital-ocean/container-reg.d.ts.map +1 -0
- package/dist/libs/digital-ocean/container-reg.js +69 -0
- package/dist/libs/discovery/dependencies.d.ts +19 -0
- package/dist/libs/discovery/dependencies.d.ts.map +1 -0
- package/dist/libs/discovery/dependencies.js +62 -0
- package/dist/libs/discovery/dependencies.spec.d.ts +2 -0
- package/dist/libs/discovery/dependencies.spec.d.ts.map +1 -0
- package/dist/libs/discovery/dependencies.spec.js +21 -0
- package/dist/libs/discovery/images.d.ts +5 -0
- package/dist/libs/discovery/images.d.ts.map +1 -0
- package/dist/libs/discovery/images.js +45 -0
- package/dist/libs/discovery/index.d.ts +5 -0
- package/dist/libs/discovery/index.d.ts.map +1 -0
- package/dist/libs/discovery/index.js +55 -0
- package/dist/libs/discovery/package-json-processor.d.ts +3 -0
- package/dist/libs/discovery/package-json-processor.d.ts.map +1 -0
- package/dist/libs/discovery/package-json-processor.js +34 -0
- package/dist/libs/discovery/process-common.d.ts +25 -0
- package/dist/libs/discovery/process-common.d.ts.map +1 -0
- package/dist/libs/discovery/process-common.js +40 -0
- package/dist/libs/discovery/process-package-json.d.ts +3 -0
- package/dist/libs/discovery/process-package-json.d.ts.map +1 -0
- package/dist/libs/discovery/process-package-json.js +34 -0
- package/dist/libs/discovery/process-pyproject-toml.d.ts +3 -0
- package/dist/libs/discovery/process-pyproject-toml.d.ts.map +1 -0
- package/dist/libs/discovery/process-pyproject-toml.js +36 -0
- package/dist/libs/discovery/pyproject-toml-processor.d.ts +3 -0
- package/dist/libs/discovery/pyproject-toml-processor.d.ts.map +1 -0
- package/dist/libs/discovery/pyproject-toml-processor.js +39 -0
- package/dist/libs/git-helpers.d.ts +8 -0
- package/dist/libs/git-helpers.d.ts.map +1 -0
- package/dist/libs/git-helpers.js +20 -0
- package/dist/libs/hetzner/reg-secret.d.ts +3 -0
- package/dist/libs/hetzner/reg-secret.d.ts.map +1 -0
- package/dist/libs/hetzner/reg-secret.js +39 -0
- package/dist/libs/k8s-constants.d.ts +12 -0
- package/dist/libs/k8s-constants.d.ts.map +1 -0
- package/dist/libs/k8s-constants.js +66 -0
- package/dist/libs/k8s-db.d.ts +18 -0
- package/dist/libs/k8s-db.d.ts.map +1 -0
- package/dist/libs/k8s-db.js +73 -0
- package/dist/libs/k8s-generate.d.ts +17 -0
- package/dist/libs/k8s-generate.d.ts.map +1 -0
- package/dist/libs/k8s-generate.js +179 -0
- package/dist/libs/k8s-helpers.d.ts +11 -0
- package/dist/libs/k8s-helpers.d.ts.map +1 -0
- package/dist/libs/k8s-helpers.js +42 -0
- package/dist/libs/k8s-image-config.d.ts +8 -0
- package/dist/libs/k8s-image-config.d.ts.map +1 -0
- package/dist/libs/k8s-image-config.js +113 -0
- package/dist/libs/k8s-job-waiter.d.ts +8 -0
- package/dist/libs/k8s-job-waiter.d.ts.map +1 -0
- package/dist/libs/k8s-job-waiter.js +84 -0
- package/dist/libs/k8s-namespace.d.ts +7 -0
- package/dist/libs/k8s-namespace.d.ts.map +1 -0
- package/dist/libs/k8s-namespace.js +27 -0
- package/dist/libs/k8s-redis.d.ts +6 -0
- package/dist/libs/k8s-redis.d.ts.map +1 -0
- package/dist/libs/k8s-redis.js +31 -0
- package/dist/libs/k8s-secrets-manager.d.ts +5 -0
- package/dist/libs/k8s-secrets-manager.d.ts.map +1 -0
- package/dist/libs/k8s-secrets-manager.js +61 -0
- package/dist/libs/validate-env.d.ts +56 -0
- package/dist/libs/validate-env.d.ts.map +1 -0
- package/dist/libs/validate-env.js +214 -0
- package/dist/libs/validate-env.spec.d.ts +2 -0
- package/dist/libs/validate-env.spec.d.ts.map +1 -0
- package/dist/libs/validate-env.spec.js +168 -0
- package/dist/libs/workspace-discovery.d.ts +2 -0
- package/dist/libs/workspace-discovery.d.ts.map +1 -0
- package/dist/libs/workspace-discovery.js +75 -0
- package/dist/test.d.ts +2 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +1 -0
- package/dist/types/index.d.ts +925 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +79 -0
- package/package.json +55 -0
- package/src/app-support/crypto/index.ts +31 -0
- package/src/app-support/crypto/internal-token.spec.ts +53 -0
- package/src/app-support/crypto/internal-token.ts +82 -0
- package/src/app-support/crypto/secret.spec.ts +18 -0
- package/src/app-support/crypto/secret.ts +13 -0
- package/src/app-support/discovery/dev-discovery-loader.ts +35 -0
- package/src/app-support/discovery/service-endpoint.ts +12 -0
- package/src/cli/affected.ts +116 -0
- package/src/cli/common.spec.ts +78 -0
- package/src/cli/common.ts +323 -0
- package/src/cli/console.ts +46 -0
- package/src/cli/constant.ts +25 -0
- package/src/cli/db.ts +133 -0
- package/src/cli/dml.ts +126 -0
- package/src/cli/env.ts +87 -0
- package/src/cli/exec.sh +21 -0
- package/src/cli/exec.ts +57 -0
- package/src/cli/image.ts +197 -0
- package/src/cli/init.ts +75 -0
- package/src/cli/internal-curl.ts +48 -0
- package/src/cli/job.ts +80 -0
- package/src/cli/jwt.ts +32 -0
- package/src/cli/namespace.ts +78 -0
- package/src/cli/prep-build.ts +96 -0
- package/src/cli/prisma.ts +33 -0
- package/src/cli/redis.ts +83 -0
- package/src/cli/registry.ts +76 -0
- package/src/cli/run-many.ts +61 -0
- package/src/cli/run.ts +46 -0
- package/src/cli/template.ts +169 -0
- package/src/cli/test.ts +30 -0
- package/src/devops.ts +119 -0
- package/src/index.ts +3 -0
- package/src/libs/affected-entities.ts +71 -0
- package/src/libs/config.ts +117 -0
- package/src/libs/digital-ocean/container-reg.ts +81 -0
- package/src/libs/discovery/dependencies.spec.ts +25 -0
- package/src/libs/discovery/dependencies.ts +73 -0
- package/src/libs/discovery/images.ts +57 -0
- package/src/libs/discovery/index.ts +60 -0
- package/src/libs/discovery/process-common.ts +55 -0
- package/src/libs/discovery/process-package-json.ts +47 -0
- package/src/libs/discovery/process-pyproject-toml.ts +43 -0
- package/src/libs/git-helpers.ts +32 -0
- package/src/libs/hetzner/reg-secret.ts +54 -0
- package/src/libs/k8s-constants.ts +83 -0
- package/src/libs/k8s-db.ts +83 -0
- package/src/libs/k8s-generate.ts +211 -0
- package/src/libs/k8s-helpers.ts +59 -0
- package/src/libs/k8s-image-config.ts +165 -0
- package/src/libs/k8s-job-waiter.ts +124 -0
- package/src/libs/k8s-namespace.ts +41 -0
- package/src/libs/k8s-redis.ts +31 -0
- package/src/libs/k8s-secrets-manager.ts +79 -0
- package/src/libs/validate-env.spec.ts +223 -0
- package/src/libs/validate-env.ts +266 -0
- package/src/target-templates/.devops/config/constants.yaml +17 -0
- package/src/target-templates/.devops/config/images.yaml +88 -0
- package/src/target-templates/.devops/docker-images/common/docker-common.sh +23 -0
- package/src/target-templates/.devops/docker-images/node-services/node-exec.sh +8 -0
- package/src/target-templates/.devops/docker-images/node-services/node-run.sh +8 -0
- package/src/target-templates/.devops/docker-images/node-services.Dockerfile +34 -0
- package/src/target-templates/.devops/docker-images/python-services/python-exec.sh +8 -0
- package/src/target-templates/.devops/docker-images/python-services/python-run.sh +8 -0
- package/src/target-templates/.devops/docker-images/python-services.Dockerfile +29 -0
- package/src/target-templates/.devops/env.example.yaml +23 -0
- package/src/target-templates/.devops/infra/hetzner/abandoned/harbor-values.yaml +30 -0
- package/src/target-templates/.devops/infra/hetzner/abandoned/hcloud-config.yaml +134 -0
- package/src/target-templates/.devops/infra/hetzner/cert-manager.yaml +25 -0
- package/src/target-templates/.devops/infra/hetzner/harbor-cert.yaml +13 -0
- package/src/target-templates/.devops/infra/hetzner/harbor-values.yaml +76 -0
- package/src/target-templates/.devops/infra/hetzner/hcloud-config.yaml +113 -0
- package/src/target-templates/.devops/infra/hetzner/ingress-nginx-annotations.yaml +49 -0
- package/src/target-templates/.devops/infra/hetzner/ingress-nginx-configmap.yaml +8 -0
- package/src/target-templates/.devops/infra/hetzner/retain-storage-class.yaml +8 -0
- package/src/target-templates/.devops/infra/monitoring-ingress.yaml +62 -0
- package/src/target-templates/.devops/infra/stackgres-ui-ingress.yaml +35 -0
- package/src/target-templates/.devops/infra/test.yaml +60 -0
- package/src/target-templates/.devops/manifests/_index.yaml +21 -0
- package/src/target-templates/.devops/manifests/cron-jobs.yaml.hb +55 -0
- package/src/target-templates/.devops/manifests/db-migrate-job.yaml.hb +42 -0
- package/src/target-templates/.devops/manifests/deployment-debug.yaml.hb +44 -0
- package/src/target-templates/.devops/manifests/deployment-process.yaml.hb +47 -0
- package/src/target-templates/.devops/manifests/deployment-web.yaml.hb +53 -0
- package/src/target-templates/.devops/manifests/ingress.yaml.hb +21 -0
- package/src/target-templates/.devops/manifests/prefect.yaml.hb +62 -0
- package/src/target-templates/.devops/manifests/service.yaml.hb +15 -0
- package/src/target-templates/.devops/milvus/production/milvus-values.yaml +2 -0
- package/src/target-templates/.devops/milvus/staging/milvus-values.yaml +2 -0
- package/src/target-templates/.devops/postgres/DailyOperatorRestart.yaml +54 -0
- package/src/target-templates/.devops/postgres/production/cluster/PodDisruptionBudget.yaml +27 -0
- package/src/target-templates/.devops/postgres/production/cluster/SGCluster.yaml +47 -0
- package/src/target-templates/.devops/postgres/production/cluster/StackGres-alerts.yaml +191 -0
- package/src/target-templates/.devops/postgres/production/configurations/06-SGDistributedLogs.yaml +11 -0
- package/src/target-templates/.devops/postgres/production/configurations/07-SGObjectStorage.yaml +18 -0
- package/src/target-templates/.devops/postgres/production/configurations/08-SGScript.yaml +12 -0
- package/src/target-templates/.devops/postgres/staging/cluster/SGCluster.yaml +42 -0
- package/src/target-templates/.devops/postgres/staging/configurations/07-SGObjectStorage.yaml +18 -0
- package/src/target-templates/.devops/postgres/staging/configurations/08-SGScript.yaml +12 -0
- package/src/target-templates/.devops/prefect/production/prefect-values.yaml +14 -0
- package/src/target-templates/.devops/prefect/staging/prefect-values.yaml +14 -0
- package/src/target-templates/.devops/redis/production/redis-values.yaml +20 -0
- package/src/target-templates/.devops/redis/staging/redis-values.yaml +8 -0
- package/src/target-templates/.envrc +5 -0
- package/src/target-templates/.github/actions/build-image@v1/action.yaml +86 -0
- package/src/target-templates/.github/actions/connect-to-digital-ocean@v1/action.yaml +29 -0
- package/src/target-templates/.github/actions/connect-to-hetzner@v1/action.yaml +31 -0
- package/src/target-templates/.github/actions/connect-to-infra@v1/action.yaml +46 -0
- package/src/target-templates/.github/actions/db-migrate@v1/action.yaml +23 -0
- package/src/target-templates/.github/actions/deploy-image@v1/action.yaml +33 -0
- package/src/target-templates/.github/actions/setup-prereq@v1/action.yaml +29 -0
- package/src/target-templates/.github/workflows/k8s-build.yaml +84 -0
- package/src/target-templates/applications/example-data-pipeline/pyproject.toml +14 -0
- package/src/target-templates/applications/example-data-pipeline/src/example_data_pipeline/main.py +38 -0
- package/src/target-templates/applications/example-node/index.ts +30 -0
- package/src/target-templates/applications/example-node/package.json +26 -0
- package/src/target-templates/applications/example-node/tsconfig.json +3 -0
- package/src/target-templates/applications/example-python/pyproject.toml +20 -0
- package/src/target-templates/applications/example-python/src/example_python/__init__.py +0 -0
- package/src/target-templates/applications/example-python/src/example_python/main.py +13 -0
- package/src/target-templates/applications/example-python/src/example_python/scripts.py +17 -0
- package/src/target-templates/applications/example-python/tests/__init__.py +0 -0
- package/src/target-templates/applications/jobs/README.md +68 -0
- package/src/target-templates/applications/jobs/index.ts +1 -0
- package/src/target-templates/applications/jobs/package.json +30 -0
- package/src/target-templates/applications/jobs/tsconfig.json +3 -0
- package/src/target-templates/config/.env.development +1 -0
- package/src/target-templates/config/.env.global +4 -0
- package/src/target-templates/config/.env.test +1 -0
- package/src/target-templates/db/db/__init__.py +0 -0
- package/src/target-templates/db/db/db_client_test.py +46 -0
- package/src/target-templates/db/db-client-test.ts +140 -0
- package/src/target-templates/db/db-client.ts +19 -0
- package/src/target-templates/db/env.yaml +4 -0
- package/src/target-templates/db/package.json +17 -0
- package/src/target-templates/db/prisma/schema.prisma +24 -0
- package/src/target-templates/db/prisma-setup-vitest.ts +27 -0
- package/src/target-templates/db/pyproject.toml +14 -0
- package/src/target-templates/db/tsconfig.json +3 -0
- package/src/target-templates/devops +3 -0
- package/src/target-templates/devopspy +3 -0
- package/src/target-templates/dml/package.json +7 -0
- package/src/target-templates/dml/tsconfig.json +3 -0
- package/src/target-templates/libs/example-node-lib/bun.lock +27 -0
- package/src/target-templates/libs/example-node-lib/index.ts +3 -0
- package/src/target-templates/libs/example-node-lib/package.json +12 -0
- package/src/target-templates/libs/example-node-lib/tsconfig.json +3 -0
- package/src/target-templates/libs/example-python-lib/pyproject.toml +11 -0
- package/src/target-templates/libs/example-python-lib/src/example_python_lib/__init__.py +2 -0
- package/src/target-templates/pyproject.toml +19 -0
- package/src/target-templates/tmp/.gitkeep +0 -0
- package/src/target-templates/tsconfig.json +27 -0
- package/src/test.ts +0 -0
- package/src/types/index.ts +173 -0
@@ -0,0 +1,925 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["python", "node"];
|
3
|
+
export type SupportedLanguages = typeof SUPPORTED_LANGUAGES[number];
|
4
|
+
export declare const constFileSchema: z.ZodObject<{
|
5
|
+
"project-name": z.ZodString;
|
6
|
+
infra: z.ZodEnum<["hetzner", "digitalocean"]>;
|
7
|
+
"image-versions-to-keep": z.ZodNumber;
|
8
|
+
"registry-base-url": z.ZodString;
|
9
|
+
"registry-name": z.ZodString;
|
10
|
+
"extra-remote-environments": z.ZodArray<z.ZodString, "many">;
|
11
|
+
"extra-local-environments": z.ZodArray<z.ZodString, "many">;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
"project-name": string;
|
14
|
+
infra: "hetzner" | "digitalocean";
|
15
|
+
"image-versions-to-keep": number;
|
16
|
+
"registry-base-url": string;
|
17
|
+
"registry-name": string;
|
18
|
+
"extra-remote-environments": string[];
|
19
|
+
"extra-local-environments": string[];
|
20
|
+
}, {
|
21
|
+
"project-name": string;
|
22
|
+
infra: "hetzner" | "digitalocean";
|
23
|
+
"image-versions-to-keep": number;
|
24
|
+
"registry-base-url": string;
|
25
|
+
"registry-name": string;
|
26
|
+
"extra-remote-environments": string[];
|
27
|
+
"extra-local-environments": string[];
|
28
|
+
}>;
|
29
|
+
export type ConstFileSchema = z.infer<typeof constFileSchema>;
|
30
|
+
declare const singleTemplateSchema: z.ZodObject<{
|
31
|
+
"copy-common": z.ZodOptional<z.ZodBoolean>;
|
32
|
+
"extra-content": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
34
|
+
"copy-common"?: boolean | undefined;
|
35
|
+
"extra-content"?: string[] | undefined;
|
36
|
+
}, {
|
37
|
+
"copy-common"?: boolean | undefined;
|
38
|
+
"extra-content"?: string[] | undefined;
|
39
|
+
}>;
|
40
|
+
export type SingleTemplateSchema = z.infer<typeof singleTemplateSchema>;
|
41
|
+
declare const singleImageSchema: z.ZodObject<{
|
42
|
+
"image-template": z.ZodString;
|
43
|
+
language: z.ZodEnum<["python", "node"]>;
|
44
|
+
domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
45
|
+
"debug-template": z.ZodString;
|
46
|
+
"can-db-migrate": z.ZodOptional<z.ZodBoolean>;
|
47
|
+
applications: z.ZodArray<z.ZodString, "many">;
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
49
|
+
"image-template": string;
|
50
|
+
language: "python" | "node";
|
51
|
+
"debug-template": string;
|
52
|
+
applications: string[];
|
53
|
+
domains?: Record<string, string> | undefined;
|
54
|
+
"can-db-migrate"?: boolean | undefined;
|
55
|
+
}, {
|
56
|
+
"image-template": string;
|
57
|
+
language: "python" | "node";
|
58
|
+
"debug-template": string;
|
59
|
+
applications: string[];
|
60
|
+
domains?: Record<string, string> | undefined;
|
61
|
+
"can-db-migrate"?: boolean | undefined;
|
62
|
+
}>;
|
63
|
+
export type SingleImageSchema = z.infer<typeof singleImageSchema>;
|
64
|
+
export declare const imageFileSchema: z.ZodObject<{
|
65
|
+
templates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
66
|
+
"copy-common": z.ZodOptional<z.ZodBoolean>;
|
67
|
+
"extra-content": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
69
|
+
"copy-common"?: boolean | undefined;
|
70
|
+
"extra-content"?: string[] | undefined;
|
71
|
+
}, {
|
72
|
+
"copy-common"?: boolean | undefined;
|
73
|
+
"extra-content"?: string[] | undefined;
|
74
|
+
}>>;
|
75
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
76
|
+
"image-template": z.ZodString;
|
77
|
+
language: z.ZodEnum<["python", "node"]>;
|
78
|
+
domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
79
|
+
"debug-template": z.ZodString;
|
80
|
+
"can-db-migrate": z.ZodOptional<z.ZodBoolean>;
|
81
|
+
applications: z.ZodArray<z.ZodString, "many">;
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
83
|
+
"image-template": string;
|
84
|
+
language: "python" | "node";
|
85
|
+
"debug-template": string;
|
86
|
+
applications: string[];
|
87
|
+
domains?: Record<string, string> | undefined;
|
88
|
+
"can-db-migrate"?: boolean | undefined;
|
89
|
+
}, {
|
90
|
+
"image-template": string;
|
91
|
+
language: "python" | "node";
|
92
|
+
"debug-template": string;
|
93
|
+
applications: string[];
|
94
|
+
domains?: Record<string, string> | undefined;
|
95
|
+
"can-db-migrate"?: boolean | undefined;
|
96
|
+
}>>;
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
98
|
+
templates: Record<string, {
|
99
|
+
"copy-common"?: boolean | undefined;
|
100
|
+
"extra-content"?: string[] | undefined;
|
101
|
+
}>;
|
102
|
+
images: Record<string, {
|
103
|
+
"image-template": string;
|
104
|
+
language: "python" | "node";
|
105
|
+
"debug-template": string;
|
106
|
+
applications: string[];
|
107
|
+
domains?: Record<string, string> | undefined;
|
108
|
+
"can-db-migrate"?: boolean | undefined;
|
109
|
+
}>;
|
110
|
+
}, {
|
111
|
+
templates: Record<string, {
|
112
|
+
"copy-common"?: boolean | undefined;
|
113
|
+
"extra-content"?: string[] | undefined;
|
114
|
+
}>;
|
115
|
+
images: Record<string, {
|
116
|
+
"image-template": string;
|
117
|
+
language: "python" | "node";
|
118
|
+
"debug-template": string;
|
119
|
+
applications: string[];
|
120
|
+
domains?: Record<string, string> | undefined;
|
121
|
+
"can-db-migrate"?: boolean | undefined;
|
122
|
+
}>;
|
123
|
+
}>;
|
124
|
+
export type ImageFileSchema = z.infer<typeof imageFileSchema>;
|
125
|
+
export type WorkspaceIndex = Record<string, WorkspaceIndexEntry>;
|
126
|
+
export type WorkspaceIndexEntry = {
|
127
|
+
rootPath: string;
|
128
|
+
packageDataEntries: PackageData[];
|
129
|
+
};
|
130
|
+
export type PackageData = Omit<PackageFileNode, 'dependencies'> & {
|
131
|
+
rootPath: string;
|
132
|
+
language: SupportedLanguages;
|
133
|
+
/** The list of monorepo-internal packages this project depends on */
|
134
|
+
dependencyNames: string[];
|
135
|
+
};
|
136
|
+
declare const deploymentSchema: z.ZodObject<{
|
137
|
+
/** The name of the composite template to build in order to support this deployment */
|
138
|
+
template: z.ZodString;
|
139
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
140
|
+
app_name: z.ZodOptional<z.ZodString>;
|
141
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
142
|
+
service_name: z.ZodOptional<z.ZodString>;
|
143
|
+
/** For services, the port to expose */
|
144
|
+
port: z.ZodOptional<z.ZodNumber>;
|
145
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
146
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
147
|
+
/** For cron jobs */
|
148
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
149
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
150
|
+
name: z.ZodOptional<z.ZodString>;
|
151
|
+
/** The cron schedule */
|
152
|
+
cron: z.ZodOptional<z.ZodString>;
|
153
|
+
/** The curl command to invoke. Must be an array. */
|
154
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
156
|
+
name?: string | undefined;
|
157
|
+
cron?: string | undefined;
|
158
|
+
curl?: string[] | undefined;
|
159
|
+
}, {
|
160
|
+
name?: string | undefined;
|
161
|
+
cron?: string | undefined;
|
162
|
+
curl?: string[] | undefined;
|
163
|
+
}>, "many">>;
|
164
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
165
|
+
/** The name of the container inside the prefect pod */
|
166
|
+
flow_name: z.ZodString;
|
167
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
168
|
+
script_path: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
flow_name: string;
|
171
|
+
script_path: string;
|
172
|
+
}, {
|
173
|
+
flow_name: string;
|
174
|
+
script_path: string;
|
175
|
+
}>, "many">>;
|
176
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
177
|
+
/** The name of the composite template to build in order to support this deployment */
|
178
|
+
template: z.ZodString;
|
179
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
180
|
+
app_name: z.ZodOptional<z.ZodString>;
|
181
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
182
|
+
service_name: z.ZodOptional<z.ZodString>;
|
183
|
+
/** For services, the port to expose */
|
184
|
+
port: z.ZodOptional<z.ZodNumber>;
|
185
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
186
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
187
|
+
/** For cron jobs */
|
188
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
189
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
190
|
+
name: z.ZodOptional<z.ZodString>;
|
191
|
+
/** The cron schedule */
|
192
|
+
cron: z.ZodOptional<z.ZodString>;
|
193
|
+
/** The curl command to invoke. Must be an array. */
|
194
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
196
|
+
name?: string | undefined;
|
197
|
+
cron?: string | undefined;
|
198
|
+
curl?: string[] | undefined;
|
199
|
+
}, {
|
200
|
+
name?: string | undefined;
|
201
|
+
cron?: string | undefined;
|
202
|
+
curl?: string[] | undefined;
|
203
|
+
}>, "many">>;
|
204
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
205
|
+
/** The name of the container inside the prefect pod */
|
206
|
+
flow_name: z.ZodString;
|
207
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
208
|
+
script_path: z.ZodString;
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
210
|
+
flow_name: string;
|
211
|
+
script_path: string;
|
212
|
+
}, {
|
213
|
+
flow_name: string;
|
214
|
+
script_path: string;
|
215
|
+
}>, "many">>;
|
216
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
217
|
+
/** The name of the composite template to build in order to support this deployment */
|
218
|
+
template: z.ZodString;
|
219
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
220
|
+
app_name: z.ZodOptional<z.ZodString>;
|
221
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
222
|
+
service_name: z.ZodOptional<z.ZodString>;
|
223
|
+
/** For services, the port to expose */
|
224
|
+
port: z.ZodOptional<z.ZodNumber>;
|
225
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
226
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
227
|
+
/** For cron jobs */
|
228
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
229
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
230
|
+
name: z.ZodOptional<z.ZodString>;
|
231
|
+
/** The cron schedule */
|
232
|
+
cron: z.ZodOptional<z.ZodString>;
|
233
|
+
/** The curl command to invoke. Must be an array. */
|
234
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
236
|
+
name?: string | undefined;
|
237
|
+
cron?: string | undefined;
|
238
|
+
curl?: string[] | undefined;
|
239
|
+
}, {
|
240
|
+
name?: string | undefined;
|
241
|
+
cron?: string | undefined;
|
242
|
+
curl?: string[] | undefined;
|
243
|
+
}>, "many">>;
|
244
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
245
|
+
/** The name of the container inside the prefect pod */
|
246
|
+
flow_name: z.ZodString;
|
247
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
248
|
+
script_path: z.ZodString;
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
250
|
+
flow_name: string;
|
251
|
+
script_path: string;
|
252
|
+
}, {
|
253
|
+
flow_name: string;
|
254
|
+
script_path: string;
|
255
|
+
}>, "many">>;
|
256
|
+
}, z.ZodAny, "strip">>;
|
257
|
+
export type Deployment = z.infer<typeof deploymentSchema>;
|
258
|
+
export declare const packageFileNodeSchema: z.ZodObject<{
|
259
|
+
/** This is considered the project name */
|
260
|
+
name: z.ZodString;
|
261
|
+
/** Scripts exposed by this project. */
|
262
|
+
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
263
|
+
/** The dependencies of the project */
|
264
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
265
|
+
/** When a deployment data is available, a k8s deployment is created */
|
266
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
267
|
+
/** The name of the composite template to build in order to support this deployment */
|
268
|
+
template: z.ZodString;
|
269
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
270
|
+
app_name: z.ZodOptional<z.ZodString>;
|
271
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
272
|
+
service_name: z.ZodOptional<z.ZodString>;
|
273
|
+
/** For services, the port to expose */
|
274
|
+
port: z.ZodOptional<z.ZodNumber>;
|
275
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
276
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
277
|
+
/** For cron jobs */
|
278
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
279
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
280
|
+
name: z.ZodOptional<z.ZodString>;
|
281
|
+
/** The cron schedule */
|
282
|
+
cron: z.ZodOptional<z.ZodString>;
|
283
|
+
/** The curl command to invoke. Must be an array. */
|
284
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
286
|
+
name?: string | undefined;
|
287
|
+
cron?: string | undefined;
|
288
|
+
curl?: string[] | undefined;
|
289
|
+
}, {
|
290
|
+
name?: string | undefined;
|
291
|
+
cron?: string | undefined;
|
292
|
+
curl?: string[] | undefined;
|
293
|
+
}>, "many">>;
|
294
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
295
|
+
/** The name of the container inside the prefect pod */
|
296
|
+
flow_name: z.ZodString;
|
297
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
298
|
+
script_path: z.ZodString;
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
300
|
+
flow_name: string;
|
301
|
+
script_path: string;
|
302
|
+
}, {
|
303
|
+
flow_name: string;
|
304
|
+
script_path: string;
|
305
|
+
}>, "many">>;
|
306
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
307
|
+
/** The name of the composite template to build in order to support this deployment */
|
308
|
+
template: z.ZodString;
|
309
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
310
|
+
app_name: z.ZodOptional<z.ZodString>;
|
311
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
312
|
+
service_name: z.ZodOptional<z.ZodString>;
|
313
|
+
/** For services, the port to expose */
|
314
|
+
port: z.ZodOptional<z.ZodNumber>;
|
315
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
316
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
317
|
+
/** For cron jobs */
|
318
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
319
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
320
|
+
name: z.ZodOptional<z.ZodString>;
|
321
|
+
/** The cron schedule */
|
322
|
+
cron: z.ZodOptional<z.ZodString>;
|
323
|
+
/** The curl command to invoke. Must be an array. */
|
324
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
326
|
+
name?: string | undefined;
|
327
|
+
cron?: string | undefined;
|
328
|
+
curl?: string[] | undefined;
|
329
|
+
}, {
|
330
|
+
name?: string | undefined;
|
331
|
+
cron?: string | undefined;
|
332
|
+
curl?: string[] | undefined;
|
333
|
+
}>, "many">>;
|
334
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
335
|
+
/** The name of the container inside the prefect pod */
|
336
|
+
flow_name: z.ZodString;
|
337
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
338
|
+
script_path: z.ZodString;
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
340
|
+
flow_name: string;
|
341
|
+
script_path: string;
|
342
|
+
}, {
|
343
|
+
flow_name: string;
|
344
|
+
script_path: string;
|
345
|
+
}>, "many">>;
|
346
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
347
|
+
/** The name of the composite template to build in order to support this deployment */
|
348
|
+
template: z.ZodString;
|
349
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
350
|
+
app_name: z.ZodOptional<z.ZodString>;
|
351
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
352
|
+
service_name: z.ZodOptional<z.ZodString>;
|
353
|
+
/** For services, the port to expose */
|
354
|
+
port: z.ZodOptional<z.ZodNumber>;
|
355
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
356
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
357
|
+
/** For cron jobs */
|
358
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
359
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
360
|
+
name: z.ZodOptional<z.ZodString>;
|
361
|
+
/** The cron schedule */
|
362
|
+
cron: z.ZodOptional<z.ZodString>;
|
363
|
+
/** The curl command to invoke. Must be an array. */
|
364
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
366
|
+
name?: string | undefined;
|
367
|
+
cron?: string | undefined;
|
368
|
+
curl?: string[] | undefined;
|
369
|
+
}, {
|
370
|
+
name?: string | undefined;
|
371
|
+
cron?: string | undefined;
|
372
|
+
curl?: string[] | undefined;
|
373
|
+
}>, "many">>;
|
374
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
375
|
+
/** The name of the container inside the prefect pod */
|
376
|
+
flow_name: z.ZodString;
|
377
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
378
|
+
script_path: z.ZodString;
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
380
|
+
flow_name: string;
|
381
|
+
script_path: string;
|
382
|
+
}, {
|
383
|
+
flow_name: string;
|
384
|
+
script_path: string;
|
385
|
+
}>, "many">>;
|
386
|
+
}, z.ZodAny, "strip">>>;
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
388
|
+
name: string;
|
389
|
+
scripts?: Record<string, string> | undefined;
|
390
|
+
dependencies?: Record<string, string> | undefined;
|
391
|
+
deployment?: z.objectOutputType<{
|
392
|
+
/** The name of the composite template to build in order to support this deployment */
|
393
|
+
template: z.ZodString;
|
394
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
395
|
+
app_name: z.ZodOptional<z.ZodString>;
|
396
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
397
|
+
service_name: z.ZodOptional<z.ZodString>;
|
398
|
+
/** For services, the port to expose */
|
399
|
+
port: z.ZodOptional<z.ZodNumber>;
|
400
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
401
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
402
|
+
/** For cron jobs */
|
403
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
404
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
405
|
+
name: z.ZodOptional<z.ZodString>;
|
406
|
+
/** The cron schedule */
|
407
|
+
cron: z.ZodOptional<z.ZodString>;
|
408
|
+
/** The curl command to invoke. Must be an array. */
|
409
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
411
|
+
name?: string | undefined;
|
412
|
+
cron?: string | undefined;
|
413
|
+
curl?: string[] | undefined;
|
414
|
+
}, {
|
415
|
+
name?: string | undefined;
|
416
|
+
cron?: string | undefined;
|
417
|
+
curl?: string[] | undefined;
|
418
|
+
}>, "many">>;
|
419
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
420
|
+
/** The name of the container inside the prefect pod */
|
421
|
+
flow_name: z.ZodString;
|
422
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
423
|
+
script_path: z.ZodString;
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
425
|
+
flow_name: string;
|
426
|
+
script_path: string;
|
427
|
+
}, {
|
428
|
+
flow_name: string;
|
429
|
+
script_path: string;
|
430
|
+
}>, "many">>;
|
431
|
+
}, z.ZodAny, "strip"> | undefined;
|
432
|
+
}, {
|
433
|
+
name: string;
|
434
|
+
scripts?: Record<string, string> | undefined;
|
435
|
+
dependencies?: Record<string, string> | undefined;
|
436
|
+
deployment?: z.objectInputType<{
|
437
|
+
/** The name of the composite template to build in order to support this deployment */
|
438
|
+
template: z.ZodString;
|
439
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
440
|
+
app_name: z.ZodOptional<z.ZodString>;
|
441
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
442
|
+
service_name: z.ZodOptional<z.ZodString>;
|
443
|
+
/** For services, the port to expose */
|
444
|
+
port: z.ZodOptional<z.ZodNumber>;
|
445
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
446
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
447
|
+
/** For cron jobs */
|
448
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
449
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
450
|
+
name: z.ZodOptional<z.ZodString>;
|
451
|
+
/** The cron schedule */
|
452
|
+
cron: z.ZodOptional<z.ZodString>;
|
453
|
+
/** The curl command to invoke. Must be an array. */
|
454
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
455
|
+
}, "strip", z.ZodTypeAny, {
|
456
|
+
name?: string | undefined;
|
457
|
+
cron?: string | undefined;
|
458
|
+
curl?: string[] | undefined;
|
459
|
+
}, {
|
460
|
+
name?: string | undefined;
|
461
|
+
cron?: string | undefined;
|
462
|
+
curl?: string[] | undefined;
|
463
|
+
}>, "many">>;
|
464
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
465
|
+
/** The name of the container inside the prefect pod */
|
466
|
+
flow_name: z.ZodString;
|
467
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
468
|
+
script_path: z.ZodString;
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
470
|
+
flow_name: string;
|
471
|
+
script_path: string;
|
472
|
+
}, {
|
473
|
+
flow_name: string;
|
474
|
+
script_path: string;
|
475
|
+
}>, "many">>;
|
476
|
+
}, z.ZodAny, "strip"> | undefined;
|
477
|
+
}>;
|
478
|
+
export type PackageFileNode = z.infer<typeof packageFileNodeSchema>;
|
479
|
+
export declare const packageFilePythonSchema: z.ZodObject<{
|
480
|
+
project: z.ZodObject<{
|
481
|
+
name: z.ZodString;
|
482
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
484
|
+
name: string;
|
485
|
+
dependencies?: string[] | undefined;
|
486
|
+
}, {
|
487
|
+
name: string;
|
488
|
+
dependencies?: string[] | undefined;
|
489
|
+
}>;
|
490
|
+
tool: z.ZodOptional<z.ZodObject<{
|
491
|
+
devops: z.ZodOptional<z.ZodObject<{
|
492
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
493
|
+
/** The name of the composite template to build in order to support this deployment */
|
494
|
+
template: z.ZodString;
|
495
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
496
|
+
app_name: z.ZodOptional<z.ZodString>;
|
497
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
498
|
+
service_name: z.ZodOptional<z.ZodString>;
|
499
|
+
/** For services, the port to expose */
|
500
|
+
port: z.ZodOptional<z.ZodNumber>;
|
501
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
502
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
503
|
+
/** For cron jobs */
|
504
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
505
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
506
|
+
name: z.ZodOptional<z.ZodString>;
|
507
|
+
/** The cron schedule */
|
508
|
+
cron: z.ZodOptional<z.ZodString>;
|
509
|
+
/** The curl command to invoke. Must be an array. */
|
510
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
511
|
+
}, "strip", z.ZodTypeAny, {
|
512
|
+
name?: string | undefined;
|
513
|
+
cron?: string | undefined;
|
514
|
+
curl?: string[] | undefined;
|
515
|
+
}, {
|
516
|
+
name?: string | undefined;
|
517
|
+
cron?: string | undefined;
|
518
|
+
curl?: string[] | undefined;
|
519
|
+
}>, "many">>;
|
520
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
521
|
+
/** The name of the container inside the prefect pod */
|
522
|
+
flow_name: z.ZodString;
|
523
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
524
|
+
script_path: z.ZodString;
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
526
|
+
flow_name: string;
|
527
|
+
script_path: string;
|
528
|
+
}, {
|
529
|
+
flow_name: string;
|
530
|
+
script_path: string;
|
531
|
+
}>, "many">>;
|
532
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
533
|
+
/** The name of the composite template to build in order to support this deployment */
|
534
|
+
template: z.ZodString;
|
535
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
536
|
+
app_name: z.ZodOptional<z.ZodString>;
|
537
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
538
|
+
service_name: z.ZodOptional<z.ZodString>;
|
539
|
+
/** For services, the port to expose */
|
540
|
+
port: z.ZodOptional<z.ZodNumber>;
|
541
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
542
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
543
|
+
/** For cron jobs */
|
544
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
545
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
546
|
+
name: z.ZodOptional<z.ZodString>;
|
547
|
+
/** The cron schedule */
|
548
|
+
cron: z.ZodOptional<z.ZodString>;
|
549
|
+
/** The curl command to invoke. Must be an array. */
|
550
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
552
|
+
name?: string | undefined;
|
553
|
+
cron?: string | undefined;
|
554
|
+
curl?: string[] | undefined;
|
555
|
+
}, {
|
556
|
+
name?: string | undefined;
|
557
|
+
cron?: string | undefined;
|
558
|
+
curl?: string[] | undefined;
|
559
|
+
}>, "many">>;
|
560
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
561
|
+
/** The name of the container inside the prefect pod */
|
562
|
+
flow_name: z.ZodString;
|
563
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
564
|
+
script_path: z.ZodString;
|
565
|
+
}, "strip", z.ZodTypeAny, {
|
566
|
+
flow_name: string;
|
567
|
+
script_path: string;
|
568
|
+
}, {
|
569
|
+
flow_name: string;
|
570
|
+
script_path: string;
|
571
|
+
}>, "many">>;
|
572
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
573
|
+
/** The name of the composite template to build in order to support this deployment */
|
574
|
+
template: z.ZodString;
|
575
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
576
|
+
app_name: z.ZodOptional<z.ZodString>;
|
577
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
578
|
+
service_name: z.ZodOptional<z.ZodString>;
|
579
|
+
/** For services, the port to expose */
|
580
|
+
port: z.ZodOptional<z.ZodNumber>;
|
581
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
582
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
583
|
+
/** For cron jobs */
|
584
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
585
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
586
|
+
name: z.ZodOptional<z.ZodString>;
|
587
|
+
/** The cron schedule */
|
588
|
+
cron: z.ZodOptional<z.ZodString>;
|
589
|
+
/** The curl command to invoke. Must be an array. */
|
590
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
592
|
+
name?: string | undefined;
|
593
|
+
cron?: string | undefined;
|
594
|
+
curl?: string[] | undefined;
|
595
|
+
}, {
|
596
|
+
name?: string | undefined;
|
597
|
+
cron?: string | undefined;
|
598
|
+
curl?: string[] | undefined;
|
599
|
+
}>, "many">>;
|
600
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
601
|
+
/** The name of the container inside the prefect pod */
|
602
|
+
flow_name: z.ZodString;
|
603
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
604
|
+
script_path: z.ZodString;
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
606
|
+
flow_name: string;
|
607
|
+
script_path: string;
|
608
|
+
}, {
|
609
|
+
flow_name: string;
|
610
|
+
script_path: string;
|
611
|
+
}>, "many">>;
|
612
|
+
}, z.ZodAny, "strip">>>;
|
613
|
+
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
615
|
+
scripts?: Record<string, string> | undefined;
|
616
|
+
deployment?: z.objectOutputType<{
|
617
|
+
/** The name of the composite template to build in order to support this deployment */
|
618
|
+
template: z.ZodString;
|
619
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
620
|
+
app_name: z.ZodOptional<z.ZodString>;
|
621
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
622
|
+
service_name: z.ZodOptional<z.ZodString>;
|
623
|
+
/** For services, the port to expose */
|
624
|
+
port: z.ZodOptional<z.ZodNumber>;
|
625
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
626
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
627
|
+
/** For cron jobs */
|
628
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
629
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
630
|
+
name: z.ZodOptional<z.ZodString>;
|
631
|
+
/** The cron schedule */
|
632
|
+
cron: z.ZodOptional<z.ZodString>;
|
633
|
+
/** The curl command to invoke. Must be an array. */
|
634
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
635
|
+
}, "strip", z.ZodTypeAny, {
|
636
|
+
name?: string | undefined;
|
637
|
+
cron?: string | undefined;
|
638
|
+
curl?: string[] | undefined;
|
639
|
+
}, {
|
640
|
+
name?: string | undefined;
|
641
|
+
cron?: string | undefined;
|
642
|
+
curl?: string[] | undefined;
|
643
|
+
}>, "many">>;
|
644
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
645
|
+
/** The name of the container inside the prefect pod */
|
646
|
+
flow_name: z.ZodString;
|
647
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
648
|
+
script_path: z.ZodString;
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
650
|
+
flow_name: string;
|
651
|
+
script_path: string;
|
652
|
+
}, {
|
653
|
+
flow_name: string;
|
654
|
+
script_path: string;
|
655
|
+
}>, "many">>;
|
656
|
+
}, z.ZodAny, "strip"> | undefined;
|
657
|
+
}, {
|
658
|
+
scripts?: Record<string, string> | undefined;
|
659
|
+
deployment?: z.objectInputType<{
|
660
|
+
/** The name of the composite template to build in order to support this deployment */
|
661
|
+
template: z.ZodString;
|
662
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
663
|
+
app_name: z.ZodOptional<z.ZodString>;
|
664
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
665
|
+
service_name: z.ZodOptional<z.ZodString>;
|
666
|
+
/** For services, the port to expose */
|
667
|
+
port: z.ZodOptional<z.ZodNumber>;
|
668
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
669
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
670
|
+
/** For cron jobs */
|
671
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
672
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
673
|
+
name: z.ZodOptional<z.ZodString>;
|
674
|
+
/** The cron schedule */
|
675
|
+
cron: z.ZodOptional<z.ZodString>;
|
676
|
+
/** The curl command to invoke. Must be an array. */
|
677
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
679
|
+
name?: string | undefined;
|
680
|
+
cron?: string | undefined;
|
681
|
+
curl?: string[] | undefined;
|
682
|
+
}, {
|
683
|
+
name?: string | undefined;
|
684
|
+
cron?: string | undefined;
|
685
|
+
curl?: string[] | undefined;
|
686
|
+
}>, "many">>;
|
687
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
688
|
+
/** The name of the container inside the prefect pod */
|
689
|
+
flow_name: z.ZodString;
|
690
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
691
|
+
script_path: z.ZodString;
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
693
|
+
flow_name: string;
|
694
|
+
script_path: string;
|
695
|
+
}, {
|
696
|
+
flow_name: string;
|
697
|
+
script_path: string;
|
698
|
+
}>, "many">>;
|
699
|
+
}, z.ZodAny, "strip"> | undefined;
|
700
|
+
}>>;
|
701
|
+
}, "strip", z.ZodTypeAny, {
|
702
|
+
devops?: {
|
703
|
+
scripts?: Record<string, string> | undefined;
|
704
|
+
deployment?: z.objectOutputType<{
|
705
|
+
/** The name of the composite template to build in order to support this deployment */
|
706
|
+
template: z.ZodString;
|
707
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
708
|
+
app_name: z.ZodOptional<z.ZodString>;
|
709
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
710
|
+
service_name: z.ZodOptional<z.ZodString>;
|
711
|
+
/** For services, the port to expose */
|
712
|
+
port: z.ZodOptional<z.ZodNumber>;
|
713
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
714
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
715
|
+
/** For cron jobs */
|
716
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
717
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
718
|
+
name: z.ZodOptional<z.ZodString>;
|
719
|
+
/** The cron schedule */
|
720
|
+
cron: z.ZodOptional<z.ZodString>;
|
721
|
+
/** The curl command to invoke. Must be an array. */
|
722
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
724
|
+
name?: string | undefined;
|
725
|
+
cron?: string | undefined;
|
726
|
+
curl?: string[] | undefined;
|
727
|
+
}, {
|
728
|
+
name?: string | undefined;
|
729
|
+
cron?: string | undefined;
|
730
|
+
curl?: string[] | undefined;
|
731
|
+
}>, "many">>;
|
732
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
733
|
+
/** The name of the container inside the prefect pod */
|
734
|
+
flow_name: z.ZodString;
|
735
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
736
|
+
script_path: z.ZodString;
|
737
|
+
}, "strip", z.ZodTypeAny, {
|
738
|
+
flow_name: string;
|
739
|
+
script_path: string;
|
740
|
+
}, {
|
741
|
+
flow_name: string;
|
742
|
+
script_path: string;
|
743
|
+
}>, "many">>;
|
744
|
+
}, z.ZodAny, "strip"> | undefined;
|
745
|
+
} | undefined;
|
746
|
+
}, {
|
747
|
+
devops?: {
|
748
|
+
scripts?: Record<string, string> | undefined;
|
749
|
+
deployment?: z.objectInputType<{
|
750
|
+
/** The name of the composite template to build in order to support this deployment */
|
751
|
+
template: z.ZodString;
|
752
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
753
|
+
app_name: z.ZodOptional<z.ZodString>;
|
754
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
755
|
+
service_name: z.ZodOptional<z.ZodString>;
|
756
|
+
/** For services, the port to expose */
|
757
|
+
port: z.ZodOptional<z.ZodNumber>;
|
758
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
759
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
760
|
+
/** For cron jobs */
|
761
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
762
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
763
|
+
name: z.ZodOptional<z.ZodString>;
|
764
|
+
/** The cron schedule */
|
765
|
+
cron: z.ZodOptional<z.ZodString>;
|
766
|
+
/** The curl command to invoke. Must be an array. */
|
767
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
768
|
+
}, "strip", z.ZodTypeAny, {
|
769
|
+
name?: string | undefined;
|
770
|
+
cron?: string | undefined;
|
771
|
+
curl?: string[] | undefined;
|
772
|
+
}, {
|
773
|
+
name?: string | undefined;
|
774
|
+
cron?: string | undefined;
|
775
|
+
curl?: string[] | undefined;
|
776
|
+
}>, "many">>;
|
777
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
778
|
+
/** The name of the container inside the prefect pod */
|
779
|
+
flow_name: z.ZodString;
|
780
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
781
|
+
script_path: z.ZodString;
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
783
|
+
flow_name: string;
|
784
|
+
script_path: string;
|
785
|
+
}, {
|
786
|
+
flow_name: string;
|
787
|
+
script_path: string;
|
788
|
+
}>, "many">>;
|
789
|
+
}, z.ZodAny, "strip"> | undefined;
|
790
|
+
} | undefined;
|
791
|
+
}>>;
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
793
|
+
project: {
|
794
|
+
name: string;
|
795
|
+
dependencies?: string[] | undefined;
|
796
|
+
};
|
797
|
+
tool?: {
|
798
|
+
devops?: {
|
799
|
+
scripts?: Record<string, string> | undefined;
|
800
|
+
deployment?: z.objectOutputType<{
|
801
|
+
/** The name of the composite template to build in order to support this deployment */
|
802
|
+
template: z.ZodString;
|
803
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
804
|
+
app_name: z.ZodOptional<z.ZodString>;
|
805
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
806
|
+
service_name: z.ZodOptional<z.ZodString>;
|
807
|
+
/** For services, the port to expose */
|
808
|
+
port: z.ZodOptional<z.ZodNumber>;
|
809
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
810
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
811
|
+
/** For cron jobs */
|
812
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
813
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
814
|
+
name: z.ZodOptional<z.ZodString>;
|
815
|
+
/** The cron schedule */
|
816
|
+
cron: z.ZodOptional<z.ZodString>;
|
817
|
+
/** The curl command to invoke. Must be an array. */
|
818
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
820
|
+
name?: string | undefined;
|
821
|
+
cron?: string | undefined;
|
822
|
+
curl?: string[] | undefined;
|
823
|
+
}, {
|
824
|
+
name?: string | undefined;
|
825
|
+
cron?: string | undefined;
|
826
|
+
curl?: string[] | undefined;
|
827
|
+
}>, "many">>;
|
828
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
829
|
+
/** The name of the container inside the prefect pod */
|
830
|
+
flow_name: z.ZodString;
|
831
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
832
|
+
script_path: z.ZodString;
|
833
|
+
}, "strip", z.ZodTypeAny, {
|
834
|
+
flow_name: string;
|
835
|
+
script_path: string;
|
836
|
+
}, {
|
837
|
+
flow_name: string;
|
838
|
+
script_path: string;
|
839
|
+
}>, "many">>;
|
840
|
+
}, z.ZodAny, "strip"> | undefined;
|
841
|
+
} | undefined;
|
842
|
+
} | undefined;
|
843
|
+
}, {
|
844
|
+
project: {
|
845
|
+
name: string;
|
846
|
+
dependencies?: string[] | undefined;
|
847
|
+
};
|
848
|
+
tool?: {
|
849
|
+
devops?: {
|
850
|
+
scripts?: Record<string, string> | undefined;
|
851
|
+
deployment?: z.objectInputType<{
|
852
|
+
/** The name of the composite template to build in order to support this deployment */
|
853
|
+
template: z.ZodString;
|
854
|
+
/** The name used by kubernetes objects. If ommitted, the name field from the enclosing context (e.g. package.json) is used. */
|
855
|
+
app_name: z.ZodOptional<z.ZodString>;
|
856
|
+
/** This will be the name of the internal service used for intra-cluster communication */
|
857
|
+
service_name: z.ZodOptional<z.ZodString>;
|
858
|
+
/** For services, the port to expose */
|
859
|
+
port: z.ZodOptional<z.ZodNumber>;
|
860
|
+
/** This will be the subdomain of the exposed ingress. If not provided, taken from service_name */
|
861
|
+
subdomain: z.ZodOptional<z.ZodString>;
|
862
|
+
/** For cron jobs */
|
863
|
+
cronJobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
864
|
+
/** The name of the cron job. Used to identify in k8s. Should be unique among all cron jobs. */
|
865
|
+
name: z.ZodOptional<z.ZodString>;
|
866
|
+
/** The cron schedule */
|
867
|
+
cron: z.ZodOptional<z.ZodString>;
|
868
|
+
/** The curl command to invoke. Must be an array. */
|
869
|
+
curl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
871
|
+
name?: string | undefined;
|
872
|
+
cron?: string | undefined;
|
873
|
+
curl?: string[] | undefined;
|
874
|
+
}, {
|
875
|
+
name?: string | undefined;
|
876
|
+
cron?: string | undefined;
|
877
|
+
curl?: string[] | undefined;
|
878
|
+
}>, "many">>;
|
879
|
+
prefectFlows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
880
|
+
/** The name of the container inside the prefect pod */
|
881
|
+
flow_name: z.ZodString;
|
882
|
+
/** The path to the file that runs the flow, relative to the project folder. E.g. src/data_pipeline/main.py */
|
883
|
+
script_path: z.ZodString;
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
885
|
+
flow_name: string;
|
886
|
+
script_path: string;
|
887
|
+
}, {
|
888
|
+
flow_name: string;
|
889
|
+
script_path: string;
|
890
|
+
}>, "many">>;
|
891
|
+
}, z.ZodAny, "strip"> | undefined;
|
892
|
+
} | undefined;
|
893
|
+
} | undefined;
|
894
|
+
}>;
|
895
|
+
export type PackageFilePython = z.infer<typeof packageFilePythonSchema>;
|
896
|
+
export type TemplateSharedContext = {
|
897
|
+
/** The monorepo environment */
|
898
|
+
monorepo_env: string;
|
899
|
+
/** The k8s namespace that the monorepo environment is associated with */
|
900
|
+
namespace: string;
|
901
|
+
/** The domain name associated with the monorepo environment (from constnts.yaml) */
|
902
|
+
domain_name: string;
|
903
|
+
/** The path to the image in the container registry */
|
904
|
+
image_path: string;
|
905
|
+
/** The secret name of the monorepo environment */
|
906
|
+
env_secret_name: string;
|
907
|
+
/** The name of the key inside the environment's secret that contains the base secret (constant) */
|
908
|
+
env_base_secret_key: string;
|
909
|
+
};
|
910
|
+
export type TemplateDeploymentObject = TemplateSharedContext & Deployment & {
|
911
|
+
/** Same as pkgData.name */
|
912
|
+
project_name: string;
|
913
|
+
/** The number of replicas as defined by running devops scale */
|
914
|
+
replicas: number;
|
915
|
+
};
|
916
|
+
export type TemplateDbMigrateObject = TemplateSharedContext & {
|
917
|
+
/** The name of the migration job to create */
|
918
|
+
db_migrate_job_name: string;
|
919
|
+
};
|
920
|
+
export type TemplateDebugObject = TemplateSharedContext & {
|
921
|
+
/** The name of the debug pod */
|
922
|
+
debug_pod_name: string;
|
923
|
+
};
|
924
|
+
export {};
|
925
|
+
//# sourceMappingURL=index.d.ts.map
|