typekro 0.3.0 → 0.4.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 +142 -1054
- package/dist/.tsbuildinfo +1 -1
- package/dist/alchemy/deployers.d.ts +0 -5
- package/dist/alchemy/deployers.d.ts.map +1 -1
- package/dist/alchemy/deployers.js +25 -72
- package/dist/alchemy/deployers.js.map +1 -1
- package/dist/core/composition/imperative.d.ts +2 -2
- package/dist/core/composition/imperative.d.ts.map +1 -1
- package/dist/core/composition/imperative.js +394 -10
- package/dist/core/composition/imperative.js.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts +1 -9
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.js +76 -10
- package/dist/core/composition/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/composition/typekro-runtime/types.d.ts +8 -5
- package/dist/core/composition/typekro-runtime/types.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/types.js.map +1 -1
- package/dist/core/constants/brands.d.ts +20 -0
- package/dist/core/constants/brands.d.ts.map +1 -1
- package/dist/core/constants/brands.js +20 -0
- package/dist/core/constants/brands.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +36 -1
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +289 -4
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +57 -2
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +677 -49
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/event-filter.d.ts.map +1 -1
- package/dist/core/deployment/event-filter.js +6 -7
- package/dist/core/deployment/event-filter.js.map +1 -1
- package/dist/core/deployment/event-monitor.d.ts +36 -2
- package/dist/core/deployment/event-monitor.d.ts.map +1 -1
- package/dist/core/deployment/event-monitor.js +183 -33
- package/dist/core/deployment/event-monitor.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts +22 -0
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +291 -27
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/readiness.d.ts.map +1 -1
- package/dist/core/deployment/readiness.js +4 -2
- package/dist/core/deployment/readiness.js.map +1 -1
- package/dist/core/deployment/rollback-manager.d.ts +2 -1
- package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
- package/dist/core/deployment/rollback-manager.js +5 -2
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/deployment/shared-utilities.js.map +1 -1
- package/dist/core/deployment/status-hydrator.d.ts +1 -1
- package/dist/core/deployment/status-hydrator.d.ts.map +1 -1
- package/dist/core/deployment/status-hydrator.js +8 -5
- package/dist/core/deployment/status-hydrator.js.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.js +60 -21
- package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.d.ts +7 -0
- package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.js +50 -0
- package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.d.ts +5 -0
- package/dist/core/deployment/strategies/kro-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.js +53 -4
- package/dist/core/deployment/strategies/kro-strategy.js.map +1 -1
- package/dist/core/evaluation/cel-optimizer.d.ts.map +1 -1
- package/dist/core/evaluation/cel-optimizer.js +7 -13
- package/dist/core/evaluation/cel-optimizer.js.map +1 -1
- package/dist/core/expressions/analyzer.d.ts +6 -6
- package/dist/core/expressions/analyzer.d.ts.map +1 -1
- package/dist/core/expressions/analyzer.js +40 -75
- package/dist/core/expressions/analyzer.js.map +1 -1
- package/dist/core/expressions/cel-conversion-engine.d.ts.map +1 -1
- package/dist/core/expressions/cel-conversion-engine.js +10 -11
- package/dist/core/expressions/cel-conversion-engine.js.map +1 -1
- package/dist/core/expressions/composition-integration.d.ts +2 -2
- package/dist/core/expressions/composition-integration.d.ts.map +1 -1
- package/dist/core/expressions/composition-integration.js +20 -12
- package/dist/core/expressions/composition-integration.js.map +1 -1
- package/dist/core/expressions/field-hydration-processor.d.ts +4 -1
- package/dist/core/expressions/field-hydration-processor.d.ts.map +1 -1
- package/dist/core/expressions/field-hydration-processor.js +12 -13
- package/dist/core/expressions/field-hydration-processor.js.map +1 -1
- package/dist/core/expressions/imperative-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/imperative-analyzer.js +193 -49
- package/dist/core/expressions/imperative-analyzer.js.map +1 -1
- package/dist/core/expressions/index.d.ts +2 -0
- package/dist/core/expressions/index.d.ts.map +1 -1
- package/dist/core/expressions/index.js +2 -0
- package/dist/core/expressions/index.js.map +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.d.ts +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.js +8 -7
- package/dist/core/expressions/magic-proxy-analyzer.js.map +1 -1
- package/dist/core/expressions/parser.d.ts +163 -0
- package/dist/core/expressions/parser.d.ts.map +1 -0
- package/dist/core/expressions/parser.js +272 -0
- package/dist/core/expressions/parser.js.map +1 -0
- package/dist/core/expressions/status-builder-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/status-builder-analyzer.js +15 -5
- package/dist/core/expressions/status-builder-analyzer.js.map +1 -1
- package/dist/core/kubernetes/api.d.ts.map +1 -1
- package/dist/core/kubernetes/api.js +5 -6
- package/dist/core/kubernetes/api.js.map +1 -1
- package/dist/core/kubernetes/bun-api-client.d.ts +95 -0
- package/dist/core/kubernetes/bun-api-client.d.ts.map +1 -0
- package/dist/core/kubernetes/bun-api-client.js +160 -0
- package/dist/core/kubernetes/bun-api-client.js.map +1 -0
- package/dist/core/kubernetes/bun-http-library.d.ts +38 -0
- package/dist/core/kubernetes/bun-http-library.d.ts.map +1 -0
- package/dist/core/kubernetes/bun-http-library.js +133 -0
- package/dist/core/kubernetes/bun-http-library.js.map +1 -0
- package/dist/core/kubernetes/client-provider.d.ts +3 -0
- package/dist/core/kubernetes/client-provider.d.ts.map +1 -1
- package/dist/core/kubernetes/client-provider.js +32 -23
- package/dist/core/kubernetes/client-provider.js.map +1 -1
- package/dist/core/kubernetes/errors.d.ts +189 -0
- package/dist/core/kubernetes/errors.d.ts.map +1 -0
- package/dist/core/kubernetes/errors.js +298 -0
- package/dist/core/kubernetes/errors.js.map +1 -0
- package/dist/core/kubernetes/index.d.ts +19 -0
- package/dist/core/kubernetes/index.d.ts.map +1 -0
- package/dist/core/kubernetes/index.js +23 -0
- package/dist/core/kubernetes/index.js.map +1 -0
- package/dist/core/kubernetes/type-guards.d.ts +142 -0
- package/dist/core/kubernetes/type-guards.d.ts.map +1 -0
- package/dist/core/kubernetes/type-guards.js +151 -0
- package/dist/core/kubernetes/type-guards.js.map +1 -0
- package/dist/core/logging/logger.d.ts.map +1 -1
- package/dist/core/logging/logger.js +8 -0
- package/dist/core/logging/logger.js.map +1 -1
- package/dist/core/readiness/cluster-state.d.ts.map +1 -1
- package/dist/core/readiness/cluster-state.js +6 -4
- package/dist/core/readiness/cluster-state.js.map +1 -1
- package/dist/core/references/cel-evaluator.d.ts.map +1 -1
- package/dist/core/references/cel-evaluator.js +12 -2
- package/dist/core/references/cel-evaluator.js.map +1 -1
- package/dist/core/references/cel.d.ts +13 -1
- package/dist/core/references/cel.d.ts.map +1 -1
- package/dist/core/references/cel.js +50 -0
- package/dist/core/references/cel.js.map +1 -1
- package/dist/core/references/resolver.d.ts +28 -1
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +325 -11
- 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 +27 -13
- package/dist/core/references/schema-proxy.js.map +1 -1
- package/dist/core/scope/resolver.d.ts +16 -0
- package/dist/core/scope/resolver.d.ts.map +1 -0
- package/dist/core/scope/resolver.js +45 -0
- package/dist/core/scope/resolver.js.map +1 -0
- package/dist/core/serialization/core.d.ts +1 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +78 -54
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/types/common.d.ts +23 -1
- package/dist/core/types/common.d.ts.map +1 -1
- package/dist/core/types/deployment.d.ts +71 -1
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/deployment.js +24 -0
- package/dist/core/types/deployment.js.map +1 -1
- package/dist/core/types/factory-scope.d.ts +42 -0
- package/dist/core/types/factory-scope.d.ts.map +1 -0
- package/dist/core/types/factory-scope.js +14 -0
- package/dist/core/types/factory-scope.js.map +1 -0
- package/dist/core/types/kubernetes.d.ts +146 -4
- package/dist/core/types/kubernetes.d.ts.map +1 -1
- package/dist/core/types/references.d.ts +47 -3
- package/dist/core/types/references.d.ts.map +1 -1
- package/dist/core/types/references.js.map +1 -1
- package/dist/core/types/serialization.d.ts +17 -6
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/utils/crd-patcher.d.ts +30 -0
- package/dist/core/utils/crd-patcher.d.ts.map +1 -0
- package/dist/core/utils/crd-patcher.js +198 -0
- package/dist/core/utils/crd-patcher.js.map +1 -0
- package/dist/core/utils/crd-schema-fix.d.ts +108 -0
- package/dist/core/utils/crd-schema-fix.d.ts.map +1 -0
- package/dist/core/utils/crd-schema-fix.js +245 -0
- package/dist/core/utils/crd-schema-fix.js.map +1 -0
- package/dist/core/utils/index.d.ts +12 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/index.js +12 -0
- package/dist/core/utils/index.js.map +1 -0
- package/dist/core/utils/minimal-connection-reset-suppression.d.ts +16 -0
- package/dist/core/utils/minimal-connection-reset-suppression.d.ts.map +1 -0
- package/dist/core/utils/minimal-connection-reset-suppression.js +72 -0
- package/dist/core/utils/minimal-connection-reset-suppression.js.map +1 -0
- package/dist/core/utils/output-filter.d.ts +16 -0
- package/dist/core/utils/output-filter.d.ts.map +1 -0
- package/dist/core/utils/output-filter.js +90 -0
- package/dist/core/utils/output-filter.js.map +1 -0
- package/dist/core/utils/scoped-error-suppression.d.ts +25 -0
- package/dist/core/utils/scoped-error-suppression.d.ts.map +1 -0
- package/dist/core/utils/scoped-error-suppression.js +226 -0
- package/dist/core/utils/scoped-error-suppression.js.map +1 -0
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +51 -15
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts +38 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.js +280 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -0
- package/dist/factories/apisix/compositions/index.d.ts +5 -0
- package/dist/factories/apisix/compositions/index.d.ts.map +1 -0
- package/dist/factories/apisix/compositions/index.js +5 -0
- package/dist/factories/apisix/compositions/index.js.map +1 -0
- package/dist/factories/apisix/index.d.ts +11 -0
- package/dist/factories/apisix/index.d.ts.map +1 -0
- package/dist/factories/apisix/index.js +11 -0
- package/dist/factories/apisix/index.js.map +1 -0
- package/dist/factories/apisix/resources/helm.d.ts +59 -0
- package/dist/factories/apisix/resources/helm.d.ts.map +1 -0
- package/dist/factories/apisix/resources/helm.js +175 -0
- package/dist/factories/apisix/resources/helm.js.map +1 -0
- package/dist/factories/apisix/resources/index.d.ts +5 -0
- package/dist/factories/apisix/resources/index.d.ts.map +1 -0
- package/dist/factories/apisix/resources/index.js +5 -0
- package/dist/factories/apisix/resources/index.js.map +1 -0
- package/dist/factories/apisix/types.d.ts +339 -0
- package/dist/factories/apisix/types.d.ts.map +1 -0
- package/dist/factories/apisix/types.js +88 -0
- package/dist/factories/apisix/types.js.map +1 -0
- package/dist/factories/apisix/utils/helm-values-mapper.d.ts +19 -0
- package/dist/factories/apisix/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/apisix/utils/helm-values-mapper.js +108 -0
- package/dist/factories/apisix/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/apisix/utils/index.d.ts +5 -0
- package/dist/factories/apisix/utils/index.d.ts.map +1 -0
- package/dist/factories/apisix/utils/index.js +5 -0
- package/dist/factories/apisix/utils/index.js.map +1 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts +45 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts.map +1 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js +323 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js.map +1 -0
- package/dist/factories/cert-manager/compositions/index.d.ts +2 -0
- package/dist/factories/cert-manager/compositions/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/compositions/index.js +2 -0
- package/dist/factories/cert-manager/compositions/index.js.map +1 -0
- package/dist/factories/cert-manager/index.d.ts +10 -0
- package/dist/factories/cert-manager/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/index.js +19 -0
- package/dist/factories/cert-manager/index.js.map +1 -0
- package/dist/factories/cert-manager/resources/certificates.d.ts +39 -0
- package/dist/factories/cert-manager/resources/certificates.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/certificates.js +132 -0
- package/dist/factories/cert-manager/resources/certificates.js.map +1 -0
- package/dist/factories/cert-manager/resources/challenges.d.ts +113 -0
- package/dist/factories/cert-manager/resources/challenges.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/challenges.js +281 -0
- package/dist/factories/cert-manager/resources/challenges.js.map +1 -0
- package/dist/factories/cert-manager/resources/helm.d.ts +57 -0
- package/dist/factories/cert-manager/resources/helm.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/helm.js +390 -0
- package/dist/factories/cert-manager/resources/helm.js.map +1 -0
- package/dist/factories/cert-manager/resources/index.d.ts +5 -0
- package/dist/factories/cert-manager/resources/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/index.js +6 -0
- package/dist/factories/cert-manager/resources/index.js.map +1 -0
- package/dist/factories/cert-manager/resources/issuers.d.ts +79 -0
- package/dist/factories/cert-manager/resources/issuers.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/issuers.js +204 -0
- package/dist/factories/cert-manager/resources/issuers.js.map +1 -0
- package/dist/factories/cert-manager/types.d.ts +1015 -0
- package/dist/factories/cert-manager/types.d.ts.map +1 -0
- package/dist/factories/cert-manager/types.js +198 -0
- package/dist/factories/cert-manager/types.js.map +1 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts +19 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.js +117 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/cert-manager/utils/index.d.ts +2 -0
- package/dist/factories/cert-manager/utils/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/utils/index.js +2 -0
- package/dist/factories/cert-manager/utils/index.js.map +1 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts +220 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts.map +1 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.js +293 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.js.map +1 -0
- package/dist/factories/cilium/compositions/index.d.ts +8 -0
- package/dist/factories/cilium/compositions/index.d.ts.map +1 -0
- package/dist/factories/cilium/compositions/index.js +11 -0
- package/dist/factories/cilium/compositions/index.js.map +1 -0
- package/dist/factories/cilium/index.d.ts +10 -0
- package/dist/factories/cilium/index.d.ts.map +1 -0
- package/dist/factories/cilium/index.js +19 -0
- package/dist/factories/cilium/index.js.map +1 -0
- package/dist/factories/cilium/resources/bgp.d.ts +10 -0
- package/dist/factories/cilium/resources/bgp.d.ts.map +1 -0
- package/dist/factories/cilium/resources/bgp.js +14 -0
- package/dist/factories/cilium/resources/bgp.js.map +1 -0
- package/dist/factories/cilium/resources/gateway.d.ts +72 -0
- package/dist/factories/cilium/resources/gateway.d.ts.map +1 -0
- package/dist/factories/cilium/resources/gateway.js +118 -0
- package/dist/factories/cilium/resources/gateway.js.map +1 -0
- package/dist/factories/cilium/resources/helm.d.ts +93 -0
- package/dist/factories/cilium/resources/helm.d.ts.map +1 -0
- package/dist/factories/cilium/resources/helm.js +377 -0
- package/dist/factories/cilium/resources/helm.js.map +1 -0
- package/dist/factories/cilium/resources/index.d.ts +14 -0
- package/dist/factories/cilium/resources/index.d.ts.map +1 -0
- package/dist/factories/cilium/resources/index.js +35 -0
- package/dist/factories/cilium/resources/index.js.map +1 -0
- package/dist/factories/cilium/resources/load-balancer.d.ts +9 -0
- package/dist/factories/cilium/resources/load-balancer.d.ts.map +1 -0
- package/dist/factories/cilium/resources/load-balancer.js +12 -0
- package/dist/factories/cilium/resources/load-balancer.js.map +1 -0
- package/dist/factories/cilium/resources/networking.d.ts +202 -0
- package/dist/factories/cilium/resources/networking.d.ts.map +1 -0
- package/dist/factories/cilium/resources/networking.js +581 -0
- package/dist/factories/cilium/resources/networking.js.map +1 -0
- package/dist/factories/cilium/resources/observability.d.ts +9 -0
- package/dist/factories/cilium/resources/observability.d.ts.map +1 -0
- package/dist/factories/cilium/resources/observability.js +11 -0
- package/dist/factories/cilium/resources/observability.js.map +1 -0
- package/dist/factories/cilium/resources/security.d.ts +10 -0
- package/dist/factories/cilium/resources/security.d.ts.map +1 -0
- package/dist/factories/cilium/resources/security.js +14 -0
- package/dist/factories/cilium/resources/security.js.map +1 -0
- package/dist/factories/cilium/types.d.ts +1001 -0
- package/dist/factories/cilium/types.d.ts.map +1 -0
- package/dist/factories/cilium/types.js +79 -0
- package/dist/factories/cilium/types.js.map +1 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts +32 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts.map +1 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js +152 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js.map +1 -0
- package/dist/factories/external-dns/compositions/index.d.ts +2 -0
- package/dist/factories/external-dns/compositions/index.d.ts.map +1 -0
- package/dist/factories/external-dns/compositions/index.js +3 -0
- package/dist/factories/external-dns/compositions/index.js.map +1 -0
- package/dist/factories/external-dns/index.d.ts +10 -0
- package/dist/factories/external-dns/index.d.ts.map +1 -0
- package/dist/factories/external-dns/index.js +19 -0
- package/dist/factories/external-dns/index.js.map +1 -0
- package/dist/factories/external-dns/resources/dns-endpoint.d.ts +54 -0
- package/dist/factories/external-dns/resources/dns-endpoint.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/dns-endpoint.js +53 -0
- package/dist/factories/external-dns/resources/dns-endpoint.js.map +1 -0
- package/dist/factories/external-dns/resources/helm.d.ts +57 -0
- package/dist/factories/external-dns/resources/helm.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/helm.js +435 -0
- package/dist/factories/external-dns/resources/helm.js.map +1 -0
- package/dist/factories/external-dns/resources/index.d.ts +3 -0
- package/dist/factories/external-dns/resources/index.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/index.js +4 -0
- package/dist/factories/external-dns/resources/index.js.map +1 -0
- package/dist/factories/external-dns/types.d.ts +180 -0
- package/dist/factories/external-dns/types.d.ts.map +1 -0
- package/dist/factories/external-dns/types.js +39 -0
- package/dist/factories/external-dns/types.js.map +1 -0
- package/dist/factories/flux/git-repository.d.ts +2 -2
- package/dist/factories/flux/git-repository.d.ts.map +1 -1
- package/dist/factories/helm/types.d.ts +24 -3
- package/dist/factories/helm/types.d.ts.map +1 -1
- package/dist/factories/index.d.ts +7 -1
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +21 -1
- package/dist/factories/index.js.map +1 -1
- package/dist/factories/kubernetes/config/config-map.d.ts +4 -1
- package/dist/factories/kubernetes/config/config-map.d.ts.map +1 -1
- package/dist/factories/kubernetes/config/config-map.js +4 -0
- package/dist/factories/kubernetes/config/config-map.js.map +1 -1
- package/dist/factories/kubernetes/config/secret.d.ts +6 -1
- package/dist/factories/kubernetes/config/secret.d.ts.map +1 -1
- package/dist/factories/kubernetes/config/secret.js +4 -0
- package/dist/factories/kubernetes/config/secret.js.map +1 -1
- package/dist/factories/kubernetes/networking/service.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/service.js +6 -1
- package/dist/factories/kubernetes/networking/service.js.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.d.ts.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.d.ts.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.js +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.js.map +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.d.ts.map +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.js +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.js.map +1 -1
- package/dist/factories/kubernetes/storage/storage-class.d.ts.map +1 -1
- package/dist/factories/kubernetes/storage/storage-class.js +1 -1
- package/dist/factories/kubernetes/storage/storage-class.js.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.js +9 -4
- package/dist/factories/kubernetes/workloads/deployment.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.js +2 -2
- package/dist/factories/kubernetes/yaml/yaml-directory.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts +31 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.js +80 -7
- package/dist/factories/kubernetes/yaml/yaml-file.js.map +1 -1
- package/dist/factories/pebble/compositions/index.d.ts +2 -0
- package/dist/factories/pebble/compositions/index.d.ts.map +1 -0
- package/dist/factories/pebble/compositions/index.js +3 -0
- package/dist/factories/pebble/compositions/index.js.map +1 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts +56 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts.map +1 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.js +97 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.js.map +1 -0
- package/dist/factories/pebble/index.d.ts +10 -0
- package/dist/factories/pebble/index.d.ts.map +1 -0
- package/dist/factories/pebble/index.js +19 -0
- package/dist/factories/pebble/index.js.map +1 -0
- package/dist/factories/pebble/resources/helm.d.ts +99 -0
- package/dist/factories/pebble/resources/helm.d.ts.map +1 -0
- package/dist/factories/pebble/resources/helm.js +167 -0
- package/dist/factories/pebble/resources/helm.js.map +1 -0
- package/dist/factories/pebble/resources/index.d.ts +2 -0
- package/dist/factories/pebble/resources/index.d.ts.map +1 -0
- package/dist/factories/pebble/resources/index.js +3 -0
- package/dist/factories/pebble/resources/index.js.map +1 -0
- package/dist/factories/pebble/types.d.ts +184 -0
- package/dist/factories/pebble/types.d.ts.map +1 -0
- package/dist/factories/pebble/types.js +23 -0
- package/dist/factories/pebble/types.js.map +1 -0
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts +21 -0
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/pebble/utils/helm-values-mapper.js +96 -0
- package/dist/factories/pebble/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/shared.d.ts +18 -1
- package/dist/factories/shared.d.ts.map +1 -1
- package/dist/factories/shared.js +89 -8
- package/dist/factories/shared.js.map +1 -1
- package/dist/factories/simple/config/config-map.d.ts +7 -2
- package/dist/factories/simple/config/config-map.d.ts.map +1 -1
- package/dist/factories/simple/config/config-map.js +3 -0
- package/dist/factories/simple/config/config-map.js.map +1 -1
- package/dist/factories/simple/config/secret.d.ts +11 -2
- package/dist/factories/simple/config/secret.d.ts.map +1 -1
- package/dist/factories/simple/config/secret.js +23 -1
- package/dist/factories/simple/config/secret.js.map +1 -1
- package/dist/factories/simple/storage/persistent-volume-claim.d.ts.map +1 -1
- package/dist/factories/simple/storage/persistent-volume-claim.js +1 -0
- package/dist/factories/simple/storage/persistent-volume-claim.js.map +1 -1
- package/dist/factories/simple/types.d.ts +5 -1
- package/dist/factories/simple/types.d.ts.map +1 -1
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +67 -0
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/type-guards.d.ts +5 -0
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +9 -3
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +49 -5
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium Helm Integration Resources
|
|
3
|
+
*
|
|
4
|
+
* This module provides wrapper functions for creating Helm resources specifically
|
|
5
|
+
* configured for Cilium deployments. These functions wrap the generic Helm factories
|
|
6
|
+
* from src/factories/helm/ and provide Cilium-specific configuration interfaces
|
|
7
|
+
* while reusing existing readiness evaluators.
|
|
8
|
+
*/
|
|
9
|
+
import type { CiliumBootstrapConfig, CiliumHelmRepositoryConfig, CiliumHelmReleaseConfig, CiliumHelmValues } from '../types.js';
|
|
10
|
+
import type { HelmReleaseSpec, HelmReleaseStatus } from '../../helm/types.js';
|
|
11
|
+
import type { HelmRepositorySpec, HelmRepositoryStatus } from '../../helm/helm-repository.js';
|
|
12
|
+
export declare function ciliumHelmRepository(config: CiliumHelmRepositoryConfig): import("../../index.js").Enhanced<HelmRepositorySpec, HelmRepositoryStatus>;
|
|
13
|
+
/**
|
|
14
|
+
* Wrapper function for creating Cilium HelmRelease resources
|
|
15
|
+
*
|
|
16
|
+
* This function wraps the generic `helmRelease` factory and provides
|
|
17
|
+
* Cilium-specific configuration with proper chart reference and values mapping.
|
|
18
|
+
* It reuses the existing Helm readiness evaluator.
|
|
19
|
+
*
|
|
20
|
+
* @param config - Cilium HelmRelease configuration
|
|
21
|
+
* @returns Enhanced HelmRelease resource with Cilium-specific configuration
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Basic Cilium release:
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const release = ciliumHelmRelease({
|
|
27
|
+
* name: 'cilium',
|
|
28
|
+
* namespace: 'kube-system',
|
|
29
|
+
* version: '1.18.1',
|
|
30
|
+
* repositoryName: 'cilium',
|
|
31
|
+
* repositoryNamespace: 'flux-system'
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* Release with custom values:
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const release = ciliumHelmRelease({
|
|
39
|
+
* name: 'cilium',
|
|
40
|
+
* namespace: 'kube-system',
|
|
41
|
+
* version: '1.18.1',
|
|
42
|
+
* repositoryName: 'cilium',
|
|
43
|
+
* repositoryNamespace: 'flux-system',
|
|
44
|
+
* values: {
|
|
45
|
+
* cluster: { name: 'production', id: 1 },
|
|
46
|
+
* kubeProxyReplacement: 'strict'
|
|
47
|
+
* }
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function ciliumHelmRelease(config: CiliumHelmReleaseConfig): import("../../index.js").Enhanced<HelmReleaseSpec, HelmReleaseStatus>;
|
|
52
|
+
/**
|
|
53
|
+
* Maps Cilium bootstrap configuration to Helm values
|
|
54
|
+
*
|
|
55
|
+
* This function converts the TypeKro CiliumBootstrapConfig interface
|
|
56
|
+
* to the Helm values format expected by the Cilium chart.
|
|
57
|
+
*
|
|
58
|
+
* @param config - Cilium bootstrap configuration
|
|
59
|
+
* @returns Helm values object for Cilium chart
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* const config: CiliumBootstrapConfig = {
|
|
64
|
+
* cluster: { name: 'production', id: 1 },
|
|
65
|
+
* networking: { kubeProxyReplacement: 'strict' }
|
|
66
|
+
* };
|
|
67
|
+
* const helmValues = mapCiliumConfigToHelmValues(config);
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare function mapCiliumConfigToHelmValues(config: CiliumBootstrapConfig): CiliumHelmValues;
|
|
71
|
+
/**
|
|
72
|
+
* Validates Cilium Helm values configuration
|
|
73
|
+
*
|
|
74
|
+
* This function validates that the generated Helm values are compatible
|
|
75
|
+
* with the Cilium chart and contain all required fields.
|
|
76
|
+
*
|
|
77
|
+
* @param values - Helm values to validate
|
|
78
|
+
* @returns Validation result with any errors
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const values = mapCiliumConfigToHelmValues(config);
|
|
83
|
+
* const validation = validateCiliumHelmValues(values);
|
|
84
|
+
* if (!validation.valid) {
|
|
85
|
+
* console.error('Validation errors:', validation.errors);
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function validateCiliumHelmValues(values: CiliumHelmValues): {
|
|
90
|
+
valid: boolean;
|
|
91
|
+
errors: string[];
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=helm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAmD9F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,+EAkBtE;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,yEA6BhE;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,qBAAqB,GAAG,gBAAgB,CAgK3F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG;IAClE,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAmEA"}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium Helm Integration Resources
|
|
3
|
+
*
|
|
4
|
+
* This module provides wrapper functions for creating Helm resources specifically
|
|
5
|
+
* configured for Cilium deployments. These functions wrap the generic Helm factories
|
|
6
|
+
* from src/factories/helm/ and provide Cilium-specific configuration interfaces
|
|
7
|
+
* while reusing existing readiness evaluators.
|
|
8
|
+
*/
|
|
9
|
+
import { createResource } from '../../shared.js';
|
|
10
|
+
import { helmReleaseReadinessEvaluator } from '../../helm/readiness-evaluators.js';
|
|
11
|
+
// =============================================================================
|
|
12
|
+
// CILIUM HELM REPOSITORY WRAPPER
|
|
13
|
+
// =============================================================================
|
|
14
|
+
/**
|
|
15
|
+
* Wrapper function for creating Cilium HelmRepository resources
|
|
16
|
+
*
|
|
17
|
+
* This function wraps the generic `helmRepository` factory and provides
|
|
18
|
+
* Cilium-specific configuration with proper defaults and validation.
|
|
19
|
+
* It reuses the existing Helm readiness evaluator.
|
|
20
|
+
*
|
|
21
|
+
* @param config - Cilium HelmRepository configuration
|
|
22
|
+
* @returns Enhanced HelmRepository resource with Cilium-specific settings
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* Basic Cilium repository:
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const repo = ciliumHelmRepository({
|
|
28
|
+
* name: 'cilium',
|
|
29
|
+
* namespace: 'flux-system'
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* Repository with custom settings:
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const repo = ciliumHelmRepository({
|
|
37
|
+
* name: 'cilium-repo',
|
|
38
|
+
* namespace: 'flux-system',
|
|
39
|
+
* interval: '10m',
|
|
40
|
+
* timeout: '5m'
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* Simple readiness evaluator for HelmRepository resources
|
|
46
|
+
* HelmRepository is ready when it has a Ready condition with status True
|
|
47
|
+
*/
|
|
48
|
+
function ciliumHelmRepositoryReadinessEvaluator(resource) {
|
|
49
|
+
const conditions = resource.status?.conditions || [];
|
|
50
|
+
const readyCondition = conditions.find((c) => c.type === 'Ready');
|
|
51
|
+
const isReady = readyCondition?.status === 'True';
|
|
52
|
+
return {
|
|
53
|
+
ready: isReady,
|
|
54
|
+
message: isReady ? 'HelmRepository is ready' : 'HelmRepository is not ready',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function ciliumHelmRepository(config) {
|
|
58
|
+
// For Kro deployments, we need to avoid status expectations that conflict with actual Flux status
|
|
59
|
+
// Create the resource directly without status template to avoid Kro controller conflicts
|
|
60
|
+
return createResource({
|
|
61
|
+
...(config.id && { id: config.id }),
|
|
62
|
+
apiVersion: 'source.toolkit.fluxcd.io/v1',
|
|
63
|
+
kind: 'HelmRepository',
|
|
64
|
+
metadata: {
|
|
65
|
+
name: config.name,
|
|
66
|
+
...(config.namespace && { namespace: config.namespace }),
|
|
67
|
+
},
|
|
68
|
+
spec: {
|
|
69
|
+
url: 'https://helm.cilium.io/',
|
|
70
|
+
interval: config.interval || '5m',
|
|
71
|
+
type: 'default',
|
|
72
|
+
},
|
|
73
|
+
// Omit status template to avoid conflicts with Kro controller
|
|
74
|
+
}).withReadinessEvaluator(ciliumHelmRepositoryReadinessEvaluator);
|
|
75
|
+
}
|
|
76
|
+
// =============================================================================
|
|
77
|
+
// CILIUM HELM RELEASE WRAPPER
|
|
78
|
+
// =============================================================================
|
|
79
|
+
/**
|
|
80
|
+
* Wrapper function for creating Cilium HelmRelease resources
|
|
81
|
+
*
|
|
82
|
+
* This function wraps the generic `helmRelease` factory and provides
|
|
83
|
+
* Cilium-specific configuration with proper chart reference and values mapping.
|
|
84
|
+
* It reuses the existing Helm readiness evaluator.
|
|
85
|
+
*
|
|
86
|
+
* @param config - Cilium HelmRelease configuration
|
|
87
|
+
* @returns Enhanced HelmRelease resource with Cilium-specific configuration
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* Basic Cilium release:
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const release = ciliumHelmRelease({
|
|
93
|
+
* name: 'cilium',
|
|
94
|
+
* namespace: 'kube-system',
|
|
95
|
+
* version: '1.18.1',
|
|
96
|
+
* repositoryName: 'cilium',
|
|
97
|
+
* repositoryNamespace: 'flux-system'
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* Release with custom values:
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const release = ciliumHelmRelease({
|
|
105
|
+
* name: 'cilium',
|
|
106
|
+
* namespace: 'kube-system',
|
|
107
|
+
* version: '1.18.1',
|
|
108
|
+
* repositoryName: 'cilium',
|
|
109
|
+
* repositoryNamespace: 'flux-system',
|
|
110
|
+
* values: {
|
|
111
|
+
* cluster: { name: 'production', id: 1 },
|
|
112
|
+
* kubeProxyReplacement: 'strict'
|
|
113
|
+
* }
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export function ciliumHelmRelease(config) {
|
|
118
|
+
// Create a HelmRelease that properly references the HelmRepository by name
|
|
119
|
+
// We need to use createResource directly to have full control over the sourceRef
|
|
120
|
+
return createResource({
|
|
121
|
+
...(config.id && { id: config.id }),
|
|
122
|
+
apiVersion: 'helm.toolkit.fluxcd.io/v2',
|
|
123
|
+
kind: 'HelmRelease',
|
|
124
|
+
metadata: {
|
|
125
|
+
name: config.name,
|
|
126
|
+
...(config.namespace && { namespace: config.namespace }),
|
|
127
|
+
...(config.labels && { labels: config.labels }),
|
|
128
|
+
...(config.annotations && { annotations: config.annotations }),
|
|
129
|
+
},
|
|
130
|
+
spec: {
|
|
131
|
+
interval: config.interval || '5m',
|
|
132
|
+
chart: {
|
|
133
|
+
spec: {
|
|
134
|
+
chart: 'cilium',
|
|
135
|
+
...(config.version && { version: config.version }),
|
|
136
|
+
sourceRef: {
|
|
137
|
+
kind: 'HelmRepository',
|
|
138
|
+
name: config.repositoryName,
|
|
139
|
+
namespace: config.repositoryNamespace,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
...(config.values && { values: config.values }),
|
|
144
|
+
},
|
|
145
|
+
}).withReadinessEvaluator(helmReleaseReadinessEvaluator);
|
|
146
|
+
}
|
|
147
|
+
// =============================================================================
|
|
148
|
+
// HELM VALUES MAPPING SYSTEM
|
|
149
|
+
// =============================================================================
|
|
150
|
+
/**
|
|
151
|
+
* Maps Cilium bootstrap configuration to Helm values
|
|
152
|
+
*
|
|
153
|
+
* This function converts the TypeKro CiliumBootstrapConfig interface
|
|
154
|
+
* to the Helm values format expected by the Cilium chart.
|
|
155
|
+
*
|
|
156
|
+
* @param config - Cilium bootstrap configuration
|
|
157
|
+
* @returns Helm values object for Cilium chart
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const config: CiliumBootstrapConfig = {
|
|
162
|
+
* cluster: { name: 'production', id: 1 },
|
|
163
|
+
* networking: { kubeProxyReplacement: 'strict' }
|
|
164
|
+
* };
|
|
165
|
+
* const helmValues = mapCiliumConfigToHelmValues(config);
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
export function mapCiliumConfigToHelmValues(config) {
|
|
169
|
+
const values = {
|
|
170
|
+
// Cluster configuration
|
|
171
|
+
cluster: {
|
|
172
|
+
name: config.cluster.name,
|
|
173
|
+
id: config.cluster.id,
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
// Networking configuration
|
|
177
|
+
if (config.networking) {
|
|
178
|
+
const networking = config.networking;
|
|
179
|
+
if (networking.ipam) {
|
|
180
|
+
values.ipam = {
|
|
181
|
+
mode: networking.ipam.mode || 'kubernetes',
|
|
182
|
+
};
|
|
183
|
+
if (networking.ipam.operator) {
|
|
184
|
+
values.ipam.operator = {};
|
|
185
|
+
if (networking.ipam.operator.clusterPoolIPv4PodCIDRList) {
|
|
186
|
+
values.ipam.operator.clusterPoolIPv4PodCIDRList = networking.ipam.operator.clusterPoolIPv4PodCIDRList;
|
|
187
|
+
}
|
|
188
|
+
if (networking.ipam.operator.clusterPoolIPv6PodCIDRList) {
|
|
189
|
+
values.ipam.operator.clusterPoolIPv6PodCIDRList = networking.ipam.operator.clusterPoolIPv6PodCIDRList;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (networking.kubeProxyReplacement) {
|
|
194
|
+
// Convert string values to boolean/string format expected by Cilium Helm chart
|
|
195
|
+
switch (networking.kubeProxyReplacement) {
|
|
196
|
+
case 'disabled':
|
|
197
|
+
values.kubeProxyReplacement = false;
|
|
198
|
+
break;
|
|
199
|
+
case 'partial':
|
|
200
|
+
values.kubeProxyReplacement = 'partial';
|
|
201
|
+
break;
|
|
202
|
+
case 'strict':
|
|
203
|
+
values.kubeProxyReplacement = true;
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
values.kubeProxyReplacement = networking.kubeProxyReplacement;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (networking.routingMode) {
|
|
210
|
+
values.routingMode = networking.routingMode;
|
|
211
|
+
}
|
|
212
|
+
if (networking.tunnelProtocol) {
|
|
213
|
+
values.tunnelProtocol = networking.tunnelProtocol;
|
|
214
|
+
}
|
|
215
|
+
if (networking.autoDirectNodeRoutes !== undefined) {
|
|
216
|
+
values.autoDirectNodeRoutes = networking.autoDirectNodeRoutes;
|
|
217
|
+
}
|
|
218
|
+
if (networking.endpointRoutes) {
|
|
219
|
+
values.endpointRoutes = networking.endpointRoutes;
|
|
220
|
+
}
|
|
221
|
+
if (networking.hostServices) {
|
|
222
|
+
values.hostServices = networking.hostServices;
|
|
223
|
+
}
|
|
224
|
+
if (networking.nodePort) {
|
|
225
|
+
values.nodePort = networking.nodePort;
|
|
226
|
+
}
|
|
227
|
+
if (networking.externalIPs) {
|
|
228
|
+
values.externalIPs = networking.externalIPs;
|
|
229
|
+
}
|
|
230
|
+
if (networking.hostPort) {
|
|
231
|
+
values.hostPort = networking.hostPort;
|
|
232
|
+
}
|
|
233
|
+
if (networking.loadBalancer) {
|
|
234
|
+
values.loadBalancer = networking.loadBalancer;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// Security configuration
|
|
238
|
+
if (config.security) {
|
|
239
|
+
const security = config.security;
|
|
240
|
+
if (security.encryption) {
|
|
241
|
+
values.encryption = security.encryption;
|
|
242
|
+
}
|
|
243
|
+
if (security.authentication) {
|
|
244
|
+
values.authentication = security.authentication;
|
|
245
|
+
}
|
|
246
|
+
if (security.policyEnforcement) {
|
|
247
|
+
values.policyEnforcement = security.policyEnforcement;
|
|
248
|
+
}
|
|
249
|
+
if (security.policyAuditMode !== undefined) {
|
|
250
|
+
values.policyAuditMode = security.policyAuditMode;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
// BGP configuration
|
|
254
|
+
if (config.bgp) {
|
|
255
|
+
values.bgp = config.bgp;
|
|
256
|
+
}
|
|
257
|
+
// Gateway API configuration
|
|
258
|
+
if (config.gatewayAPI) {
|
|
259
|
+
values.gatewayAPI = config.gatewayAPI;
|
|
260
|
+
}
|
|
261
|
+
// Observability configuration
|
|
262
|
+
if (config.observability) {
|
|
263
|
+
const observability = config.observability;
|
|
264
|
+
if (observability.hubble) {
|
|
265
|
+
values.hubble = observability.hubble;
|
|
266
|
+
}
|
|
267
|
+
if (observability.prometheus) {
|
|
268
|
+
values.prometheus = observability.prometheus;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// Operator configuration
|
|
272
|
+
if (config.operator) {
|
|
273
|
+
values.operator = config.operator;
|
|
274
|
+
}
|
|
275
|
+
// Agent configuration
|
|
276
|
+
if (config.agent) {
|
|
277
|
+
values.agent = config.agent;
|
|
278
|
+
}
|
|
279
|
+
// Advanced configuration
|
|
280
|
+
if (config.advanced) {
|
|
281
|
+
const advanced = config.advanced;
|
|
282
|
+
if (advanced.bpf) {
|
|
283
|
+
values.bpf = advanced.bpf;
|
|
284
|
+
}
|
|
285
|
+
if (advanced.k8s) {
|
|
286
|
+
values.k8s = advanced.k8s;
|
|
287
|
+
}
|
|
288
|
+
if (advanced.cni) {
|
|
289
|
+
values.cni = advanced.cni;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
// Custom values (merge last to allow overrides)
|
|
293
|
+
if (config.customValues) {
|
|
294
|
+
Object.assign(values, config.customValues);
|
|
295
|
+
}
|
|
296
|
+
return values;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Validates Cilium Helm values configuration
|
|
300
|
+
*
|
|
301
|
+
* This function validates that the generated Helm values are compatible
|
|
302
|
+
* with the Cilium chart and contain all required fields.
|
|
303
|
+
*
|
|
304
|
+
* @param values - Helm values to validate
|
|
305
|
+
* @returns Validation result with any errors
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```typescript
|
|
309
|
+
* const values = mapCiliumConfigToHelmValues(config);
|
|
310
|
+
* const validation = validateCiliumHelmValues(values);
|
|
311
|
+
* if (!validation.valid) {
|
|
312
|
+
* console.error('Validation errors:', validation.errors);
|
|
313
|
+
* }
|
|
314
|
+
* ```
|
|
315
|
+
*/
|
|
316
|
+
export function validateCiliumHelmValues(values) {
|
|
317
|
+
const errors = [];
|
|
318
|
+
// Validate required cluster configuration
|
|
319
|
+
if (!values.cluster) {
|
|
320
|
+
errors.push('cluster configuration is required');
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
if (!values.cluster.name) {
|
|
324
|
+
errors.push('cluster.name is required');
|
|
325
|
+
}
|
|
326
|
+
if (typeof values.cluster.id !== 'number' || values.cluster.id < 0 || values.cluster.id > 255) {
|
|
327
|
+
errors.push('cluster.id must be a number between 0 and 255');
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
// Validate IPAM configuration if present
|
|
331
|
+
if (values.ipam) {
|
|
332
|
+
const validIpamModes = ['kubernetes', 'cluster-pool', 'azure', 'aws-eni', 'crd'];
|
|
333
|
+
if (values.ipam.mode && !validIpamModes.includes(values.ipam.mode)) {
|
|
334
|
+
errors.push(`ipam.mode must be one of: ${validIpamModes.join(', ')}`);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
// Validate kube-proxy replacement if present
|
|
338
|
+
if (values.kubeProxyReplacement !== undefined) {
|
|
339
|
+
const validModes = [true, false, 'partial'];
|
|
340
|
+
if (!validModes.includes(values.kubeProxyReplacement)) {
|
|
341
|
+
errors.push(`kubeProxyReplacement must be one of: true, false, 'partial'`);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
// Validate routing mode if present
|
|
345
|
+
if (values.routingMode) {
|
|
346
|
+
const validModes = ['tunnel', 'native'];
|
|
347
|
+
if (!validModes.includes(values.routingMode)) {
|
|
348
|
+
errors.push(`routingMode must be one of: ${validModes.join(', ')}`);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// Validate tunnel protocol if present
|
|
352
|
+
if (values.tunnelProtocol) {
|
|
353
|
+
const validProtocols = ['vxlan', 'geneve'];
|
|
354
|
+
if (!validProtocols.includes(values.tunnelProtocol)) {
|
|
355
|
+
errors.push(`tunnelProtocol must be one of: ${validProtocols.join(', ')}`);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
// Validate policy enforcement if present
|
|
359
|
+
if (values.policyEnforcement) {
|
|
360
|
+
const validModes = ['default', 'always', 'never'];
|
|
361
|
+
if (!validModes.includes(values.policyEnforcement)) {
|
|
362
|
+
errors.push(`policyEnforcement must be one of: ${validModes.join(', ')}`);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
// Validate encryption configuration if present
|
|
366
|
+
if (values.encryption?.enabled && values.encryption.type) {
|
|
367
|
+
const validTypes = ['wireguard', 'ipsec'];
|
|
368
|
+
if (!validTypes.includes(values.encryption.type)) {
|
|
369
|
+
errors.push(`encryption.type must be one of: ${validTypes.join(', ')}`);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return {
|
|
373
|
+
valid: errors.length === 0,
|
|
374
|
+
errors,
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
//# sourceMappingURL=helm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAUnF,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;GAGG;AACH,SAAS,sCAAsC,CAAC,QAAa;IAC3D,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,EAAE,UAAU,IAAI,EAAE,CAAC;IACrD,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;IAElD,OAAO;QACL,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,O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,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;IAED,+CAA+C;IAC/C,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACzD,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACjD,MAAM,CAAC,IAAI,CAAC,mCAAmC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;QAC1B,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium CRD Factory Functions
|
|
3
|
+
*
|
|
4
|
+
* This module provides organized access to Cilium Custom Resource Definition
|
|
5
|
+
* factory functions, organized by functional area.
|
|
6
|
+
*/
|
|
7
|
+
export * from './helm.js';
|
|
8
|
+
export * from './networking.js';
|
|
9
|
+
export * from './bgp.js';
|
|
10
|
+
export * from './load-balancer.js';
|
|
11
|
+
export * from './gateway.js';
|
|
12
|
+
export * from './security.js';
|
|
13
|
+
export * from './observability.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,cAAc,WAAW,CAAC;AAK1B,cAAc,iBAAiB,CAAC;AAKhC,cAAc,UAAU,CAAC;AAKzB,cAAc,oBAAoB,CAAC;AAKnC,cAAc,cAAc,CAAC;AAK7B,cAAc,eAAe,CAAC;AAK9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium CRD Factory Functions
|
|
3
|
+
*
|
|
4
|
+
* This module provides organized access to Cilium Custom Resource Definition
|
|
5
|
+
* factory functions, organized by functional area.
|
|
6
|
+
*/
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// HELM INTEGRATION RESOURCES
|
|
9
|
+
// =============================================================================
|
|
10
|
+
export * from './helm.js';
|
|
11
|
+
// =============================================================================
|
|
12
|
+
// NETWORKING RESOURCES
|
|
13
|
+
// =============================================================================
|
|
14
|
+
export * from './networking.js';
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// BGP RESOURCES
|
|
17
|
+
// =============================================================================
|
|
18
|
+
export * from './bgp.js';
|
|
19
|
+
// =============================================================================
|
|
20
|
+
// LOAD BALANCER RESOURCES
|
|
21
|
+
// =============================================================================
|
|
22
|
+
export * from './load-balancer.js';
|
|
23
|
+
// =============================================================================
|
|
24
|
+
// GATEWAY API RESOURCES
|
|
25
|
+
// =============================================================================
|
|
26
|
+
export * from './gateway.js';
|
|
27
|
+
// =============================================================================
|
|
28
|
+
// SECURITY RESOURCES
|
|
29
|
+
// =============================================================================
|
|
30
|
+
export * from './security.js';
|
|
31
|
+
// =============================================================================
|
|
32
|
+
// OBSERVABILITY RESOURCES
|
|
33
|
+
// =============================================================================
|
|
34
|
+
export * from './observability.js';
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,6BAA6B;AAC7B,gFAAgF;AAChF,cAAc,WAAW,CAAC;AAE1B,gFAAgF;AAChF,uBAAuB;AACvB,gFAAgF;AAChF,cAAc,iBAAiB,CAAC;AAEhC,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAChF,cAAc,UAAU,CAAC;AAEzB,gFAAgF;AAChF,0BAA0B;AAC1B,gFAAgF;AAChF,cAAc,oBAAoB,CAAC;AAEnC,gFAAgF;AAChF,wBAAwB;AACxB,gFAAgF;AAChF,cAAc,cAAc,CAAC;AAE7B,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAChF,cAAc,eAAe,CAAC;AAE9B,gFAAgF;AAChF,0BAA0B;AAC1B,gFAAgF;AAChF,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium Load Balancer CRD Factory Functions
|
|
3
|
+
*
|
|
4
|
+
* This module provides factory functions for Cilium load balancer resources:
|
|
5
|
+
* - CiliumLoadBalancerIPPool
|
|
6
|
+
* - CiliumL2AnnouncementPolicy
|
|
7
|
+
*/
|
|
8
|
+
export declare const __loadBalancerPlaceholder = true;
|
|
9
|
+
//# sourceMappingURL=load-balancer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-balancer.d.ts","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/load-balancer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,yBAAyB,OAAO,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cilium Load Balancer CRD Factory Functions
|
|
3
|
+
*
|
|
4
|
+
* This module provides factory functions for Cilium load balancer resources:
|
|
5
|
+
* - CiliumLoadBalancerIPPool
|
|
6
|
+
* - CiliumL2AnnouncementPolicy
|
|
7
|
+
*/
|
|
8
|
+
// TODO: Implement in task 6.1 - Create CiliumLoadBalancerIPPool factory
|
|
9
|
+
// TODO: Implement in task 6.2 - Create CiliumL2AnnouncementPolicy factory
|
|
10
|
+
// Placeholder export to make this a valid module
|
|
11
|
+
export const __loadBalancerPlaceholder = true;
|
|
12
|
+
//# sourceMappingURL=load-balancer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-balancer.js","sourceRoot":"","sources":["../../../../src/factories/cilium/resources/load-balancer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wEAAwE;AACxE,0EAA0E;AAE1E,iDAAiD;AACjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC"}
|