@xemahq/xema 0.14.0 → 0.15.0
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 +23 -2
- package/dist/assets/appliance-base/distribution.lock.json +5144 -0
- package/dist/assets/appliance-base/images.lock.json +1706 -0
- package/dist/assets/appliance-lean/distribution.lock.json +2888 -0
- package/dist/assets/appliance-lean/images.lock.json +1229 -0
- package/dist/assets/boot-graph.json +339 -29
- package/dist/assets/cloud/distribution.lock.json +5278 -0
- package/dist/assets/cloud/images.lock.json +1713 -0
- package/dist/assets/core/distribution.lock.json +1802 -125
- package/dist/assets/core/images.lock.json +1175 -235
- package/dist/assets/distribution-assets.manifest.json +147 -0
- package/dist/assets/keycloak/realm-xema.json +412 -0
- package/dist/assets/minimal/distribution.lock.json +2710 -0
- package/dist/assets/minimal/images.lock.json +1149 -0
- package/dist/assets/oss/distribution.lock.json +2438 -226
- package/dist/assets/oss/images.lock.json +1502 -618
- package/dist/assets/starter/distribution.lock.json +3422 -0
- package/dist/assets/starter/images.lock.json +1404 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/apply.js +1 -1
- package/dist/commands/apply.js.map +1 -1
- package/dist/commands/biome.d.ts.map +1 -1
- package/dist/commands/biome.js +84 -7
- package/dist/commands/biome.js.map +1 -1
- package/dist/commands/canopy.js +1 -1
- package/dist/commands/canopy.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +27 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/dist.d.ts +13 -0
- package/dist/commands/dist.d.ts.map +1 -1
- package/dist/commands/dist.js +50 -10
- package/dist/commands/dist.js.map +1 -1
- package/dist/commands/doctor.d.ts +25 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +422 -18
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts +10 -0
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +81 -41
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.js +1 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/import.js +1 -1
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +56 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/installation.d.ts.map +1 -1
- package/dist/commands/installation.js +169 -12
- package/dist/commands/installation.js.map +1 -1
- package/dist/commands/license.d.ts +3 -0
- package/dist/commands/license.d.ts.map +1 -0
- package/dist/commands/license.js +97 -0
- package/dist/commands/license.js.map +1 -0
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +127 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logs.d.ts +21 -0
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +131 -22
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/objects.js +2 -2
- package/dist/commands/objects.js.map +1 -1
- package/dist/commands/plan.js +1 -1
- package/dist/commands/plan.js.map +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +39 -6
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/shell.js +1 -1
- package/dist/commands/shell.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +20 -5
- package/dist/commands/up.js.map +1 -1
- package/dist/dev/env-defaults.d.ts +1 -0
- package/dist/dev/env-defaults.d.ts.map +1 -1
- package/dist/dev/env-defaults.js +15 -6
- package/dist/dev/env-defaults.js.map +1 -1
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts +17 -0
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts.map +1 -0
- package/dist/dev/forked-worker-bootstrap-protocol.js +35 -0
- package/dist/dev/forked-worker-bootstrap-protocol.js.map +1 -0
- package/dist/dev/forked-worker-bootstrap.d.ts +18 -0
- package/dist/dev/forked-worker-bootstrap.d.ts.map +1 -0
- package/dist/dev/forked-worker-bootstrap.js +84 -0
- package/dist/dev/forked-worker-bootstrap.js.map +1 -0
- package/dist/dev/forked-worker.d.ts +14 -0
- package/dist/dev/forked-worker.d.ts.map +1 -1
- package/dist/dev/forked-worker.js +200 -33
- package/dist/dev/forked-worker.js.map +1 -1
- package/dist/lib/control-plane.d.ts +5 -1
- package/dist/lib/control-plane.d.ts.map +1 -1
- package/dist/lib/control-plane.js +56 -6
- package/dist/lib/control-plane.js.map +1 -1
- package/dist/runtime/asset-provenance.d.ts +17 -0
- package/dist/runtime/asset-provenance.d.ts.map +1 -0
- package/dist/runtime/asset-provenance.js +29 -0
- package/dist/runtime/asset-provenance.js.map +1 -0
- package/dist/runtime/auth/client-bootstrap.d.ts +11 -0
- package/dist/runtime/auth/client-bootstrap.d.ts.map +1 -0
- package/dist/runtime/auth/client-bootstrap.js +60 -0
- package/dist/runtime/auth/client-bootstrap.js.map +1 -0
- package/dist/runtime/auth/device-flow.d.ts +43 -0
- package/dist/runtime/auth/device-flow.d.ts.map +1 -0
- package/dist/runtime/auth/device-flow.js +201 -0
- package/dist/runtime/auth/device-flow.js.map +1 -0
- package/dist/runtime/auth/session-auth.d.ts +8 -0
- package/dist/runtime/auth/session-auth.d.ts.map +1 -0
- package/dist/runtime/auth/session-auth.js +43 -0
- package/dist/runtime/auth/session-auth.js.map +1 -0
- package/dist/runtime/auth/session-store.d.ts +19 -0
- package/dist/runtime/auth/session-store.d.ts.map +1 -0
- package/dist/runtime/auth/session-store.js +83 -0
- package/dist/runtime/auth/session-store.js.map +1 -0
- package/dist/runtime/auth/token-claims.d.ts +2 -0
- package/dist/runtime/auth/token-claims.d.ts.map +1 -0
- package/dist/runtime/auth/token-claims.js +45 -0
- package/dist/runtime/auth/token-claims.js.map +1 -0
- package/dist/runtime/biome-provenance.d.ts +26 -0
- package/dist/runtime/biome-provenance.d.ts.map +1 -0
- package/dist/runtime/biome-provenance.js +70 -0
- package/dist/runtime/biome-provenance.js.map +1 -0
- package/dist/runtime/biome-publish.d.ts +14 -0
- package/dist/runtime/biome-publish.d.ts.map +1 -1
- package/dist/runtime/biome-publish.js +69 -5
- package/dist/runtime/biome-publish.js.map +1 -1
- package/dist/runtime/biome-scaffold.d.ts.map +1 -1
- package/dist/runtime/biome-scaffold.js +0 -2
- package/dist/runtime/biome-scaffold.js.map +1 -1
- package/dist/runtime/biome-validate.d.ts.map +1 -1
- package/dist/runtime/biome-validate.js +4 -2
- package/dist/runtime/biome-validate.js.map +1 -1
- package/dist/runtime/cleanup.d.ts +10 -0
- package/dist/runtime/cleanup.d.ts.map +1 -0
- package/dist/runtime/cleanup.js +35 -0
- package/dist/runtime/cleanup.js.map +1 -0
- package/dist/runtime/config/init-presets.d.ts.map +1 -1
- package/dist/runtime/config/init-presets.js +6 -3
- package/dist/runtime/config/init-presets.js.map +1 -1
- package/dist/runtime/distribution/available-biome.d.ts.map +1 -1
- package/dist/runtime/distribution/available-biome.js +2 -0
- package/dist/runtime/distribution/available-biome.js.map +1 -1
- package/dist/runtime/distribution/compose.d.ts +2 -1
- package/dist/runtime/distribution/compose.d.ts.map +1 -1
- package/dist/runtime/distribution/compose.js +1 -0
- package/dist/runtime/distribution/compose.js.map +1 -1
- package/dist/runtime/env-seeder.d.ts.map +1 -1
- package/dist/runtime/env-seeder.js +44 -13
- package/dist/runtime/env-seeder.js.map +1 -1
- package/dist/runtime/foreground.d.ts +6 -1
- package/dist/runtime/foreground.d.ts.map +1 -1
- package/dist/runtime/foreground.js +30 -7
- package/dist/runtime/foreground.js.map +1 -1
- package/dist/runtime/infra/infra-catalog.d.ts +33 -1
- package/dist/runtime/infra/infra-catalog.d.ts.map +1 -1
- package/dist/runtime/infra/infra-catalog.js +201 -10
- package/dist/runtime/infra/infra-catalog.js.map +1 -1
- package/dist/runtime/infra/infra-environment.d.ts +10 -0
- package/dist/runtime/infra/infra-environment.d.ts.map +1 -0
- package/dist/runtime/infra/infra-environment.js +76 -0
- package/dist/runtime/infra/infra-environment.js.map +1 -0
- package/dist/runtime/infra/infra-plan.d.ts +2 -1
- package/dist/runtime/infra/infra-plan.d.ts.map +1 -1
- package/dist/runtime/infra/infra-plan.js +10 -0
- package/dist/runtime/infra/infra-plan.js.map +1 -1
- package/dist/runtime/infra/infra-runner.d.ts +12 -2
- package/dist/runtime/infra/infra-runner.d.ts.map +1 -1
- package/dist/runtime/infra/infra-runner.js +194 -73
- package/dist/runtime/infra/infra-runner.js.map +1 -1
- package/dist/runtime/infra/keycloak-realm.d.ts +25 -0
- package/dist/runtime/infra/keycloak-realm.d.ts.map +1 -0
- package/dist/runtime/infra/keycloak-realm.js +116 -0
- package/dist/runtime/infra/keycloak-realm.js.map +1 -0
- package/dist/runtime/infra/postgres-endpoint.d.ts +8 -0
- package/dist/runtime/infra/postgres-endpoint.d.ts.map +1 -0
- package/dist/runtime/infra/postgres-endpoint.js +21 -0
- package/dist/runtime/infra/postgres-endpoint.js.map +1 -0
- package/dist/runtime/installation/compiler.d.ts +104 -27
- package/dist/runtime/installation/compiler.d.ts.map +1 -1
- package/dist/runtime/installation/compiler.js +361 -95
- package/dist/runtime/installation/compiler.js.map +1 -1
- package/dist/runtime/installation/contract.d.ts +234 -63
- package/dist/runtime/installation/contract.d.ts.map +1 -1
- package/dist/runtime/installation/contract.js +396 -74
- package/dist/runtime/installation/contract.js.map +1 -1
- package/dist/runtime/installation/current-launcher-renderer.d.ts +12 -0
- package/dist/runtime/installation/current-launcher-renderer.d.ts.map +1 -0
- package/dist/runtime/installation/current-launcher-renderer.js +123 -0
- package/dist/runtime/installation/current-launcher-renderer.js.map +1 -0
- package/dist/runtime/installation/diff.d.ts +15 -0
- package/dist/runtime/installation/diff.d.ts.map +1 -1
- package/dist/runtime/installation/diff.js +66 -29
- package/dist/runtime/installation/diff.js.map +1 -1
- package/dist/runtime/installation/format.js +4 -4
- package/dist/runtime/installation/format.js.map +1 -1
- package/dist/runtime/installation/from-current-config.d.ts +3 -2
- package/dist/runtime/installation/from-current-config.d.ts.map +1 -1
- package/dist/runtime/installation/from-current-config.js +214 -44
- package/dist/runtime/installation/from-current-config.js.map +1 -1
- package/dist/runtime/installation/helm-release-readiness.d.ts +9 -0
- package/dist/runtime/installation/helm-release-readiness.d.ts.map +1 -0
- package/dist/runtime/installation/helm-release-readiness.js +97 -0
- package/dist/runtime/installation/helm-release-readiness.js.map +1 -0
- package/dist/runtime/installation/helm-release.d.ts +24 -0
- package/dist/runtime/installation/helm-release.d.ts.map +1 -0
- package/dist/runtime/installation/helm-release.js +96 -0
- package/dist/runtime/installation/helm-release.js.map +1 -0
- package/dist/runtime/installation/index.d.ts +9 -0
- package/dist/runtime/installation/index.d.ts.map +1 -1
- package/dist/runtime/installation/index.js +9 -0
- package/dist/runtime/installation/index.js.map +1 -1
- package/dist/runtime/installation/json-schema.d.ts +4 -0
- package/dist/runtime/installation/json-schema.d.ts.map +1 -0
- package/dist/runtime/installation/json-schema.js +16 -0
- package/dist/runtime/installation/json-schema.js.map +1 -0
- package/dist/runtime/installation/kubernetes-readiness.d.ts +60 -0
- package/dist/runtime/installation/kubernetes-readiness.d.ts.map +1 -0
- package/dist/runtime/installation/kubernetes-readiness.js +384 -0
- package/dist/runtime/installation/kubernetes-readiness.js.map +1 -0
- package/dist/runtime/installation/lifecycle.d.ts +6 -4
- package/dist/runtime/installation/lifecycle.d.ts.map +1 -1
- package/dist/runtime/installation/lifecycle.js +94 -7
- package/dist/runtime/installation/lifecycle.js.map +1 -1
- package/dist/runtime/installation/readiness-proof.d.ts +72 -0
- package/dist/runtime/installation/readiness-proof.d.ts.map +1 -0
- package/dist/runtime/installation/readiness-proof.js +142 -0
- package/dist/runtime/installation/readiness-proof.js.map +1 -0
- package/dist/runtime/installation/readiness.d.ts +21 -0
- package/dist/runtime/installation/readiness.d.ts.map +1 -0
- package/dist/runtime/installation/readiness.js +418 -0
- package/dist/runtime/installation/readiness.js.map +1 -0
- package/dist/runtime/installation/setup-profile.d.ts +8 -0
- package/dist/runtime/installation/setup-profile.d.ts.map +1 -0
- package/dist/runtime/installation/setup-profile.js +41 -0
- package/dist/runtime/installation/setup-profile.js.map +1 -0
- package/dist/runtime/installation/setup-renderer.d.ts +31 -0
- package/dist/runtime/installation/setup-renderer.d.ts.map +1 -0
- package/dist/runtime/installation/setup-renderer.js +238 -0
- package/dist/runtime/installation/setup-renderer.js.map +1 -0
- package/dist/runtime/installation/state-store.d.ts +11 -3
- package/dist/runtime/installation/state-store.d.ts.map +1 -1
- package/dist/runtime/installation/state-store.js +157 -37
- package/dist/runtime/installation/state-store.js.map +1 -1
- package/dist/runtime/installation/status.d.ts +6 -12
- package/dist/runtime/installation/status.d.ts.map +1 -1
- package/dist/runtime/installation/status.js +28 -114
- package/dist/runtime/installation/status.js.map +1 -1
- package/dist/runtime/installation/support-bundle.d.ts.map +1 -1
- package/dist/runtime/installation/support-bundle.js +18 -3
- package/dist/runtime/installation/support-bundle.js.map +1 -1
- package/dist/runtime/installation/to-current-config.d.ts +4 -0
- package/dist/runtime/installation/to-current-config.d.ts.map +1 -0
- package/dist/runtime/installation/to-current-config.js +171 -0
- package/dist/runtime/installation/to-current-config.js.map +1 -0
- package/dist/runtime/installation/validation.d.ts.map +1 -1
- package/dist/runtime/installation/validation.js +78 -0
- package/dist/runtime/installation/validation.js.map +1 -1
- package/dist/runtime/installation/validators/common.d.ts.map +1 -1
- package/dist/runtime/installation/validators/common.js +7 -4
- package/dist/runtime/installation/validators/common.js.map +1 -1
- package/dist/runtime/installation/validators/infrastructure.d.ts.map +1 -1
- package/dist/runtime/installation/validators/infrastructure.js +20 -2
- package/dist/runtime/installation/validators/infrastructure.js.map +1 -1
- package/dist/runtime/installation/validators/operational.d.ts.map +1 -1
- package/dist/runtime/installation/validators/operational.js +44 -102
- package/dist/runtime/installation/validators/operational.js.map +1 -1
- package/dist/runtime/installation/validators/profile.d.ts.map +1 -1
- package/dist/runtime/installation/validators/profile.js +53 -51
- package/dist/runtime/installation/validators/profile.js.map +1 -1
- package/dist/runtime/installation/validators/secrets.d.ts.map +1 -1
- package/dist/runtime/installation/validators/secrets.js +44 -27
- package/dist/runtime/installation/validators/secrets.js.map +1 -1
- package/dist/runtime/launch.d.ts +10 -0
- package/dist/runtime/launch.d.ts.map +1 -1
- package/dist/runtime/launch.js +123 -18
- package/dist/runtime/launch.js.map +1 -1
- package/dist/runtime/license/license-clock.d.ts +12 -0
- package/dist/runtime/license/license-clock.d.ts.map +1 -0
- package/dist/runtime/license/license-clock.js +57 -0
- package/dist/runtime/license/license-clock.js.map +1 -0
- package/dist/runtime/license/license-report.d.ts +19 -0
- package/dist/runtime/license/license-report.d.ts.map +1 -0
- package/dist/runtime/license/license-report.js +105 -0
- package/dist/runtime/license/license-report.js.map +1 -0
- package/dist/runtime/license/license-store.d.ts +5 -0
- package/dist/runtime/license/license-store.d.ts.map +1 -0
- package/dist/runtime/license/license-store.js +11 -0
- package/dist/runtime/license/license-store.js.map +1 -0
- package/dist/runtime/license/registry-credential.d.ts +26 -0
- package/dist/runtime/license/registry-credential.d.ts.map +1 -0
- package/dist/runtime/license/registry-credential.js +94 -0
- package/dist/runtime/license/registry-credential.js.map +1 -0
- package/dist/runtime/license/resolve-license.d.ts +30 -0
- package/dist/runtime/license/resolve-license.d.ts.map +1 -0
- package/dist/runtime/license/resolve-license.js +73 -0
- package/dist/runtime/license/resolve-license.js.map +1 -0
- package/dist/runtime/license/store-license.d.ts +18 -0
- package/dist/runtime/license/store-license.d.ts.map +1 -0
- package/dist/runtime/license/store-license.js +26 -0
- package/dist/runtime/license/store-license.js.map +1 -0
- package/dist/runtime/lock-loader.d.ts +3 -6
- package/dist/runtime/lock-loader.d.ts.map +1 -1
- package/dist/runtime/lock-loader.js +26 -20
- package/dist/runtime/lock-loader.js.map +1 -1
- package/dist/runtime/native-process-group.d.ts +46 -0
- package/dist/runtime/native-process-group.d.ts.map +1 -0
- package/dist/runtime/native-process-group.js +390 -0
- package/dist/runtime/native-process-group.js.map +1 -0
- package/dist/runtime/paths.d.ts +1 -0
- package/dist/runtime/paths.d.ts.map +1 -1
- package/dist/runtime/paths.js +1 -0
- package/dist/runtime/paths.js.map +1 -1
- package/dist/runtime/roster.d.ts +4 -3
- package/dist/runtime/roster.d.ts.map +1 -1
- package/dist/runtime/roster.js +17 -5
- package/dist/runtime/roster.js.map +1 -1
- package/dist/runtime/run-manifest.d.ts +34 -5
- package/dist/runtime/run-manifest.d.ts.map +1 -1
- package/dist/runtime/run-manifest.js +434 -120
- package/dist/runtime/run-manifest.js.map +1 -1
- package/dist/runtime/runner/container-preflight.d.ts +77 -0
- package/dist/runtime/runner/container-preflight.d.ts.map +1 -0
- package/dist/runtime/runner/container-preflight.js +360 -0
- package/dist/runtime/runner/container-preflight.js.map +1 -0
- package/dist/runtime/runner/container-runner.d.ts +8 -0
- package/dist/runtime/runner/container-runner.d.ts.map +1 -1
- package/dist/runtime/runner/container-runner.js +93 -16
- package/dist/runtime/runner/container-runner.js.map +1 -1
- package/dist/runtime/runner/docker-cli.d.ts +30 -2
- package/dist/runtime/runner/docker-cli.d.ts.map +1 -1
- package/dist/runtime/runner/docker-cli.js +275 -11
- package/dist/runtime/runner/docker-cli.js.map +1 -1
- package/dist/runtime/runner/health-probe.d.ts +1 -0
- package/dist/runtime/runner/health-probe.d.ts.map +1 -1
- package/dist/runtime/runner/health-probe.js +3 -2
- package/dist/runtime/runner/health-probe.js.map +1 -1
- package/dist/runtime/runner/helm-cli.d.ts +19 -1
- package/dist/runtime/runner/helm-cli.d.ts.map +1 -1
- package/dist/runtime/runner/helm-cli.js +76 -8
- package/dist/runtime/runner/helm-cli.js.map +1 -1
- package/dist/runtime/runner/helm-runner.d.ts +3 -0
- package/dist/runtime/runner/helm-runner.d.ts.map +1 -1
- package/dist/runtime/runner/helm-runner.js +23 -7
- package/dist/runtime/runner/helm-runner.js.map +1 -1
- package/dist/runtime/runner/host-platform.d.ts +39 -0
- package/dist/runtime/runner/host-platform.d.ts.map +1 -0
- package/dist/runtime/runner/host-platform.js +136 -0
- package/dist/runtime/runner/host-platform.js.map +1 -0
- package/dist/runtime/runner/kube-cli.d.ts +23 -0
- package/dist/runtime/runner/kube-cli.d.ts.map +1 -0
- package/dist/runtime/runner/kube-cli.js +112 -0
- package/dist/runtime/runner/kube-cli.js.map +1 -0
- package/dist/runtime/runner/native-runner.d.ts.map +1 -1
- package/dist/runtime/runner/native-runner.js +27 -3
- package/dist/runtime/runner/native-runner.js.map +1 -1
- package/dist/runtime/runner/service-runner.d.ts +5 -0
- package/dist/runtime/runner/service-runner.d.ts.map +1 -1
- package/dist/runtime/runner/service-runner.js.map +1 -1
- package/dist/runtime/runner/stream-outcome.d.ts +7 -0
- package/dist/runtime/runner/stream-outcome.d.ts.map +1 -0
- package/dist/runtime/runner/stream-outcome.js +13 -0
- package/dist/runtime/runner/stream-outcome.js.map +1 -0
- package/dist/runtime/secrets/managed-local-cipher.d.ts +18 -0
- package/dist/runtime/secrets/managed-local-cipher.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-cipher.js +110 -0
- package/dist/runtime/secrets/managed-local-cipher.js.map +1 -0
- package/dist/runtime/secrets/managed-local-files.d.ts +4 -0
- package/dist/runtime/secrets/managed-local-files.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-files.js +132 -0
- package/dist/runtime/secrets/managed-local-files.js.map +1 -0
- package/dist/runtime/secrets/managed-local-key-provider.d.ts +27 -0
- package/dist/runtime/secrets/managed-local-key-provider.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-key-provider.js +144 -0
- package/dist/runtime/secrets/managed-local-key-provider.js.map +1 -0
- package/dist/runtime/secrets/managed-local-secret-store.d.ts +18 -0
- package/dist/runtime/secrets/managed-local-secret-store.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-secret-store.js +82 -0
- package/dist/runtime/secrets/managed-local-secret-store.js.map +1 -0
- package/dist/runtime/secrets/managed-local-store.d.ts +7 -0
- package/dist/runtime/secrets/managed-local-store.d.ts.map +1 -1
- package/dist/runtime/secrets/managed-local-store.js +46 -127
- package/dist/runtime/secrets/managed-local-store.js.map +1 -1
- package/dist/runtime/sources/credentials.d.ts +2 -0
- package/dist/runtime/sources/credentials.d.ts.map +1 -1
- package/dist/runtime/sources/credentials.js +49 -0
- package/dist/runtime/sources/credentials.js.map +1 -1
- package/dist/runtime/sources/kinds/distribution.js +3 -3
- package/dist/runtime/sources/kinds/distribution.js.map +1 -1
- package/dist/runtime/sources/manifest-walk.d.ts +1 -0
- package/dist/runtime/sources/manifest-walk.d.ts.map +1 -1
- package/dist/runtime/sources/manifest-walk.js +16 -11
- package/dist/runtime/sources/manifest-walk.js.map +1 -1
- package/dist/runtime/sources/schema.d.ts.map +1 -1
- package/dist/runtime/sources/schema.js +51 -3
- package/dist/runtime/sources/schema.js.map +1 -1
- package/dist/runtime/store-client.d.ts +1 -1
- package/dist/runtime/store-client.d.ts.map +1 -1
- package/dist/runtime/store-client.js +2 -1
- package/dist/runtime/store-client.js.map +1 -1
- package/dist/runtime/store-submit.d.ts +31 -0
- package/dist/runtime/store-submit.d.ts.map +1 -0
- package/dist/runtime/store-submit.js +77 -0
- package/dist/runtime/store-submit.js.map +1 -0
- package/dist/runtime/supervisor.d.ts +12 -0
- package/dist/runtime/supervisor.d.ts.map +1 -1
- package/dist/runtime/supervisor.js +141 -26
- package/dist/runtime/supervisor.js.map +1 -1
- package/package.json +20 -29
- package/LICENSE +0 -176
- package/dist/lib/command-registry.d.ts +0 -5
- package/dist/lib/command-registry.d.ts.map +0 -1
- package/dist/lib/command-registry.js +0 -17
- package/dist/lib/command-registry.js.map +0 -1
|
@@ -7,8 +7,8 @@ const url_security_1 = require("../../secrets/url-security");
|
|
|
7
7
|
const diagnostics_1 = require("../diagnostics");
|
|
8
8
|
function validateInfrastructure(installation) {
|
|
9
9
|
const issues = [];
|
|
10
|
-
for (const binding of installation.infrastructure) {
|
|
11
|
-
const path = `infrastructure.${binding.component}`;
|
|
10
|
+
for (const binding of installation.spec.infrastructure) {
|
|
11
|
+
const path = `spec.infrastructure.${binding.component}`;
|
|
12
12
|
if (binding.ownership === schema_1.InfraMode.External &&
|
|
13
13
|
binding.endpoint === undefined) {
|
|
14
14
|
issues.push({
|
|
@@ -49,6 +49,24 @@ function validateInfrastructure(installation) {
|
|
|
49
49
|
if (binding.endpoint !== undefined) {
|
|
50
50
|
validateEndpoint(binding.endpoint, `${path}.endpoint`, issues);
|
|
51
51
|
}
|
|
52
|
+
if (binding.realm !== undefined &&
|
|
53
|
+
binding.component !== schema_1.InfraComponent.Keycloak) {
|
|
54
|
+
issues.push({
|
|
55
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
56
|
+
code: 'REALM_COMPONENT_INVALID',
|
|
57
|
+
path: `${path}.realm`,
|
|
58
|
+
message: 'realm is only valid for identity infrastructure',
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (binding.bucketPrefix !== undefined &&
|
|
62
|
+
binding.component !== schema_1.InfraComponent.ObjectStore) {
|
|
63
|
+
issues.push({
|
|
64
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
65
|
+
code: 'BUCKET_PREFIX_COMPONENT_INVALID',
|
|
66
|
+
path: `${path}.bucketPrefix`,
|
|
67
|
+
message: 'bucketPrefix is only valid for object-store infrastructure',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
52
70
|
}
|
|
53
71
|
return issues;
|
|
54
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/infrastructure.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"infrastructure.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/infrastructure.ts"],"names":[],"mappings":";;AAOA,wDA+EC;AAtFD,gDAAgE;AAChE,6DAA0D;AAC1D,6DAA2E;AAC3E,gDAA+E;AAI/E,SAAgB,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M,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,mCAAqB,CAAC,OAAO;YACnC,IAAI,EAAE,kBAAkB;YACxB,IAAI;YACJ,OAAO,EAAE,yBAAyB;SACnC,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,IAAI,IAAA,4CAA6B,EAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,mCAAqB,CAAC,OAAO;YACnC,IAAI,EAAE,0BAA0B;YAChC,IAAI;YACJ,OAAO,EACL,oEAAoE;SACvE,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/operational.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/operational.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,sBAAsB,GACnC,SAAS,iBAAiB,EAAE,CA+J9B"}
|
|
@@ -4,123 +4,65 @@ exports.validateOperationalPolicy = validateOperationalPolicy;
|
|
|
4
4
|
const contract_1 = require("../contract");
|
|
5
5
|
const diagnostics_1 = require("../diagnostics");
|
|
6
6
|
function validateOperationalPolicy(installation) {
|
|
7
|
-
|
|
8
|
-
...validateStorage(installation),
|
|
9
|
-
...validateCapacity(installation),
|
|
10
|
-
...validateUpgrade(installation),
|
|
11
|
-
];
|
|
12
|
-
}
|
|
13
|
-
function validateStorage(installation) {
|
|
7
|
+
const spec = installation.spec;
|
|
14
8
|
const issues = [];
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
issues.push(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
if (spec.features.selection === contract_1.FeatureSelectionMode.Explicit &&
|
|
10
|
+
spec.features.include.length === 0) {
|
|
11
|
+
issues.push(issue('FEATURE_INCLUDE_REQUIRED', 'spec.features.include', 'explicit feature selection requires at least one included roster entry', diagnostics_1.InstallationIssueKind.Unresolved));
|
|
12
|
+
}
|
|
13
|
+
if (spec.features.selection !== undefined &&
|
|
14
|
+
spec.features.selection !== contract_1.FeatureSelectionMode.Explicit &&
|
|
15
|
+
spec.features.include.length > 0) {
|
|
16
|
+
issues.push(issue('FEATURE_INCLUDE_NOT_ALLOWED', 'spec.features.include', 'feature include entries are only valid with explicit selection'));
|
|
23
17
|
}
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
issues.push(
|
|
27
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
28
|
-
code: 'EXTERNAL_STORAGE_BINDING_NOT_ALLOWED',
|
|
29
|
-
path: 'storage.externalBinding',
|
|
30
|
-
message: 'externalBinding is only valid for external storage',
|
|
31
|
-
});
|
|
18
|
+
if (spec.storage.class === contract_1.StorageClass.External &&
|
|
19
|
+
spec.storage.externalBinding === undefined) {
|
|
20
|
+
issues.push(issue('EXTERNAL_STORAGE_BINDING_REQUIRED', 'spec.storage.externalBinding', 'external storage requires a binding reference', diagnostics_1.InstallationIssueKind.Unresolved));
|
|
32
21
|
}
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
issues.push(
|
|
36
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
37
|
-
code: 'BACKUP_DESTINATION_NOT_ALLOWED',
|
|
38
|
-
path: 'storage.backup.destinationSecretRef',
|
|
39
|
-
message: 'a disabled backup policy cannot declare a destination',
|
|
40
|
-
});
|
|
22
|
+
if (spec.storage.class !== contract_1.StorageClass.External &&
|
|
23
|
+
spec.storage.externalBinding !== undefined) {
|
|
24
|
+
issues.push(issue('EXTERNAL_STORAGE_BINDING_NOT_ALLOWED', 'spec.storage.externalBinding', 'externalBinding is only valid for external storage'));
|
|
41
25
|
}
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
installation.storage.backup.mode !== contract_1.BackupMode.Continuous) {
|
|
46
|
-
issues.push({
|
|
47
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
48
|
-
code: 'REGULATED_BACKUP_REQUIRED',
|
|
49
|
-
path: 'storage.backup.mode',
|
|
50
|
-
message: 'regulated installations require continuous backup',
|
|
51
|
-
});
|
|
26
|
+
if (spec.recovery.mode === contract_1.BackupMode.Disabled &&
|
|
27
|
+
spec.recovery.destinationSecretRef !== undefined) {
|
|
28
|
+
issues.push(issue('BACKUP_DESTINATION_NOT_ALLOWED', 'spec.recovery.destinationSecretRef', 'a disabled recovery policy cannot declare a destination'));
|
|
52
29
|
}
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
issues.push(
|
|
57
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
58
|
-
code: 'REGULATED_TLS_REQUIRED',
|
|
59
|
-
path: 'domains',
|
|
60
|
-
message: 'regulated installation domains require TLS',
|
|
61
|
-
});
|
|
30
|
+
if (spec.profile === contract_1.InstallationProfile.EnterpriseRegulated &&
|
|
31
|
+
spec.recovery.mode !== undefined &&
|
|
32
|
+
spec.recovery.mode !== contract_1.BackupMode.Continuous) {
|
|
33
|
+
issues.push(issue('REGULATED_BACKUP_REQUIRED', 'spec.recovery.mode', 'enterprise-regulated installations require continuous backup'));
|
|
62
34
|
}
|
|
63
|
-
|
|
64
|
-
|
|
35
|
+
if (spec.profile === contract_1.InstallationProfile.EnterpriseRegulated &&
|
|
36
|
+
spec.domains.some((domain) => domain.tls.mode === contract_1.TlsMode.Disabled)) {
|
|
37
|
+
issues.push(issue('REGULATED_TLS_REQUIRED', 'spec.domains', 'enterprise-regulated installation domains require TLS'));
|
|
38
|
+
}
|
|
39
|
+
for (const domain of spec.domains) {
|
|
40
|
+
const path = `spec.domains.${domain.purpose}.${domain.hostname}.tls.secretRef`;
|
|
65
41
|
if (domain.tls.mode === contract_1.TlsMode.External &&
|
|
66
42
|
domain.tls.secretRef === undefined) {
|
|
67
|
-
issues.push(
|
|
68
|
-
kind: diagnostics_1.InstallationIssueKind.Unresolved,
|
|
69
|
-
code: 'EXTERNAL_TLS_SECRET_REQUIRED',
|
|
70
|
-
path,
|
|
71
|
-
message: 'external TLS requires a certificate secret reference',
|
|
72
|
-
});
|
|
43
|
+
issues.push(issue('EXTERNAL_TLS_SECRET_REQUIRED', path, 'external TLS requires a certificate secret reference', diagnostics_1.InstallationIssueKind.Unresolved));
|
|
73
44
|
}
|
|
74
45
|
if (domain.tls.mode !== contract_1.TlsMode.External &&
|
|
75
46
|
domain.tls.secretRef !== undefined) {
|
|
76
|
-
issues.push({
|
|
77
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
78
|
-
code: 'TLS_SECRET_NOT_ALLOWED',
|
|
79
|
-
path,
|
|
80
|
-
message: `a ${domain.tls.mode} TLS policy cannot declare an external certificate secret`,
|
|
81
|
-
});
|
|
47
|
+
issues.push(issue('TLS_SECRET_NOT_ALLOWED', path, `a ${domain.tls.mode} TLS policy cannot declare an external certificate secret`));
|
|
82
48
|
}
|
|
83
49
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (minReplicas !== undefined &&
|
|
89
|
-
maxReplicas !== undefined &&
|
|
90
|
-
minReplicas > maxReplicas) {
|
|
91
|
-
return [
|
|
92
|
-
{
|
|
93
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
94
|
-
code: 'CAPACITY_RANGE_INVALID',
|
|
95
|
-
path: 'capacity',
|
|
96
|
-
message: 'minReplicas cannot exceed maxReplicas',
|
|
97
|
-
},
|
|
98
|
-
];
|
|
50
|
+
if (spec.capacity.minReplicas !== undefined &&
|
|
51
|
+
spec.capacity.maxReplicas !== undefined &&
|
|
52
|
+
spec.capacity.minReplicas > spec.capacity.maxReplicas) {
|
|
53
|
+
issues.push(issue('CAPACITY_RANGE_INVALID', 'spec.capacity', 'minReplicas cannot exceed maxReplicas'));
|
|
99
54
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const { channel, releaseRef } = installation.upgrade;
|
|
104
|
-
if (channel === contract_1.UpgradeChannel.Pinned && releaseRef === undefined) {
|
|
105
|
-
return [
|
|
106
|
-
{
|
|
107
|
-
kind: diagnostics_1.InstallationIssueKind.Unresolved,
|
|
108
|
-
code: 'PINNED_RELEASE_REQUIRED',
|
|
109
|
-
path: 'upgrade.releaseRef',
|
|
110
|
-
message: 'pinned upgrade channel requires a releaseRef',
|
|
111
|
-
},
|
|
112
|
-
];
|
|
55
|
+
if (spec.upgrade.channel === contract_1.UpgradeChannel.Pinned &&
|
|
56
|
+
spec.upgrade.releaseRef === undefined) {
|
|
57
|
+
issues.push(issue('PINNED_RELEASE_REQUIRED', 'spec.upgrade.releaseRef', 'pinned upgrade channel requires a releaseRef', diagnostics_1.InstallationIssueKind.Unresolved));
|
|
113
58
|
}
|
|
114
|
-
if (channel !== contract_1.UpgradeChannel.Pinned &&
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
118
|
-
code: 'RELEASE_REF_NOT_ALLOWED',
|
|
119
|
-
path: 'upgrade.releaseRef',
|
|
120
|
-
message: 'releaseRef is only valid for the pinned upgrade channel',
|
|
121
|
-
},
|
|
122
|
-
];
|
|
59
|
+
if (spec.upgrade.channel !== contract_1.UpgradeChannel.Pinned &&
|
|
60
|
+
spec.upgrade.releaseRef !== undefined) {
|
|
61
|
+
issues.push(issue('RELEASE_REF_NOT_ALLOWED', 'spec.upgrade.releaseRef', 'releaseRef is only valid for the pinned upgrade channel'));
|
|
123
62
|
}
|
|
124
|
-
return
|
|
63
|
+
return issues;
|
|
64
|
+
}
|
|
65
|
+
function issue(code, path, message, kind = diagnostics_1.InstallationIssueKind.Invalid) {
|
|
66
|
+
return { kind, code, path, message };
|
|
125
67
|
}
|
|
126
68
|
//# sourceMappingURL=operational.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/operational.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"operational.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/operational.ts"],"names":[],"mappings":";;AAWA,8DAiKC;AA5KD,0CAQqB;AACrB,gDAA+E;AAE/E,SAAgB,yBAAyB,CACvC,YAAoC;IAEpC,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IAC/B,MAAM,MAAM,GAAwB,EAAE,CAAC;IAEvC,IACE,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,+BAAoB,CAAC,QAAQ;QACzD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAClC,CAAC;QACD,MAAM,CAAC,IAAI,CACT,KAAK,CACH,0BAA0B,EAC1B,uBAAuB,EACvB,wEAAwE,EACxE,mCAAqB,CAAC,UAAU,CACjC,CACF,CAAC;IACJ,CAAC;IACD,IACE,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,SAAS;QACrC,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,+BAAoB,CAAC,QAAQ;QACzD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAChC,CAAC;QACD,MAAM,CAAC,IAAI,CACT,KAAK,CACH,6BAA6B,EAC7B,uBAAuB,EACvB,gEAAgE,CACjE,CACF,CAAC;IACJ,CAAC;IACD,IACE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,uBAAY,CAAC,QAAQ;QAC5C,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,SAAS,EAC1C,CAAC;QACD,MAAM,CAAC,IAAI,CACT,KAAK,CACH,mCAAmC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CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,EACrC,CAAC;QACD,MAAM,CAAC,IAAI,CACT,KAAK,CACH,yBAAyB,EACzB,yBAAyB,EACzB,yDAAyD,CAC1D,CACF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,KAAK,CACZ,IAAY,EACZ,IAAY,EACZ,OAAe,EACf,IAAI,GAAG,mCAAqB,CAAC,OAAO;IAEpC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/profile.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AA4B/E,wBAAgB,eAAe,CAC7B,YAAY,EAAE,sBAAsB,GACnC,SAAS,iBAAiB,EAAE,CA2D9B"}
|
|
@@ -3,76 +3,78 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validateProfile = validateProfile;
|
|
4
4
|
const contract_1 = require("../contract");
|
|
5
5
|
const diagnostics_1 = require("../diagnostics");
|
|
6
|
+
const PROFILE_TARGETS = {
|
|
7
|
+
[contract_1.InstallationProfile.Developer]: [contract_1.InstallationTargetKind.LocalMachine],
|
|
8
|
+
[contract_1.InstallationProfile.Starter]: [
|
|
9
|
+
contract_1.InstallationTargetKind.LocalMachine,
|
|
10
|
+
contract_1.InstallationTargetKind.SingleNodeKubernetes,
|
|
11
|
+
],
|
|
12
|
+
[contract_1.InstallationProfile.SingleNodeProduction]: [
|
|
13
|
+
contract_1.InstallationTargetKind.SingleNodeKubernetes,
|
|
14
|
+
contract_1.InstallationTargetKind.CustomerKubernetes,
|
|
15
|
+
],
|
|
16
|
+
[contract_1.InstallationProfile.BusinessHa]: [
|
|
17
|
+
contract_1.InstallationTargetKind.CustomerKubernetes,
|
|
18
|
+
contract_1.InstallationTargetKind.HostedCell,
|
|
19
|
+
],
|
|
20
|
+
[contract_1.InstallationProfile.EnterpriseRegulated]: [
|
|
21
|
+
contract_1.InstallationTargetKind.CustomerKubernetes,
|
|
22
|
+
contract_1.InstallationTargetKind.HostedCell,
|
|
23
|
+
],
|
|
24
|
+
[contract_1.InstallationProfile.HostedCell]: [
|
|
25
|
+
contract_1.InstallationTargetKind.CustomerKubernetes,
|
|
26
|
+
contract_1.InstallationTargetKind.HostedCell,
|
|
27
|
+
],
|
|
28
|
+
};
|
|
6
29
|
function validateProfile(installation) {
|
|
7
30
|
const issues = [];
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
31
|
+
const spec = installation.spec;
|
|
32
|
+
const target = spec.target.kind;
|
|
33
|
+
if (target !== undefined && !PROFILE_TARGETS[spec.profile].includes(target)) {
|
|
11
34
|
issues.push({
|
|
12
|
-
kind: diagnostics_1.InstallationIssueKind.
|
|
13
|
-
code: '
|
|
14
|
-
path: '
|
|
15
|
-
message:
|
|
35
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
36
|
+
code: 'PROFILE_TARGET_MISMATCH',
|
|
37
|
+
path: 'spec.target.kind',
|
|
38
|
+
message: `${spec.profile} does not support target ${target}`,
|
|
16
39
|
});
|
|
17
40
|
}
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
substrate !== contract_1.InstallationSubstrate.Local) {
|
|
21
|
-
issues.push(profileSubstrateIssue(profile, contract_1.InstallationSubstrate.Local));
|
|
22
|
-
}
|
|
23
|
-
if (profile === contract_1.InstallationDeploymentProfile.StarterPme &&
|
|
24
|
-
substrate === contract_1.InstallationSubstrate.Cluster) {
|
|
41
|
+
if ((spec.target.zones?.length ?? 0) > 0 &&
|
|
42
|
+
spec.target.region === undefined) {
|
|
25
43
|
issues.push({
|
|
26
|
-
kind: diagnostics_1.InstallationIssueKind.
|
|
27
|
-
code: '
|
|
28
|
-
path: '
|
|
29
|
-
message: '
|
|
44
|
+
kind: diagnostics_1.InstallationIssueKind.Unresolved,
|
|
45
|
+
code: 'TARGET_REGION_REQUIRED',
|
|
46
|
+
path: 'spec.target.region',
|
|
47
|
+
message: 'explicit zones require one explicit target region',
|
|
30
48
|
});
|
|
31
49
|
}
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
profile === contract_1.InstallationDeploymentProfile.MultiRegion) &&
|
|
35
|
-
substrate !== undefined &&
|
|
36
|
-
substrate !== contract_1.InstallationSubstrate.Cluster) {
|
|
37
|
-
issues.push(profileSubstrateIssue(profile, contract_1.InstallationSubstrate.Cluster));
|
|
38
|
-
}
|
|
39
|
-
if (profile !== contract_1.InstallationDeploymentProfile.MultiRegion &&
|
|
40
|
-
installation.deployment.regions !== undefined &&
|
|
41
|
-
regions.length !== 1) {
|
|
50
|
+
if (spec.profile === contract_1.InstallationProfile.EnterpriseRegulated &&
|
|
51
|
+
spec.tenancy.isolation === contract_1.TenantIsolation.Shared) {
|
|
42
52
|
issues.push({
|
|
43
53
|
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
44
|
-
code: '
|
|
45
|
-
path: '
|
|
46
|
-
message:
|
|
54
|
+
code: 'REGULATED_SHARED_ISOLATION',
|
|
55
|
+
path: 'spec.tenancy.isolation',
|
|
56
|
+
message: 'enterprise-regulated installations cannot use shared isolation',
|
|
47
57
|
});
|
|
48
58
|
}
|
|
49
|
-
if (profile === contract_1.
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
if (spec.profile === contract_1.InstallationProfile.HostedCell &&
|
|
60
|
+
spec.operator.kind !== undefined &&
|
|
61
|
+
spec.operator.kind !== contract_1.InstallationOperatorKind.Platform) {
|
|
52
62
|
issues.push({
|
|
53
|
-
kind: diagnostics_1.InstallationIssueKind.
|
|
54
|
-
code: '
|
|
55
|
-
path: '
|
|
56
|
-
message: '
|
|
63
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
64
|
+
code: 'HOSTED_CELL_OPERATOR_INVALID',
|
|
65
|
+
path: 'spec.operator.kind',
|
|
66
|
+
message: 'hosted-cell installations require the platform operator',
|
|
57
67
|
});
|
|
58
68
|
}
|
|
59
|
-
if (profile === contract_1.
|
|
60
|
-
|
|
69
|
+
if (spec.profile === contract_1.InstallationProfile.Developer &&
|
|
70
|
+
spec.lifecycle.environment === contract_1.LifecycleEnvironment.Production) {
|
|
61
71
|
issues.push({
|
|
62
72
|
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
63
|
-
code: '
|
|
64
|
-
path: '
|
|
65
|
-
message: '
|
|
73
|
+
code: 'DEVELOPER_PRODUCTION_INVALID',
|
|
74
|
+
path: 'spec.lifecycle.environment',
|
|
75
|
+
message: 'the developer profile cannot be used for a production lifecycle environment',
|
|
66
76
|
});
|
|
67
77
|
}
|
|
68
78
|
return issues;
|
|
69
79
|
}
|
|
70
|
-
function profileSubstrateIssue(profile, required) {
|
|
71
|
-
return {
|
|
72
|
-
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
73
|
-
code: 'PROFILE_SUBSTRATE_MISMATCH',
|
|
74
|
-
path: 'deployment.substrate',
|
|
75
|
-
message: `${profile} requires ${required} substrate`,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
80
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/profile.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/profile.ts"],"names":[],"mappings":";;AAoCA,0CA6DC;AAjGD,0CAOqB;AACrB,gDAA+E;AAE/E,MAAM,eA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,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,sBAAsB,GACnC,SAAS,iBAAiB,EAAE,CAmD9B"}
|
|
@@ -5,7 +5,7 @@ const contract_1 = require("../contract");
|
|
|
5
5
|
const diagnostics_1 = require("../diagnostics");
|
|
6
6
|
function validateSecretReferences(installation) {
|
|
7
7
|
const issues = [];
|
|
8
|
-
const declared = new Set(installation.secrets.map((secret) => secret.name));
|
|
8
|
+
const declared = new Set(installation.spec.secrets.map((secret) => secret.name));
|
|
9
9
|
const referenced = collectReferences(installation);
|
|
10
10
|
for (const reference of referenced) {
|
|
11
11
|
if (!declared.has(reference.ref)) {
|
|
@@ -17,52 +17,69 @@ function validateSecretReferences(installation) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
const interactive = installation.spec.secrets.filter((secret) => secret.provider === contract_1.SecretReferenceProvider.Environment ||
|
|
21
|
+
secret.provider === contract_1.SecretReferenceProvider.File ||
|
|
22
|
+
secret.provider === contract_1.SecretReferenceProvider.Prompt);
|
|
23
|
+
if (interactive.length > 0 &&
|
|
24
|
+
(installation.spec.profile !== contract_1.InstallationProfile.Developer &&
|
|
25
|
+
installation.spec.profile !== contract_1.InstallationProfile.Starter)) {
|
|
26
|
+
issues.push({
|
|
27
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
28
|
+
code: 'DEVELOPER_SECRET_WORKFLOW_REQUIRED',
|
|
29
|
+
path: 'spec.secrets',
|
|
30
|
+
message: 'environment, file, and prompt bindings are restricted to developer or starter setup workflows',
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (interactive.length > 0 &&
|
|
34
|
+
installation.spec.lifecycle.environment !==
|
|
35
|
+
contract_1.LifecycleEnvironment.Development) {
|
|
36
|
+
issues.push({
|
|
37
|
+
kind: diagnostics_1.InstallationIssueKind.Invalid,
|
|
38
|
+
code: 'DEVELOPER_SECRET_WORKFLOW_REQUIRED',
|
|
39
|
+
path: 'spec.secrets',
|
|
40
|
+
message: 'environment, file, and prompt bindings require a development lifecycle and the explicit developer-interactive workflow',
|
|
41
|
+
});
|
|
39
42
|
}
|
|
40
43
|
return issues;
|
|
41
44
|
}
|
|
42
45
|
function collectReferences(installation) {
|
|
43
46
|
const referenced = [];
|
|
44
|
-
for (const binding of installation.infrastructure) {
|
|
47
|
+
for (const binding of installation.spec.infrastructure) {
|
|
45
48
|
for (const ref of binding.secretRefs) {
|
|
46
49
|
referenced.push({
|
|
47
50
|
ref,
|
|
48
|
-
path: `infrastructure.${binding.component}.secretRefs`,
|
|
51
|
+
path: `spec.infrastructure.${binding.component}.secretRefs`,
|
|
49
52
|
});
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
|
-
for (const domain of installation.domains) {
|
|
55
|
+
for (const domain of installation.spec.domains) {
|
|
53
56
|
if (domain.tls.secretRef !== undefined) {
|
|
54
57
|
referenced.push({
|
|
55
58
|
ref: domain.tls.secretRef,
|
|
56
|
-
path: `domains.${domain.purpose}.${domain.hostname}.tls.secretRef`,
|
|
59
|
+
path: `spec.domains.${domain.purpose}.${domain.hostname}.tls.secretRef`,
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
|
-
if (installation.
|
|
63
|
+
if (installation.spec.recovery.destinationSecretRef !== undefined) {
|
|
64
|
+
referenced.push({
|
|
65
|
+
ref: installation.spec.recovery.destinationSecretRef,
|
|
66
|
+
path: 'spec.recovery.destinationSecretRef',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (installation.spec.observability.exportSecretRef !== undefined) {
|
|
61
70
|
referenced.push({
|
|
62
|
-
ref: installation.
|
|
63
|
-
path: '
|
|
71
|
+
ref: installation.spec.observability.exportSecretRef,
|
|
72
|
+
path: 'spec.observability.exportSecretRef',
|
|
64
73
|
});
|
|
65
74
|
}
|
|
75
|
+
for (const source of installation.spec.sources) {
|
|
76
|
+
if ('authSecretRef' in source && source.authSecretRef !== undefined) {
|
|
77
|
+
referenced.push({
|
|
78
|
+
ref: source.authSecretRef,
|
|
79
|
+
path: `spec.sources.${source.name}.authSecretRef`,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
66
83
|
return referenced;
|
|
67
84
|
}
|
|
68
85
|
//# sourceMappingURL=secrets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/secrets.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../../../src/runtime/installation/validators/secrets.ts"],"names":[],"mappings":";;AAQA,4DAqDC;AA7DD,0CAKqB;AACrB,gDAA+E;AAE/E,SAAgB,wBAAwB,CACtC,YAAoC;IAEpC,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,MAAM,QAAQ,GAAG,IAAI,GAAG,CACtB,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI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IAAI,EAAE,oCAAoC;SAC3C,CAAC,CAAC;IACL,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAC/C,IAAI,eAAe,IAAI,MAAM,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;YACpE,UAAU,CAAC,IAAI,CAAC;gBACd,GAAG,EAAE,MAAM,CAAC,aAAa;gBACzB,IAAI,EAAE,gBAAgB,MAAM,CAAC,IAAI,gBAAgB;aAClD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/dist/runtime/launch.d.ts
CHANGED
|
@@ -3,19 +3,28 @@ import { resolveInfraPlan } from './infra/infra-plan';
|
|
|
3
3
|
import { type RosterEntry, type RosterInclude, type RosterSelection } from './roster';
|
|
4
4
|
import { type BringUpResult, type LifecycleEvent } from './supervisor';
|
|
5
5
|
import { deriveWaves } from './waves';
|
|
6
|
+
import type { HelmReleaseRendering } from './installation/helm-release';
|
|
6
7
|
export interface LaunchOptions {
|
|
7
8
|
readonly config: XemaConfig;
|
|
8
9
|
readonly includeWeb: boolean;
|
|
9
10
|
readonly installationIdentity?: string;
|
|
11
|
+
readonly installationId?: string;
|
|
10
12
|
readonly lockPathOverride?: string | undefined;
|
|
11
13
|
readonly bootGraphPathOverride?: string | undefined;
|
|
12
14
|
readonly onEvent?: (event: LifecycleEvent) => void;
|
|
13
15
|
readonly log?: (line: string) => void;
|
|
16
|
+
readonly planHash?: string;
|
|
14
17
|
readonly offline?: boolean;
|
|
15
18
|
readonly includeBiomes?: readonly string[];
|
|
19
|
+
readonly helmRelease?: HelmReleaseRendering;
|
|
20
|
+
readonly allowEmulatedPlatform?: boolean;
|
|
16
21
|
}
|
|
17
22
|
export interface LaunchHandle {
|
|
18
23
|
readonly result: BringUpResult;
|
|
24
|
+
readonly plan: LaunchPlan;
|
|
25
|
+
readonly installationId: string;
|
|
26
|
+
readonly planHash: string;
|
|
27
|
+
readonly executionId: string;
|
|
19
28
|
readonly roster: readonly RosterEntry[];
|
|
20
29
|
shutdown(): Promise<void>;
|
|
21
30
|
}
|
|
@@ -33,6 +42,7 @@ export interface LaunchPlan {
|
|
|
33
42
|
readonly skippedOptionalBiomes: readonly string[];
|
|
34
43
|
readonly infraWarnings: readonly string[];
|
|
35
44
|
readonly unresolvedSources: readonly string[];
|
|
45
|
+
readonly helmNamespace?: string;
|
|
36
46
|
}
|
|
37
47
|
export declare function resolveLaunchPlan(opts: LaunchOptions): LaunchPlan;
|
|
38
48
|
export declare function unionIncludeServices(include: RosterInclude, services: readonly string[]): RosterInclude;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../src/runtime/launch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../src/runtime/launch.ts"],"names":[],"mappings":"AAoBA,OAAO,EAGL,SAAS,EACT,KAAK,UAAU,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAYtD,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,UAAU,CAAC;AA2BlB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAGL,WAAW,EACZ,MAAM,SAAS,CAAC;AAKjB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAexE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAEvC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,gB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