@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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderCurrentLauncherPlan = renderCurrentLauncherPlan;
|
|
4
|
+
const compiler_1 = require("./compiler");
|
|
5
|
+
const contract_1 = require("./contract");
|
|
6
|
+
const helm_release_1 = require("./helm-release");
|
|
7
|
+
const setup_renderer_1 = require("./setup-renderer");
|
|
8
|
+
const to_current_config_1 = require("./to-current-config");
|
|
9
|
+
const LAUNCHER_RENDERABLE_PROFILES = new Set([
|
|
10
|
+
contract_1.InstallationProfile.Developer,
|
|
11
|
+
contract_1.InstallationProfile.Starter,
|
|
12
|
+
contract_1.InstallationProfile.SingleNodeProduction,
|
|
13
|
+
]);
|
|
14
|
+
function renderCurrentLauncherPlan(installation) {
|
|
15
|
+
assertCurrentLauncherCapability(installation);
|
|
16
|
+
const config = (0, to_current_config_1.launcherConfigFromInstallation)(installation);
|
|
17
|
+
const setup = (0, setup_renderer_1.renderInstallationSetup)(installation, {
|
|
18
|
+
providers: [
|
|
19
|
+
...new Set(installation.spec.secrets.map((secret) => secret.provider)),
|
|
20
|
+
].map((provider) => ({ provider, available: true })),
|
|
21
|
+
});
|
|
22
|
+
const helmRelease = rendersOnKubernetes(installation.spec.profile)
|
|
23
|
+
? (0, helm_release_1.helmReleaseRendering)(installation)
|
|
24
|
+
: undefined;
|
|
25
|
+
return {
|
|
26
|
+
config,
|
|
27
|
+
artifacts: setup.artifacts,
|
|
28
|
+
renderedArtifacts: setup.renderedArtifacts,
|
|
29
|
+
...(helmRelease === undefined ? {} : { helmRelease }),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function rendersOnKubernetes(profile) {
|
|
33
|
+
return ((0, compiler_1.installationProfileDefaults)(profile).target !==
|
|
34
|
+
contract_1.InstallationTargetKind.LocalMachine);
|
|
35
|
+
}
|
|
36
|
+
function assertCurrentLauncherCapability(installation) {
|
|
37
|
+
const spec = installation.spec;
|
|
38
|
+
if (!LAUNCHER_RENDERABLE_PROFILES.has(spec.profile)) {
|
|
39
|
+
unsupported(`profile ${spec.profile}; HA/regulated/hosted profiles require their dedicated installer renderer`);
|
|
40
|
+
}
|
|
41
|
+
const defaults = (0, compiler_1.installationProfileDefaults)(spec.profile);
|
|
42
|
+
const onKubernetes = rendersOnKubernetes(spec.profile);
|
|
43
|
+
if (spec.lifecycle.environment !== (0, compiler_1.profileLifecycleEnvironment)(spec.profile)) {
|
|
44
|
+
unsupported(`lifecycle environment ${spec.lifecycle.environment} on profile ${spec.profile}`);
|
|
45
|
+
}
|
|
46
|
+
if (spec.target.kind !== defaults.target ||
|
|
47
|
+
spec.target.region !== defaults.region ||
|
|
48
|
+
spec.target.zones.length !== 0) {
|
|
49
|
+
unsupported('non-default target placement');
|
|
50
|
+
}
|
|
51
|
+
if (spec.operator.kind !== defaults.operator) {
|
|
52
|
+
unsupported('custom operator authority');
|
|
53
|
+
}
|
|
54
|
+
if (!onKubernetes && spec.operator.namespace !== undefined) {
|
|
55
|
+
unsupported('an operator namespace on a local substrate');
|
|
56
|
+
}
|
|
57
|
+
if (spec.upgrade.channel !== contract_1.UpgradeChannel.Stable ||
|
|
58
|
+
spec.upgrade.releaseRef !== undefined) {
|
|
59
|
+
unsupported('upgrade policy override');
|
|
60
|
+
}
|
|
61
|
+
if (onKubernetes) {
|
|
62
|
+
assertKubernetesRenderable(spec);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
assertLocalRenderable(spec, defaults);
|
|
66
|
+
}
|
|
67
|
+
function assertKubernetesRenderable(spec) {
|
|
68
|
+
if (spec.storage.externalBinding !== undefined) {
|
|
69
|
+
unsupported('an external storage binding');
|
|
70
|
+
}
|
|
71
|
+
if (spec.security.residency !== undefined) {
|
|
72
|
+
unsupported('a data-residency policy');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function assertLocalRenderable(spec, defaults) {
|
|
76
|
+
if (spec.security.networkPolicy !== defaults.networkPolicy ||
|
|
77
|
+
spec.security.identity !== defaults.identity ||
|
|
78
|
+
spec.security.secretsBackend !== defaults.secretsBackend ||
|
|
79
|
+
spec.security.encryption !== defaults.encryption ||
|
|
80
|
+
spec.security.residency !== undefined) {
|
|
81
|
+
unsupported('a security-posture override');
|
|
82
|
+
}
|
|
83
|
+
if (spec.domains.length !== 0) {
|
|
84
|
+
unsupported('domain/TLS rendering');
|
|
85
|
+
}
|
|
86
|
+
if (spec.recovery.mode !== defaults.backupMode ||
|
|
87
|
+
spec.recovery.retentionDays !== defaults.backupRetentionDays ||
|
|
88
|
+
spec.recovery.rpoMinutes !== defaults.rpoMinutes ||
|
|
89
|
+
spec.recovery.rtoMinutes !== defaults.rtoMinutes ||
|
|
90
|
+
spec.recovery.restoreDrillIntervalDays !==
|
|
91
|
+
defaults.restoreDrillIntervalDays ||
|
|
92
|
+
spec.recovery.destinationSecretRef !== undefined) {
|
|
93
|
+
unsupported('a recovery policy override');
|
|
94
|
+
}
|
|
95
|
+
if (spec.observability.level !== defaults.observability ||
|
|
96
|
+
spec.observability.metrics !== defaults.metrics ||
|
|
97
|
+
spec.observability.tracing !== defaults.tracing ||
|
|
98
|
+
spec.observability.auditLog !== defaults.auditLog ||
|
|
99
|
+
spec.observability.retentionDays !== defaults.observabilityRetentionDays ||
|
|
100
|
+
spec.observability.exportSecretRef !== undefined) {
|
|
101
|
+
unsupported('an observability policy override');
|
|
102
|
+
}
|
|
103
|
+
if (spec.capacity.minReplicas !== defaults.minReplicas ||
|
|
104
|
+
spec.capacity.maxReplicas !== defaults.maxReplicas ||
|
|
105
|
+
spec.capacity.maxOrganizations !== defaults.maxOrganizations ||
|
|
106
|
+
spec.capacity.maxConcurrentSessions !== defaults.maxConcurrentSessions ||
|
|
107
|
+
spec.capacity.zones !== defaults.zones) {
|
|
108
|
+
unsupported('a capacity policy override');
|
|
109
|
+
}
|
|
110
|
+
if (spec.tenancy.mode !== defaults.tenancyMode ||
|
|
111
|
+
spec.tenancy.isolation !== defaults.isolation) {
|
|
112
|
+
unsupported('a tenancy policy override');
|
|
113
|
+
}
|
|
114
|
+
if (spec.storage.class !== defaults.storageClass ||
|
|
115
|
+
spec.storage.workspaceDriver !== defaults.workspaceDriver ||
|
|
116
|
+
spec.storage.externalBinding !== undefined) {
|
|
117
|
+
unsupported('a storage policy override');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function unsupported(detail) {
|
|
121
|
+
throw new Error(`The current launcher renderer cannot apply ${detail}. Plan with XemaInstallation, then use the renderer for that target.`);
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=current-launcher-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-launcher-renderer.js","sourceRoot":"","sources":["../../../src/runtime/installation/current-launcher-renderer.ts"],"names":[],"mappings":";;AA8DA,8DAmBC;AAjFD,yCAKoB;AACpB,yCAIoB;AACpB,iDAAiF;AACjF,qDAG0B;AAC1B,2DAAqE;AAoCrE,MAAM,4BAA4B,GAAqC,IAAI,GAAG,CAAC;IAC7E,8BAAmB,CAAC,SAAS;IAC7B,8BAAmB,CAAC,OAAO;IAC3B,8BAAmB,CAAC,oBAAoB;CACzC,CAAC,CAAC;AAMH,SAAgB,yBAAyB,CACvC,YAAsC;IAEtC,+BAA+B,CAAC,YAAY,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,IAAA,kDAA8B,EAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,IAAA,wCAAuB,EAAC,YAAY,EAAE;QAClD,SAAS,EAAE;YACT,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SACvE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACrD,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;QAChE,CAAC,CAAC,IAAA,mCAAoB,EAAC,YAAY,CAAC;QACpC,CAAC,CAAC,SAAS,CAAC;IACd,OAAO;QACL,MAAM;QACN,SA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QAAQ,CAAC,qBAAqB,KAAK,QAAQ,CAAC,qBAAqB;QACtE,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,EACtC,CAAC;QACD,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAC5C,CAAC;IACD,IACE,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,WAAW;QAC1C,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS,EAC7C,CAAC;QACD,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAC3C,CAAC;IACD,IACE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,YAAY;QAC5C,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,QAAQ,CAAC,eAAe;QACzD,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,SAAS,EAC1C,CAAC;QACD,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,MAAc;IACjC,MAAM,IAAI,KAAK,CACb,8CAA8C,MAAM,sEAAsE,CAC3H,CAAC;AACJ,CAAC"}
|
|
@@ -5,13 +5,28 @@ export declare enum InstallationChangeClass {
|
|
|
5
5
|
Destructive = "destructive",
|
|
6
6
|
Rejected = "rejected"
|
|
7
7
|
}
|
|
8
|
+
export declare enum InstallationRenderObligation {
|
|
9
|
+
RuntimeReconfigure = "runtime-reconfigure",
|
|
10
|
+
WorkloadRollout = "workload-rollout",
|
|
11
|
+
InfrastructureReconcile = "infrastructure-reconcile",
|
|
12
|
+
DataAndRecoveryReconcile = "data-and-recovery-reconcile",
|
|
13
|
+
ReplaceInstallation = "replace-installation"
|
|
14
|
+
}
|
|
8
15
|
export interface InstallationPlanChange {
|
|
9
16
|
readonly path: string;
|
|
10
17
|
readonly classification: InstallationChangeClass;
|
|
18
|
+
readonly renderObligation: InstallationRenderObligation;
|
|
11
19
|
}
|
|
12
20
|
export interface InstallationPlanDiff {
|
|
13
21
|
readonly classification: InstallationChangeClass;
|
|
22
|
+
readonly renderObligations: readonly InstallationRenderObligation[];
|
|
14
23
|
readonly changes: readonly InstallationPlanChange[];
|
|
15
24
|
}
|
|
25
|
+
export interface InstallationRenderAcknowledgement {
|
|
26
|
+
readonly obligation: InstallationRenderObligation;
|
|
27
|
+
readonly rendererId: string;
|
|
28
|
+
readonly effectivePlanHash: string;
|
|
29
|
+
readonly artifactDigest: string;
|
|
30
|
+
}
|
|
16
31
|
export declare function diffInstallationPlans(current: CompiledXemaInstallation, desired: CompiledXemaInstallation): InstallationPlanDiff;
|
|
17
32
|
//# sourceMappingURL=diff.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,oBAAY,uBAAuB;IACjC,WAAW,kBAAkB;IAC7B,eAAe,qBAAqB;IACpC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,oBAAY,uBAAuB;IACjC,WAAW,kBAAkB;IAC7B,eAAe,qBAAqB;IACpC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,oBAAY,4BAA4B;IACtC,kBAAkB,wBAAwB;IAC1C,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,wBAAwB,gCAAgC;IACxD,mBAAmB,yBAAyB;CAC7C;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;CACzD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,iBAAiB,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACpE,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AASD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,wBAAwB,GAChC,oBAAoB,CAwBtB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InstallationChangeClass = void 0;
|
|
3
|
+
exports.InstallationRenderObligation = exports.InstallationChangeClass = void 0;
|
|
4
4
|
exports.diffInstallationPlans = diffInstallationPlans;
|
|
5
5
|
const serialization_1 = require("./serialization");
|
|
6
6
|
var InstallationChangeClass;
|
|
@@ -10,6 +10,14 @@ var InstallationChangeClass;
|
|
|
10
10
|
InstallationChangeClass["Destructive"] = "destructive";
|
|
11
11
|
InstallationChangeClass["Rejected"] = "rejected";
|
|
12
12
|
})(InstallationChangeClass || (exports.InstallationChangeClass = InstallationChangeClass = {}));
|
|
13
|
+
var InstallationRenderObligation;
|
|
14
|
+
(function (InstallationRenderObligation) {
|
|
15
|
+
InstallationRenderObligation["RuntimeReconfigure"] = "runtime-reconfigure";
|
|
16
|
+
InstallationRenderObligation["WorkloadRollout"] = "workload-rollout";
|
|
17
|
+
InstallationRenderObligation["InfrastructureReconcile"] = "infrastructure-reconcile";
|
|
18
|
+
InstallationRenderObligation["DataAndRecoveryReconcile"] = "data-and-recovery-reconcile";
|
|
19
|
+
InstallationRenderObligation["ReplaceInstallation"] = "replace-installation";
|
|
20
|
+
})(InstallationRenderObligation || (exports.InstallationRenderObligation = InstallationRenderObligation = {}));
|
|
13
21
|
const CLASS_RANK = {
|
|
14
22
|
[InstallationChangeClass.SafeInPlace]: 0,
|
|
15
23
|
[InstallationChangeClass.RequiresRollout]: 1,
|
|
@@ -17,19 +25,29 @@ const CLASS_RANK = {
|
|
|
17
25
|
[InstallationChangeClass.Rejected]: 3,
|
|
18
26
|
};
|
|
19
27
|
function diffInstallationPlans(current, desired) {
|
|
20
|
-
const paths = changedPaths(
|
|
28
|
+
const paths = changedPaths(effectiveView(current), effectiveView(desired));
|
|
21
29
|
const changes = paths.map((path) => ({
|
|
22
30
|
path,
|
|
23
|
-
|
|
31
|
+
...classifyChange(path, valueAtPath(current, path), valueAtPath(desired, path)),
|
|
24
32
|
}));
|
|
25
|
-
const classification = changes.reduce((highest,
|
|
26
|
-
?
|
|
33
|
+
const classification = changes.reduce((highest, candidate) => CLASS_RANK[candidate.classification] > CLASS_RANK[highest]
|
|
34
|
+
? candidate.classification
|
|
27
35
|
: highest, InstallationChangeClass.SafeInPlace);
|
|
28
|
-
return {
|
|
36
|
+
return {
|
|
37
|
+
classification,
|
|
38
|
+
renderObligations: [
|
|
39
|
+
...new Set(changes.map((candidate) => candidate.renderObligation)),
|
|
40
|
+
].sort(),
|
|
41
|
+
changes,
|
|
42
|
+
};
|
|
29
43
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
44
|
+
function effectiveView(plan) {
|
|
45
|
+
return {
|
|
46
|
+
apiVersion: plan.apiVersion,
|
|
47
|
+
kind: plan.kind,
|
|
48
|
+
metadata: plan.metadata,
|
|
49
|
+
spec: plan.spec,
|
|
50
|
+
};
|
|
33
51
|
}
|
|
34
52
|
function changedPaths(current, desired, path = '') {
|
|
35
53
|
if (current === undefined || desired === undefined) {
|
|
@@ -54,32 +72,51 @@ function changedPaths(current, desired, path = '') {
|
|
|
54
72
|
.flatMap((key) => changedPaths(left[key], right[key], path.length === 0 ? key : `${path}.${key}`));
|
|
55
73
|
}
|
|
56
74
|
function classifyChange(path, current, desired) {
|
|
57
|
-
if (path === '
|
|
58
|
-
|
|
75
|
+
if (path === 'apiVersion' ||
|
|
76
|
+
path === 'kind' ||
|
|
77
|
+
path.startsWith('metadata.')) {
|
|
78
|
+
return change(InstallationChangeClass.Rejected, InstallationRenderObligation.ReplaceInstallation);
|
|
59
79
|
}
|
|
60
|
-
if (path === '
|
|
61
|
-
path.startsWith('
|
|
62
|
-
path
|
|
63
|
-
path === '
|
|
64
|
-
path
|
|
65
|
-
path.startsWith('
|
|
66
|
-
|
|
67
|
-
path === 'deployment.substrate' ||
|
|
68
|
-
path === 'deployment.regions') {
|
|
69
|
-
return InstallationChangeClass.Destructive;
|
|
80
|
+
if (path === 'spec.profile' ||
|
|
81
|
+
path.startsWith('spec.target.') ||
|
|
82
|
+
path.startsWith('spec.operator.') ||
|
|
83
|
+
path === 'spec.infrastructure' ||
|
|
84
|
+
path.startsWith('spec.tenancy.') ||
|
|
85
|
+
path.startsWith('spec.security.')) {
|
|
86
|
+
return change(InstallationChangeClass.Destructive, InstallationRenderObligation.InfrastructureReconcile);
|
|
70
87
|
}
|
|
71
|
-
if (path
|
|
72
|
-
|
|
73
|
-
return numericIncrease(current, desired)
|
|
74
|
-
? InstallationChangeClass.SafeInPlace
|
|
75
|
-
: InstallationChangeClass.Destructive;
|
|
88
|
+
if (path.startsWith('spec.storage.') || path.startsWith('spec.recovery.')) {
|
|
89
|
+
return change(InstallationChangeClass.Destructive, InstallationRenderObligation.DataAndRecoveryReconcile);
|
|
76
90
|
}
|
|
77
|
-
if (path === 'capacity.
|
|
91
|
+
if (path === 'spec.capacity.maxOrganizations' ||
|
|
92
|
+
path === 'spec.capacity.maxConcurrentSessions') {
|
|
78
93
|
return numericIncrease(current, desired)
|
|
94
|
+
? change(InstallationChangeClass.SafeInPlace, InstallationRenderObligation.RuntimeReconfigure)
|
|
95
|
+
: change(InstallationChangeClass.Destructive, InstallationRenderObligation.InfrastructureReconcile);
|
|
96
|
+
}
|
|
97
|
+
if (path === 'spec.capacity.maxReplicas' ||
|
|
98
|
+
path === 'spec.capacity.minReplicas' ||
|
|
99
|
+
path === 'spec.capacity.zones') {
|
|
100
|
+
return change(numericIncrease(current, desired)
|
|
79
101
|
? InstallationChangeClass.SafeInPlace
|
|
80
|
-
: InstallationChangeClass.RequiresRollout;
|
|
102
|
+
: InstallationChangeClass.RequiresRollout, InstallationRenderObligation.InfrastructureReconcile);
|
|
81
103
|
}
|
|
82
|
-
|
|
104
|
+
if (path.startsWith('spec.lifecycle.')) {
|
|
105
|
+
return change(InstallationChangeClass.RequiresRollout, InstallationRenderObligation.InfrastructureReconcile);
|
|
106
|
+
}
|
|
107
|
+
if (path.startsWith('spec.distribution.') ||
|
|
108
|
+
path.startsWith('spec.features.') ||
|
|
109
|
+
path === 'spec.secrets' ||
|
|
110
|
+
path === 'spec.domains' ||
|
|
111
|
+
path.startsWith('spec.observability.') ||
|
|
112
|
+
path === 'spec.sources' ||
|
|
113
|
+
path.startsWith('spec.upgrade.')) {
|
|
114
|
+
return change(InstallationChangeClass.RequiresRollout, InstallationRenderObligation.WorkloadRollout);
|
|
115
|
+
}
|
|
116
|
+
throw new Error(`Unclassified material installation field: ${path}`);
|
|
117
|
+
}
|
|
118
|
+
function change(classification, renderObligation) {
|
|
119
|
+
return { classification, renderObligation };
|
|
83
120
|
}
|
|
84
121
|
function numericIncrease(current, desired) {
|
|
85
122
|
return (typeof current === 'number' &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":";;;
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,CAAC;AAED,SAAS,MAAM,CACb,cAAuC,EACvC,gBAA8C;IAE9C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AAC9C,CAAC;AAED,SAAS,eAAe,CAAC,OAAgB,EAAE,OAAgB;IACzD,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,IAAI,OAAO,CACnB,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAc,EAAE,IAAY;IAC/C,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACtC,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAClD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,GAAI,MAA4C,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -6,12 +6,12 @@ function formatInstallationPlan(plan) {
|
|
|
6
6
|
const changes = plan.diff.changes.length === 0
|
|
7
7
|
? ' = no changes'
|
|
8
8
|
: plan.diff.changes
|
|
9
|
-
.map((change) => ` ${change.classification.padEnd(17, ' ')} ${change.path}`)
|
|
9
|
+
.map((change) => ` ${change.classification.padEnd(17, ' ')} ${change.renderObligation.padEnd(27, ' ')} ${change.path}`)
|
|
10
10
|
.join('\n');
|
|
11
11
|
return [
|
|
12
|
-
`Installation: ${plan.desired.
|
|
13
|
-
`
|
|
14
|
-
`Applied hash: ${plan.applied?.
|
|
12
|
+
`Installation: ${plan.desired.metadata.name}`,
|
|
13
|
+
`Effective hash: ${plan.desired.effectivePlanHash}`,
|
|
14
|
+
`Applied hash : ${plan.applied?.effectivePlanHash ?? '<none>'}`,
|
|
15
15
|
`Change class: ${plan.diff.classification}`,
|
|
16
16
|
'Changes:',
|
|
17
17
|
changes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/runtime/installation/format.ts"],"names":[],"mappings":";;AAIA,wDAoBC;AAxBD,qDAAsD;AAItD,SAAgB,sBAAsB,CAAC,IAA4B;IACjE,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;aACd,GAAG,CACF,CAAC,MAAM,EAAE,EAAE,CACT,KAAK,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/runtime/installation/format.ts"],"names":[],"mappings":";;AAIA,wDAoBC;AAxBD,qDAAsD;AAItD,SAAgB,sBAAsB,CAAC,IAA4B;IACjE,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;aACd,GAAG,CACF,CAAC,MAAM,EAAE,EAAE,CACT,KAAK,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,CACzG;aACA,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO;QACL,iBAAiB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC7C,mBAAmB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QACnD,mBAAmB,IAAI,CAAC,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE;QAChE,iBAAiB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QAC3C,UAAU;QACV,OAAO;QACP,qBAAqB;QACrB,IAAI,CAAC,SAAS,CAAC,IAAA,mCAAkB,EAAC,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InstallationProfile, type LifecycleEnvironment, type XemaInstallation } from './contract';
|
|
2
2
|
import { type XemaConfig } from '../config/schema';
|
|
3
3
|
export interface CurrentConfigInstallationContext {
|
|
4
4
|
readonly installationId: string;
|
|
5
|
-
readonly profile?:
|
|
5
|
+
readonly profile?: InstallationProfile;
|
|
6
|
+
readonly environment?: LifecycleEnvironment;
|
|
6
7
|
}
|
|
7
8
|
export declare function installationFromCurrentConfig(config: XemaConfig, context: CurrentConfigInstallationContext): XemaInstallation;
|
|
8
9
|
//# sourceMappingURL=from-current-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"from-current-config.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/from-current-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"from-current-config.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/from-current-config.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,mBAAmB,EAMnB,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAOD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAoFlB"}
|