Something doesnt hold together in the manifest create flow Robins-MacBook-Pro…
- User
Something doesnt hold together in the manifest create flow
Robins-MacBook-Pro domains/orders/fulfillment-flow on main [$✘!?] ➜ i manifests create --env test --dry-run 10:21 reading topology from order-host (building first; this can take a minute) fetching integrio-intropy/intropy-templates@v0.2.4 refreshing <PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>:integrio/intropy/customers/entrovia/gitops.git placing order-host under domains/orders, from the workspace layout note: connector order-extractor-source has no binding for test; its manifests keep the REPLACE-ME scaffold note: connector order-loader-destination has no binding for test; its manifests keep the REPLACE-ME scaffold error: render deploy-host for host (local): base/dapr/pubsub-rabbitmq.yaml renders differently for environment "local" than for an earlier one; a value that varies by environment may only be used under overlays/
- Assistant
Debug Summary
Problem:
manifests create --env testfails while rendering the static local overlay.Root Cause: The CLI renders
testandlocalso it can scaffoldoverlays/local.deploy-hostv0.2.4 uses.envinbase/dapr/pubsub-rabbitmq.yaml.tmpl: local embeds fixture credentials, while test usessecretKeyRef.mergeRenderedcorrectly rejects that environment-dependent base file.Evidence: The real-template integration test fails identically with
INTROPY_TEMPLATES_DIRset.Fix: This needs a template-library change: keep the base broker manifest environment-neutral and apply the local RabbitMQ connection override from
overlays/localvia a Kustomize patch. Release that template version, then pin/use it from create.Recommended Tests: Keep the real-template integration test enabled in template release validation; it catches
.envleaking outsideoverlays/.- Fix the paired template flow now
- Diagnosis only
- User
But local should only be used with render, not create. Local isnt part of the gitops flow
- Assistant
Correct. Local is now isolated to
manifests render --env local.Changes:
- Removed
--bindingand local fixture selection frommanifests create. - GitOps creation excludes
overlays/local/**. - Create only renders requested deploy environments and retains connector placeholders.
Verified the reported command succeeds against v0.2.4:
intropy manifests create --env test --dry-runTests passed:
go test ./..., integration deploy tests,go vet ./..., and build. Pre-existing untracked plan files were left untouched. - Removed
- User
I want to support --binding for create aswell but it should be completely separated from render. Local should never exist in the devops repo and in theory the developer can select different connectors for local and test even though there is no point in doing that
- Assistant
Agreed. The boundary should be:
manifests render --env local --binding …→ local-only choices.manifests create --env test --binding …→ test GitOps choices.- No
overlays/localor local fixture manifests in GitOps, ever.
One necessary detail: v0.2.4’s GitOps binding skeleton hardcodes
REPLACE-ME-BINDING-TYPE; it does not consume.topology.connectors[].binding. Should create’s--binding source=sftprender:type: bindings.sftpwhile retaining metadata and credentials as
REPLACE-MEvalues? With no--env, I would apply those choices to every created GitOps environment. - User
yes
- User
do not make an PR
- User
I will merge myself
- Assistant
Understood—no PR and no push.
Committed locally:
- CLI
feat/manifest-create-bindings
e0009bca feat(manifests): separate GitOps binding selection - Templates
feat/gitops-binding-selection
93bdb42 feat(deploy-host): declare GitOps binding kinds
Merge templates first, then release a new template version; the CLI requires
spec.gitops.bindingKindsfor create bindings. Local overlays remain excluded from GitOps.Validated with unit tests, integration tests, vet, build, and real-template rendering. Pre-existing untracked plan files were not included.
- CLI