typekro 0.5.0 → 0.8.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/dist/.tsbuildinfo +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.js +16 -2
- package/dist/compositions/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/composition/context.d.ts +14 -0
- package/dist/core/composition/context.d.ts.map +1 -1
- package/dist/core/composition/context.js.map +1 -1
- package/dist/core/composition/imperative.d.ts.map +1 -1
- package/dist/core/composition/imperative.js +59 -30
- package/dist/core/composition/imperative.js.map +1 -1
- package/dist/core/composition/nested-status-cel.d.ts +50 -0
- package/dist/core/composition/nested-status-cel.d.ts.map +1 -0
- package/dist/core/composition/nested-status-cel.js +169 -0
- package/dist/core/composition/nested-status-cel.js.map +1 -0
- package/dist/core/constants/brands.d.ts +1 -1
- package/dist/core/constants/brands.d.ts.map +1 -1
- package/dist/core/constants/brands.js +1 -1
- package/dist/core/constants/brands.js.map +1 -1
- package/dist/core/containers/build.d.ts +50 -0
- package/dist/core/containers/build.d.ts.map +1 -0
- package/dist/core/containers/build.js +146 -0
- package/dist/core/containers/build.js.map +1 -0
- package/dist/core/containers/errors.d.ts +14 -0
- package/dist/core/containers/errors.d.ts.map +1 -0
- package/dist/core/containers/errors.js +48 -0
- package/dist/core/containers/errors.js.map +1 -0
- package/dist/core/containers/exec.d.ts +36 -0
- package/dist/core/containers/exec.d.ts.map +1 -0
- package/dist/core/containers/exec.js +110 -0
- package/dist/core/containers/exec.js.map +1 -0
- package/dist/core/containers/index.d.ts +21 -0
- package/dist/core/containers/index.d.ts.map +1 -0
- package/dist/core/containers/index.js +20 -0
- package/dist/core/containers/index.js.map +1 -0
- package/dist/core/containers/registries/ecr.d.ts +22 -0
- package/dist/core/containers/registries/ecr.d.ts.map +1 -0
- package/dist/core/containers/registries/ecr.js +118 -0
- package/dist/core/containers/registries/ecr.js.map +1 -0
- package/dist/core/containers/registries/index.d.ts +9 -0
- package/dist/core/containers/registries/index.d.ts.map +1 -0
- package/dist/core/containers/registries/index.js +23 -0
- package/dist/core/containers/registries/index.js.map +1 -0
- package/dist/core/containers/registries/orbstack.d.ts +14 -0
- package/dist/core/containers/registries/orbstack.d.ts.map +1 -0
- package/dist/core/containers/registries/orbstack.js +24 -0
- package/dist/core/containers/registries/orbstack.js.map +1 -0
- package/dist/core/containers/registries/types.d.ts +94 -0
- package/dist/core/containers/registries/types.d.ts.map +1 -0
- package/dist/core/containers/registries/types.js +11 -0
- package/dist/core/containers/registries/types.js.map +1 -0
- package/dist/core/dependencies/graph.d.ts +4 -0
- package/dist/core/dependencies/graph.d.ts.map +1 -1
- package/dist/core/dependencies/graph.js +6 -0
- package/dist/core/dependencies/graph.js.map +1 -1
- package/dist/core/dependencies/resolver.d.ts +28 -0
- package/dist/core/dependencies/resolver.d.ts.map +1 -1
- package/dist/core/dependencies/resolver.js +138 -5
- package/dist/core/dependencies/resolver.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +13 -0
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +99 -0
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +45 -2
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts +28 -0
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +243 -13
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/kro-readiness.d.ts.map +1 -1
- package/dist/core/deployment/kro-readiness.js +10 -1
- package/dist/core/deployment/kro-readiness.js.map +1 -1
- package/dist/core/deployment/nested-composition-status.d.ts +33 -0
- package/dist/core/deployment/nested-composition-status.d.ts.map +1 -0
- package/dist/core/deployment/nested-composition-status.js +101 -0
- package/dist/core/deployment/nested-composition-status.js.map +1 -0
- package/dist/core/deployment/readiness-waiter.d.ts.map +1 -1
- package/dist/core/deployment/readiness-waiter.js +23 -6
- package/dist/core/deployment/readiness-waiter.js.map +1 -1
- package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
- package/dist/core/deployment/rollback-manager.js +19 -0
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.d.ts +6 -0
- package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.js +133 -35
- package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts +8 -2
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.js +34 -2
- package/dist/core/expressions/composition/composition-analyzer-helpers.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-ternary.js +52 -28
- package/dist/core/expressions/composition/composition-analyzer-ternary.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-traversal.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-traversal.js +11 -4
- package/dist/core/expressions/composition/composition-analyzer-traversal.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-types.d.ts +8 -0
- package/dist/core/expressions/composition/composition-analyzer-types.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer.d.ts +1 -1
- package/dist/core/expressions/composition/composition-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer.js +8 -2
- package/dist/core/expressions/composition/composition-analyzer.js.map +1 -1
- package/dist/core/expressions/composition/imperative-analyzer.d.ts +8 -0
- package/dist/core/expressions/composition/imperative-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/composition/imperative-analyzer.js +111 -16
- package/dist/core/expressions/composition/imperative-analyzer.js.map +1 -1
- package/dist/core/metadata/resource-metadata.d.ts +4 -0
- package/dist/core/metadata/resource-metadata.d.ts.map +1 -1
- package/dist/core/metadata/resource-metadata.js.map +1 -1
- package/dist/core/proxy/create-resource.d.ts.map +1 -1
- package/dist/core/proxy/create-resource.js +63 -21
- package/dist/core/proxy/create-resource.js.map +1 -1
- package/dist/core/references/cel.d.ts +48 -0
- package/dist/core/references/cel.d.ts.map +1 -1
- package/dist/core/references/cel.js +82 -0
- package/dist/core/references/cel.js.map +1 -1
- package/dist/core/references/external-refs.d.ts +2 -0
- package/dist/core/references/external-refs.d.ts.map +1 -1
- package/dist/core/references/external-refs.js +3 -0
- package/dist/core/references/external-refs.js.map +1 -1
- package/dist/core/references/resolver.d.ts +12 -4
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +152 -69
- package/dist/core/references/resolver.js.map +1 -1
- package/dist/core/references/schema-proxy.d.ts.map +1 -1
- package/dist/core/references/schema-proxy.js +5 -4
- package/dist/core/references/schema-proxy.js.map +1 -1
- package/dist/core/serialization/cel-references.d.ts +1 -1
- package/dist/core/serialization/cel-references.d.ts.map +1 -1
- package/dist/core/serialization/cel-references.js +191 -24
- package/dist/core/serialization/cel-references.js.map +1 -1
- package/dist/core/serialization/core.d.ts +8 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +434 -7
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/serialization/kro-post-processing.d.ts +46 -0
- package/dist/core/serialization/kro-post-processing.d.ts.map +1 -0
- package/dist/core/serialization/kro-post-processing.js +103 -0
- package/dist/core/serialization/kro-post-processing.js.map +1 -0
- package/dist/core/serialization/schema.d.ts +61 -3
- package/dist/core/serialization/schema.d.ts.map +1 -1
- package/dist/core/serialization/schema.js +520 -18
- package/dist/core/serialization/schema.js.map +1 -1
- package/dist/core/serialization/status-analysis-pipeline.d.ts +4 -0
- package/dist/core/serialization/status-analysis-pipeline.d.ts.map +1 -1
- package/dist/core/serialization/status-analysis-pipeline.js +127 -10
- package/dist/core/serialization/status-analysis-pipeline.js.map +1 -1
- package/dist/core/serialization/yaml.d.ts.map +1 -1
- package/dist/core/serialization/yaml.js +27 -4
- package/dist/core/serialization/yaml.js.map +1 -1
- package/dist/core/types/composable.d.ts +62 -0
- package/dist/core/types/composable.d.ts.map +1 -0
- package/dist/core/types/composable.js +51 -0
- package/dist/core/types/composable.js.map +1 -0
- package/dist/core/types/deployment.d.ts +2 -1
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +1 -0
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/types/serialization.d.ts +40 -1
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +55 -31
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts +55 -0
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts.map +1 -0
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.js +92 -0
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.js.map +1 -0
- package/dist/factories/cnpg/compositions/index.d.ts +2 -0
- package/dist/factories/cnpg/compositions/index.d.ts.map +1 -0
- package/dist/factories/cnpg/compositions/index.js +2 -0
- package/dist/factories/cnpg/compositions/index.js.map +1 -0
- package/dist/factories/cnpg/index.d.ts +42 -0
- package/dist/factories/cnpg/index.d.ts.map +1 -0
- package/dist/factories/cnpg/index.js +42 -0
- package/dist/factories/cnpg/index.js.map +1 -0
- package/dist/factories/cnpg/resources/backup.d.ts +34 -0
- package/dist/factories/cnpg/resources/backup.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/backup.js +87 -0
- package/dist/factories/cnpg/resources/backup.js.map +1 -0
- package/dist/factories/cnpg/resources/cluster.d.ts +55 -0
- package/dist/factories/cnpg/resources/cluster.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/cluster.js +123 -0
- package/dist/factories/cnpg/resources/cluster.js.map +1 -0
- package/dist/factories/cnpg/resources/helm.d.ts +45 -0
- package/dist/factories/cnpg/resources/helm.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/helm.js +78 -0
- package/dist/factories/cnpg/resources/helm.js.map +1 -0
- package/dist/factories/cnpg/resources/index.d.ts +6 -0
- package/dist/factories/cnpg/resources/index.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/index.js +6 -0
- package/dist/factories/cnpg/resources/index.js.map +1 -0
- package/dist/factories/cnpg/resources/pooler.d.ts +38 -0
- package/dist/factories/cnpg/resources/pooler.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/pooler.js +97 -0
- package/dist/factories/cnpg/resources/pooler.js.map +1 -0
- package/dist/factories/cnpg/resources/scheduled-backup.d.ts +35 -0
- package/dist/factories/cnpg/resources/scheduled-backup.d.ts.map +1 -0
- package/dist/factories/cnpg/resources/scheduled-backup.js +68 -0
- package/dist/factories/cnpg/resources/scheduled-backup.js.map +1 -0
- package/dist/factories/cnpg/types.d.ts +507 -0
- package/dist/factories/cnpg/types.d.ts.map +1 -0
- package/dist/factories/cnpg/types.js +398 -0
- package/dist/factories/cnpg/types.js.map +1 -0
- package/dist/factories/cnpg/utils/helm-values-mapper.d.ts +70 -0
- package/dist/factories/cnpg/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/cnpg/utils/helm-values-mapper.js +79 -0
- package/dist/factories/cnpg/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/cnpg/utils/index.d.ts +2 -0
- package/dist/factories/cnpg/utils/index.d.ts.map +1 -0
- package/dist/factories/cnpg/utils/index.js +2 -0
- package/dist/factories/cnpg/utils/index.js.map +1 -0
- package/dist/factories/helm/helm-release.d.ts.map +1 -1
- package/dist/factories/helm/helm-release.js +4 -0
- package/dist/factories/helm/helm-release.js.map +1 -1
- package/dist/factories/helm/types.d.ts +2 -0
- package/dist/factories/helm/types.d.ts.map +1 -1
- package/dist/factories/inngest/compositions/index.d.ts +2 -0
- package/dist/factories/inngest/compositions/index.d.ts.map +1 -0
- package/dist/factories/inngest/compositions/index.js +2 -0
- package/dist/factories/inngest/compositions/index.js.map +1 -0
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts +150 -0
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts.map +1 -0
- package/dist/factories/inngest/compositions/inngest-bootstrap.js +90 -0
- package/dist/factories/inngest/compositions/inngest-bootstrap.js.map +1 -0
- package/dist/factories/inngest/index.d.ts +45 -0
- package/dist/factories/inngest/index.d.ts.map +1 -0
- package/dist/factories/inngest/index.js +45 -0
- package/dist/factories/inngest/index.js.map +1 -0
- package/dist/factories/inngest/resources/helm.d.ts +53 -0
- package/dist/factories/inngest/resources/helm.d.ts.map +1 -0
- package/dist/factories/inngest/resources/helm.js +88 -0
- package/dist/factories/inngest/resources/helm.js.map +1 -0
- package/dist/factories/inngest/resources/index.d.ts +2 -0
- package/dist/factories/inngest/resources/index.d.ts.map +1 -0
- package/dist/factories/inngest/resources/index.js +2 -0
- package/dist/factories/inngest/resources/index.js.map +1 -0
- package/dist/factories/inngest/types.d.ts +177 -0
- package/dist/factories/inngest/types.d.ts.map +1 -0
- package/dist/factories/inngest/types.js +189 -0
- package/dist/factories/inngest/types.js.map +1 -0
- package/dist/factories/inngest/utils/helm-values-mapper.d.ts +127 -0
- package/dist/factories/inngest/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/inngest/utils/helm-values-mapper.js +116 -0
- package/dist/factories/inngest/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/inngest/utils/index.d.ts +2 -0
- package/dist/factories/inngest/utils/index.d.ts.map +1 -0
- package/dist/factories/inngest/utils/index.js +2 -0
- package/dist/factories/inngest/utils/index.js.map +1 -0
- package/dist/factories/kubernetes/config/secret.d.ts.map +1 -1
- package/dist/factories/kubernetes/config/secret.js +11 -1
- package/dist/factories/kubernetes/config/secret.js.map +1 -1
- package/dist/factories/kubernetes/core/namespace.d.ts.map +1 -1
- package/dist/factories/kubernetes/core/namespace.js +1 -1
- package/dist/factories/kubernetes/core/namespace.js.map +1 -1
- package/dist/factories/searxng/compositions/index.d.ts +2 -0
- package/dist/factories/searxng/compositions/index.d.ts.map +1 -0
- package/dist/factories/searxng/compositions/index.js +2 -0
- package/dist/factories/searxng/compositions/index.js.map +1 -0
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts +65 -0
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts.map +1 -0
- package/dist/factories/searxng/compositions/searxng-bootstrap.js +237 -0
- package/dist/factories/searxng/compositions/searxng-bootstrap.js.map +1 -0
- package/dist/factories/searxng/index.d.ts +29 -0
- package/dist/factories/searxng/index.d.ts.map +1 -0
- package/dist/factories/searxng/index.js +27 -0
- package/dist/factories/searxng/index.js.map +1 -0
- package/dist/factories/searxng/resources/index.d.ts +2 -0
- package/dist/factories/searxng/resources/index.d.ts.map +1 -0
- package/dist/factories/searxng/resources/index.js +2 -0
- package/dist/factories/searxng/resources/index.js.map +1 -0
- package/dist/factories/searxng/resources/searxng.d.ts +65 -0
- package/dist/factories/searxng/resources/searxng.d.ts.map +1 -0
- package/dist/factories/searxng/resources/searxng.js +188 -0
- package/dist/factories/searxng/resources/searxng.js.map +1 -0
- package/dist/factories/searxng/types.d.ts +126 -0
- package/dist/factories/searxng/types.d.ts.map +1 -0
- package/dist/factories/searxng/types.js +176 -0
- package/dist/factories/searxng/types.js.map +1 -0
- package/dist/factories/searxng/utils/settings-builder.d.ts +46 -0
- package/dist/factories/searxng/utils/settings-builder.d.ts.map +1 -0
- package/dist/factories/searxng/utils/settings-builder.js +52 -0
- package/dist/factories/searxng/utils/settings-builder.js.map +1 -0
- package/dist/factories/simple/config/secret.d.ts.map +1 -1
- package/dist/factories/simple/config/secret.js +28 -0
- package/dist/factories/simple/config/secret.js.map +1 -1
- package/dist/factories/valkey/compositions/index.d.ts +2 -0
- package/dist/factories/valkey/compositions/index.d.ts.map +1 -0
- package/dist/factories/valkey/compositions/index.js +2 -0
- package/dist/factories/valkey/compositions/index.js.map +1 -0
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts +41 -0
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts.map +1 -0
- package/dist/factories/valkey/compositions/valkey-bootstrap.js +105 -0
- package/dist/factories/valkey/compositions/valkey-bootstrap.js.map +1 -0
- package/dist/factories/valkey/index.d.ts +50 -0
- package/dist/factories/valkey/index.d.ts.map +1 -0
- package/dist/factories/valkey/index.js +50 -0
- package/dist/factories/valkey/index.js.map +1 -0
- package/dist/factories/valkey/resources/helm.d.ts +53 -0
- package/dist/factories/valkey/resources/helm.d.ts.map +1 -0
- package/dist/factories/valkey/resources/helm.js +82 -0
- package/dist/factories/valkey/resources/helm.js.map +1 -0
- package/dist/factories/valkey/resources/index.d.ts +3 -0
- package/dist/factories/valkey/resources/index.d.ts.map +1 -0
- package/dist/factories/valkey/resources/index.js +3 -0
- package/dist/factories/valkey/resources/index.js.map +1 -0
- package/dist/factories/valkey/resources/valkey.d.ts +46 -0
- package/dist/factories/valkey/resources/valkey.d.ts.map +1 -0
- package/dist/factories/valkey/resources/valkey.js +123 -0
- package/dist/factories/valkey/resources/valkey.js.map +1 -0
- package/dist/factories/valkey/types.d.ts +185 -0
- package/dist/factories/valkey/types.d.ts.map +1 -0
- package/dist/factories/valkey/types.js +204 -0
- package/dist/factories/valkey/types.js.map +1 -0
- package/dist/factories/valkey/utils/helm-values-mapper.d.ts +32 -0
- package/dist/factories/valkey/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/valkey/utils/helm-values-mapper.js +58 -0
- package/dist/factories/valkey/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/valkey/utils/index.d.ts +2 -0
- package/dist/factories/valkey/utils/index.d.ts.map +1 -0
- package/dist/factories/valkey/utils/index.js +2 -0
- package/dist/factories/valkey/utils/index.js.map +1 -0
- package/dist/factories/webapp/compositions/index.d.ts +2 -0
- package/dist/factories/webapp/compositions/index.d.ts.map +1 -0
- package/dist/factories/webapp/compositions/index.js +2 -0
- package/dist/factories/webapp/compositions/index.js.map +1 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.d.ts +97 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.d.ts.map +1 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.js +220 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.js.map +1 -0
- package/dist/factories/webapp/index.d.ts +53 -0
- package/dist/factories/webapp/index.d.ts.map +1 -0
- package/dist/factories/webapp/index.js +53 -0
- package/dist/factories/webapp/index.js.map +1 -0
- package/dist/factories/webapp/types.d.ts +69 -0
- package/dist/factories/webapp/types.d.ts.map +1 -0
- package/dist/factories/webapp/types.js +92 -0
- package/dist/factories/webapp/types.js.map +1 -0
- package/dist/shared/brands.d.ts +16 -0
- package/dist/shared/brands.d.ts.map +1 -1
- package/dist/shared/brands.js +16 -0
- package/dist/shared/brands.js.map +1 -1
- package/package.json +29 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inngest Bootstrap Composition
|
|
3
|
+
*
|
|
4
|
+
* Deploys Inngest via HelmRepository and HelmRelease. Inngest is a workflow
|
|
5
|
+
* orchestration platform that requires PostgreSQL and Redis/Valkey.
|
|
6
|
+
*
|
|
7
|
+
* By default, the Helm chart bundles its own PostgreSQL and Redis. To use
|
|
8
|
+
* external databases (e.g., CNPG + Valkey from TypeKro), disable the bundled
|
|
9
|
+
* ones and pass connection URIs:
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // 'kro' = KRO mode (continuous reconciliation)
|
|
14
|
+
* // 'direct' = Direct mode (immediate apply)
|
|
15
|
+
* const factory = inngestBootstrap.factory('kro', {
|
|
16
|
+
* namespace: 'inngest',
|
|
17
|
+
* waitForReady: true,
|
|
18
|
+
* });
|
|
19
|
+
*
|
|
20
|
+
* await factory.deploy({
|
|
21
|
+
* name: 'inngest',
|
|
22
|
+
* namespace: 'inngest',
|
|
23
|
+
* inngest: {
|
|
24
|
+
* eventKey: 'your-event-key',
|
|
25
|
+
* signingKey: 'your-signing-key',
|
|
26
|
+
* // Use external CNPG PostgreSQL + Valkey
|
|
27
|
+
* postgres: { uri: 'postgresql://inngest:password@my-db-rw:5432/inngest' },
|
|
28
|
+
* redis: { uri: 'redis://my-cache:6379' },
|
|
29
|
+
* },
|
|
30
|
+
* postgresql: { enabled: false }, // Disable bundled PG
|
|
31
|
+
* redis: { enabled: false }, // Disable bundled Redis
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const inngestBootstrap: import("../../../index.js").CallableComposition<{
|
|
36
|
+
name: string;
|
|
37
|
+
inngest: {
|
|
38
|
+
eventKey: string;
|
|
39
|
+
signingKey: string;
|
|
40
|
+
postgres?: {
|
|
41
|
+
uri?: string;
|
|
42
|
+
};
|
|
43
|
+
redis?: {
|
|
44
|
+
uri?: string;
|
|
45
|
+
};
|
|
46
|
+
host?: string;
|
|
47
|
+
sdkUrl?: string[];
|
|
48
|
+
noUI?: boolean;
|
|
49
|
+
pollInterval?: number;
|
|
50
|
+
queueWorkers?: number;
|
|
51
|
+
logLevel?: string;
|
|
52
|
+
json?: boolean;
|
|
53
|
+
extraEnv?: {
|
|
54
|
+
name: string;
|
|
55
|
+
value: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
namespace?: string;
|
|
59
|
+
version?: string;
|
|
60
|
+
replicaCount?: number;
|
|
61
|
+
resources?: {
|
|
62
|
+
requests?: {
|
|
63
|
+
cpu?: string;
|
|
64
|
+
memory?: string;
|
|
65
|
+
};
|
|
66
|
+
limits?: {
|
|
67
|
+
cpu?: string;
|
|
68
|
+
memory?: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
postgresql?: {
|
|
72
|
+
enabled?: boolean;
|
|
73
|
+
auth?: {
|
|
74
|
+
database?: string;
|
|
75
|
+
username?: string;
|
|
76
|
+
password?: string;
|
|
77
|
+
};
|
|
78
|
+
persistence?: {
|
|
79
|
+
enabled?: boolean;
|
|
80
|
+
size?: string;
|
|
81
|
+
storageClass?: string;
|
|
82
|
+
};
|
|
83
|
+
resources?: {
|
|
84
|
+
requests?: {
|
|
85
|
+
cpu?: string;
|
|
86
|
+
memory?: string;
|
|
87
|
+
};
|
|
88
|
+
limits?: {
|
|
89
|
+
cpu?: string;
|
|
90
|
+
memory?: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
redis?: {
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
persistence?: {
|
|
97
|
+
enabled?: boolean;
|
|
98
|
+
size?: string;
|
|
99
|
+
storageClass?: string;
|
|
100
|
+
};
|
|
101
|
+
resources?: {
|
|
102
|
+
requests?: {
|
|
103
|
+
cpu?: string;
|
|
104
|
+
memory?: string;
|
|
105
|
+
};
|
|
106
|
+
limits?: {
|
|
107
|
+
cpu?: string;
|
|
108
|
+
memory?: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
ingress?: {
|
|
113
|
+
enabled?: boolean;
|
|
114
|
+
className?: string;
|
|
115
|
+
annotations?: Record<string, string>;
|
|
116
|
+
hosts?: {
|
|
117
|
+
host: string;
|
|
118
|
+
paths?: {
|
|
119
|
+
path?: string;
|
|
120
|
+
pathType?: string;
|
|
121
|
+
}[];
|
|
122
|
+
}[];
|
|
123
|
+
tls?: {
|
|
124
|
+
secretName?: string;
|
|
125
|
+
hosts?: string[];
|
|
126
|
+
}[];
|
|
127
|
+
};
|
|
128
|
+
keda?: {
|
|
129
|
+
enabled?: boolean;
|
|
130
|
+
minReplicas?: number;
|
|
131
|
+
maxReplicas?: number;
|
|
132
|
+
pollingInterval?: number;
|
|
133
|
+
cooldownPeriod?: number;
|
|
134
|
+
};
|
|
135
|
+
nodeSelector?: Record<string, string>;
|
|
136
|
+
tolerations?: {
|
|
137
|
+
key?: string;
|
|
138
|
+
operator?: "Exists" | "Equal";
|
|
139
|
+
value?: string;
|
|
140
|
+
effect?: "NoSchedule" | "PreferNoSchedule" | "NoExecute";
|
|
141
|
+
tolerationSeconds?: number;
|
|
142
|
+
}[];
|
|
143
|
+
customValues?: Record<string, unknown>;
|
|
144
|
+
}, {
|
|
145
|
+
phase: "Ready" | "Installing";
|
|
146
|
+
ready: boolean;
|
|
147
|
+
failed: boolean;
|
|
148
|
+
version?: string;
|
|
149
|
+
}>;
|
|
150
|
+
//# sourceMappingURL=inngest-bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inngest-bootstrap.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/inngest-bootstrap.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2E5B,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { kubernetesComposition } from '../../../core/composition/imperative.js';
|
|
2
|
+
import { DEFAULT_FLUX_NAMESPACE } from '../../../core/config/defaults.js';
|
|
3
|
+
import { Cel } from '../../../core/references/cel.js';
|
|
4
|
+
import { namespace } from '../../kubernetes/core/namespace.js';
|
|
5
|
+
import { DEFAULT_INNGEST_REPO_NAME, DEFAULT_INNGEST_VERSION, inngestHelmRelease, inngestHelmRepository, } from '../resources/helm.js';
|
|
6
|
+
import { InngestBootstrapConfigSchema, InngestBootstrapStatusSchema, } from '../types.js';
|
|
7
|
+
import { mapInngestConfigToHelmValues } from '../utils/helm-values-mapper.js';
|
|
8
|
+
/**
|
|
9
|
+
* Inngest Bootstrap Composition
|
|
10
|
+
*
|
|
11
|
+
* Deploys Inngest via HelmRepository and HelmRelease. Inngest is a workflow
|
|
12
|
+
* orchestration platform that requires PostgreSQL and Redis/Valkey.
|
|
13
|
+
*
|
|
14
|
+
* By default, the Helm chart bundles its own PostgreSQL and Redis. To use
|
|
15
|
+
* external databases (e.g., CNPG + Valkey from TypeKro), disable the bundled
|
|
16
|
+
* ones and pass connection URIs:
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // 'kro' = KRO mode (continuous reconciliation)
|
|
21
|
+
* // 'direct' = Direct mode (immediate apply)
|
|
22
|
+
* const factory = inngestBootstrap.factory('kro', {
|
|
23
|
+
* namespace: 'inngest',
|
|
24
|
+
* waitForReady: true,
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* await factory.deploy({
|
|
28
|
+
* name: 'inngest',
|
|
29
|
+
* namespace: 'inngest',
|
|
30
|
+
* inngest: {
|
|
31
|
+
* eventKey: 'your-event-key',
|
|
32
|
+
* signingKey: 'your-signing-key',
|
|
33
|
+
* // Use external CNPG PostgreSQL + Valkey
|
|
34
|
+
* postgres: { uri: 'postgresql://inngest:password@my-db-rw:5432/inngest' },
|
|
35
|
+
* redis: { uri: 'redis://my-cache:6379' },
|
|
36
|
+
* },
|
|
37
|
+
* postgresql: { enabled: false }, // Disable bundled PG
|
|
38
|
+
* redis: { enabled: false }, // Disable bundled Redis
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export const inngestBootstrap = kubernetesComposition({
|
|
43
|
+
name: 'inngest-bootstrap',
|
|
44
|
+
kind: 'InngestBootstrap',
|
|
45
|
+
spec: InngestBootstrapConfigSchema,
|
|
46
|
+
status: InngestBootstrapStatusSchema,
|
|
47
|
+
}, (spec) => {
|
|
48
|
+
const resolvedNamespace = spec.namespace || 'inngest';
|
|
49
|
+
const resolvedVersion = spec.version || DEFAULT_INNGEST_VERSION;
|
|
50
|
+
// Build the config for the mapper. Cannot spread the magic proxy directly —
|
|
51
|
+
// nested proxy objects don't survive Object.assign. Access fields explicitly
|
|
52
|
+
// and use Object.assign to skip undefined (exactOptionalPropertyTypes).
|
|
53
|
+
const mapperConfig = Object.assign({ name: spec.name, inngest: spec.inngest }, spec.replicaCount !== undefined && { replicaCount: spec.replicaCount }, spec.resources && { resources: spec.resources }, spec.postgresql && { postgresql: spec.postgresql }, spec.redis && { redis: spec.redis }, spec.ingress && { ingress: spec.ingress }, spec.keda && { keda: spec.keda }, spec.nodeSelector && { nodeSelector: spec.nodeSelector }, spec.tolerations && { tolerations: spec.tolerations }, spec.customValues && { customValues: spec.customValues });
|
|
54
|
+
const helmValues = mapInngestConfigToHelmValues(mapperConfig);
|
|
55
|
+
// Resources are _-prefixed — registered via side effects in the
|
|
56
|
+
// kubernetesComposition callback. The composition captures them automatically.
|
|
57
|
+
const _inngestNamespace = namespace({
|
|
58
|
+
metadata: {
|
|
59
|
+
name: resolvedNamespace,
|
|
60
|
+
labels: {
|
|
61
|
+
'app.kubernetes.io/name': 'inngest',
|
|
62
|
+
'app.kubernetes.io/instance': spec.name,
|
|
63
|
+
'app.kubernetes.io/version': resolvedVersion,
|
|
64
|
+
'app.kubernetes.io/managed-by': 'typekro',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
id: 'inngestNamespace',
|
|
68
|
+
});
|
|
69
|
+
const _helmRepository = inngestHelmRepository({
|
|
70
|
+
name: DEFAULT_INNGEST_REPO_NAME,
|
|
71
|
+
namespace: DEFAULT_FLUX_NAMESPACE,
|
|
72
|
+
id: 'inngestHelmRepository',
|
|
73
|
+
});
|
|
74
|
+
const _helmRelease = inngestHelmRelease({
|
|
75
|
+
name: spec.name,
|
|
76
|
+
namespace: resolvedNamespace,
|
|
77
|
+
version: resolvedVersion,
|
|
78
|
+
values: helmValues,
|
|
79
|
+
repositoryName: DEFAULT_INNGEST_REPO_NAME,
|
|
80
|
+
id: 'inngestHelmRelease',
|
|
81
|
+
});
|
|
82
|
+
return {
|
|
83
|
+
ready: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True")'),
|
|
84
|
+
phase: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True") ? "Ready" : "Installing"'),
|
|
85
|
+
failed: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "False")'),
|
|
86
|
+
// Static — reflects deploy-time version, not runtime.
|
|
87
|
+
version: resolvedVersion,
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=inngest-bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inngest-bootstrap.js","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/inngest-bootstrap.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inngest Integration for TypeKro
|
|
3
|
+
*
|
|
4
|
+
* Provides type-safe deployment of Inngest on Kubernetes via the
|
|
5
|
+
* official Helm chart. Inngest is a workflow orchestration platform
|
|
6
|
+
* with no CRDs — all configuration is through Helm values.
|
|
7
|
+
*
|
|
8
|
+
* ## Resources
|
|
9
|
+
* - `inngestHelmRepository()` — OCI Helm chart repository
|
|
10
|
+
* - `inngestHelmRelease()` — Inngest deployment via Helm
|
|
11
|
+
*
|
|
12
|
+
* ## Compositions
|
|
13
|
+
* - `inngestBootstrap` — Complete deployment (namespace + Helm repo + release)
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import { inngestBootstrap } from 'typekro/inngest';
|
|
18
|
+
*
|
|
19
|
+
* const factory = inngestBootstrap.factory('kro', {
|
|
20
|
+
* namespace: 'inngest',
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* await factory.deploy({
|
|
24
|
+
* name: 'inngest',
|
|
25
|
+
* namespace: 'inngest',
|
|
26
|
+
* inngest: {
|
|
27
|
+
* eventKey: 'your-event-key',
|
|
28
|
+
* signingKey: 'your-signing-key',
|
|
29
|
+
* postgres: { uri: 'postgresql://...' },
|
|
30
|
+
* redis: { uri: 'redis://...' },
|
|
31
|
+
* },
|
|
32
|
+
* postgresql: { enabled: false },
|
|
33
|
+
* redis: { enabled: false },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see https://github.com/inngest/inngest-helm
|
|
38
|
+
* @see https://www.inngest.com/docs/self-hosting
|
|
39
|
+
* @module
|
|
40
|
+
*/
|
|
41
|
+
export * from './compositions/index.js';
|
|
42
|
+
export * from './resources/index.js';
|
|
43
|
+
export * from './types.js';
|
|
44
|
+
export * from './utils/index.js';
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factories/inngest/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inngest Integration for TypeKro
|
|
3
|
+
*
|
|
4
|
+
* Provides type-safe deployment of Inngest on Kubernetes via the
|
|
5
|
+
* official Helm chart. Inngest is a workflow orchestration platform
|
|
6
|
+
* with no CRDs — all configuration is through Helm values.
|
|
7
|
+
*
|
|
8
|
+
* ## Resources
|
|
9
|
+
* - `inngestHelmRepository()` — OCI Helm chart repository
|
|
10
|
+
* - `inngestHelmRelease()` — Inngest deployment via Helm
|
|
11
|
+
*
|
|
12
|
+
* ## Compositions
|
|
13
|
+
* - `inngestBootstrap` — Complete deployment (namespace + Helm repo + release)
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import { inngestBootstrap } from 'typekro/inngest';
|
|
18
|
+
*
|
|
19
|
+
* const factory = inngestBootstrap.factory('kro', {
|
|
20
|
+
* namespace: 'inngest',
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* await factory.deploy({
|
|
24
|
+
* name: 'inngest',
|
|
25
|
+
* namespace: 'inngest',
|
|
26
|
+
* inngest: {
|
|
27
|
+
* eventKey: 'your-event-key',
|
|
28
|
+
* signingKey: 'your-signing-key',
|
|
29
|
+
* postgres: { uri: 'postgresql://...' },
|
|
30
|
+
* redis: { uri: 'redis://...' },
|
|
31
|
+
* },
|
|
32
|
+
* postgresql: { enabled: false },
|
|
33
|
+
* redis: { enabled: false },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see https://github.com/inngest/inngest-helm
|
|
38
|
+
* @see https://www.inngest.com/docs/self-hosting
|
|
39
|
+
* @module
|
|
40
|
+
*/
|
|
41
|
+
export * from './compositions/index.js';
|
|
42
|
+
export * from './resources/index.js';
|
|
43
|
+
export * from './types.js';
|
|
44
|
+
export * from './utils/index.js';
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factories/inngest/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inngest Helm Resource Factories
|
|
3
|
+
*
|
|
4
|
+
* Wrappers around the generic Helm factories with Inngest-specific defaults.
|
|
5
|
+
* The official Inngest Helm chart is published as an OCI artifact.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/inngest/inngest-helm
|
|
8
|
+
*/
|
|
9
|
+
import type { Composable, Enhanced } from '../../../core/types/index.js';
|
|
10
|
+
import { type HelmRepositorySpec, type HelmRepositoryStatus } from '../../helm/helm-repository.js';
|
|
11
|
+
import type { HelmReleaseSpec, HelmReleaseStatus } from '../../helm/types.js';
|
|
12
|
+
import type { InngestHelmReleaseConfig, InngestHelmRepositoryConfig } from '../types.js';
|
|
13
|
+
/** Default OCI registry URL for the Inngest Helm chart. */
|
|
14
|
+
export declare const DEFAULT_INNGEST_REPO_URL = "oci://ghcr.io/inngest/inngest-helm";
|
|
15
|
+
/** Default chart version. */
|
|
16
|
+
export declare const DEFAULT_INNGEST_VERSION = "0.3.1";
|
|
17
|
+
/** Default HelmRepository resource name. */
|
|
18
|
+
export declare const DEFAULT_INNGEST_REPO_NAME = "inngest-repo";
|
|
19
|
+
/**
|
|
20
|
+
* Create a HelmRepository for the Inngest OCI chart registry.
|
|
21
|
+
*
|
|
22
|
+
* @param config - Repository configuration with Inngest-specific defaults
|
|
23
|
+
* @returns Enhanced HelmRepository resource
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const repo = inngestHelmRepository({
|
|
28
|
+
* name: 'inngest-repo',
|
|
29
|
+
* id: 'inngestHelmRepository',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function inngestHelmRepository(config: Composable<InngestHelmRepositoryConfig>): Enhanced<HelmRepositorySpec, HelmRepositoryStatus>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a HelmRelease for the Inngest deployment.
|
|
36
|
+
*
|
|
37
|
+
* @param config - Release configuration with Inngest-specific defaults
|
|
38
|
+
* @returns Enhanced HelmRelease resource
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const release = inngestHelmRelease({
|
|
43
|
+
* name: 'inngest',
|
|
44
|
+
* namespace: 'inngest',
|
|
45
|
+
* values: {
|
|
46
|
+
* inngest: { eventKey: 'abc123', signingKey: 'def456' },
|
|
47
|
+
* },
|
|
48
|
+
* id: 'inngestHelmRelease',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function inngestHelmRelease(config: Composable<InngestHelmReleaseConfig>): Enhanced<HelmReleaseSpec, HelmReleaseStatus>;
|
|
53
|
+
//# sourceMappingURL=helm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAEzF,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,6BAA6B;AAC7B,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,4CAA4C;AAC5C,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,UAAU,CAAC,2BAA2B,CAAC,GAC9C,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAkBpD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,CAAC,wBAAwB,CAAC,GAC3C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAsB9C"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inngest Helm Resource Factories
|
|
3
|
+
*
|
|
4
|
+
* Wrappers around the generic Helm factories with Inngest-specific defaults.
|
|
5
|
+
* The official Inngest Helm chart is published as an OCI artifact.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/inngest/inngest-helm
|
|
8
|
+
*/
|
|
9
|
+
import { DEFAULT_FLUX_NAMESPACE } from '../../../core/config/defaults.js';
|
|
10
|
+
import { setMetadataField } from '../../../core/metadata/resource-metadata.js';
|
|
11
|
+
import { createHelmRepositoryReadinessEvaluator, helmRepository, } from '../../helm/helm-repository.js';
|
|
12
|
+
import { createLabeledHelmReleaseEvaluator } from '../../helm/readiness-evaluators.js';
|
|
13
|
+
import { helmRelease } from '../../helm/helm-release.js';
|
|
14
|
+
/** Default OCI registry URL for the Inngest Helm chart. */
|
|
15
|
+
export const DEFAULT_INNGEST_REPO_URL = 'oci://ghcr.io/inngest/inngest-helm';
|
|
16
|
+
/** Default chart version. */
|
|
17
|
+
export const DEFAULT_INNGEST_VERSION = '0.3.1';
|
|
18
|
+
/** Default HelmRepository resource name. */
|
|
19
|
+
export const DEFAULT_INNGEST_REPO_NAME = 'inngest-repo';
|
|
20
|
+
/**
|
|
21
|
+
* Create a HelmRepository for the Inngest OCI chart registry.
|
|
22
|
+
*
|
|
23
|
+
* @param config - Repository configuration with Inngest-specific defaults
|
|
24
|
+
* @returns Enhanced HelmRepository resource
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const repo = inngestHelmRepository({
|
|
29
|
+
* name: 'inngest-repo',
|
|
30
|
+
* id: 'inngestHelmRepository',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export function inngestHelmRepository(config) {
|
|
35
|
+
const repo = helmRepository({
|
|
36
|
+
name: config.name || DEFAULT_INNGEST_REPO_NAME,
|
|
37
|
+
namespace: config.namespace || DEFAULT_FLUX_NAMESPACE,
|
|
38
|
+
url: config.url || DEFAULT_INNGEST_REPO_URL,
|
|
39
|
+
type: 'oci',
|
|
40
|
+
interval: config.interval || '5m',
|
|
41
|
+
...(config.id && { id: config.id }),
|
|
42
|
+
}).withReadinessEvaluator(createHelmRepositoryReadinessEvaluator('Inngest'));
|
|
43
|
+
// HelmRepositories in flux-system are shared cluster-level resources.
|
|
44
|
+
// They should survive instance deletion — multiple compositions can
|
|
45
|
+
// reference the same repo.
|
|
46
|
+
setMetadataField(repo, 'lifecycle', 'shared');
|
|
47
|
+
return repo;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Create a HelmRelease for the Inngest deployment.
|
|
51
|
+
*
|
|
52
|
+
* @param config - Release configuration with Inngest-specific defaults
|
|
53
|
+
* @returns Enhanced HelmRelease resource
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const release = inngestHelmRelease({
|
|
58
|
+
* name: 'inngest',
|
|
59
|
+
* namespace: 'inngest',
|
|
60
|
+
* values: {
|
|
61
|
+
* inngest: { eventKey: 'abc123', signingKey: 'def456' },
|
|
62
|
+
* },
|
|
63
|
+
* id: 'inngestHelmRelease',
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export function inngestHelmRelease(config) {
|
|
68
|
+
// Pass values directly to helmRelease — the core proxy system handles
|
|
69
|
+
// serialization of KubernetesRef and CelExpression objects correctly.
|
|
70
|
+
// Do NOT sanitize/strip proxy references here.
|
|
71
|
+
return helmRelease({
|
|
72
|
+
name: config.name,
|
|
73
|
+
namespace: config.namespace || 'inngest',
|
|
74
|
+
chart: {
|
|
75
|
+
repository: DEFAULT_INNGEST_REPO_URL,
|
|
76
|
+
name: 'inngest',
|
|
77
|
+
version: config.version || DEFAULT_INNGEST_VERSION,
|
|
78
|
+
},
|
|
79
|
+
sourceRef: {
|
|
80
|
+
name: config.repositoryName || DEFAULT_INNGEST_REPO_NAME,
|
|
81
|
+
namespace: DEFAULT_FLUX_NAMESPACE,
|
|
82
|
+
kind: 'HelmRepository',
|
|
83
|
+
},
|
|
84
|
+
values: config.values || {},
|
|
85
|
+
...(config.id && { id: config.id }),
|
|
86
|
+
}).withReadinessEvaluator(createLabeledHelmReleaseEvaluator('Inngest'));
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=helm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAE/E,OAAO,EACL,sCAAsC,EACtC,cAAc,GAGf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,2DAA2D;AAC3D,MAAM,CAAC,MAAM,wBAAwB,GAAG,oCAAoC,CAAC;AAE7E,6BAA6B;AAC7B,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAE/C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAA+C;IAE/C,MAAM,IAAI,GAAG,cAAc,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,yBAAyB;QAC9C,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,sBAAsB;QACrD,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,wBAAwB;QAC3C,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,IAAI;QACjC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,CAAC,CAAC,sBAAsB,CACvB,sCAAsC,CAAC,SAAS,CAAC,CACI,CAAC;IAExD,sEAAsE;IACtE,oEAAoE;IACpE,2BAA2B;IAC3B,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAE9C,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAA4C;IAE5C,sEAAsE;IACtE,sEAAsE;IACtE,+CAA+C;IAC/C,OAAO,WAAW,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,SAAS;QACxC,KAAK,EAAE;YACL,UAAU,EAAE,wBAAwB;YACpC,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,uBAAuB;SACnD;QACD,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC,cAAc,IAAI,yBAAyB;YACxD,SAAS,EAAE,sBAAsB;YACjC,IAAI,EAAE,gBAAgB;SACvB;QACD,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;QAC3B,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,CAAC,CAAC,sBAAsB,CACvB,iCAAiC,CAAC,SAAS,CAAC,CACG,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|