Skip to content

feat: uis shim + namespace/secret-name-prefix flags (Phase 1 DCT) - #90

Merged
terchris merged 1 commit into
mainfrom
feature/p1-dct-uis-shim
Apr 9, 2026
Merged

feat: uis shim + namespace/secret-name-prefix flags (Phase 1 DCT)#90
terchris merged 1 commit into
mainfrom
feature/p1-dct-uis-shim

Conversation

@terchris

@terchris terchris commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements DCT items 1.8 and 1.9 from helpers-no/dev-templates → INVESTIGATE-improve-template-docs-with-services.md.

1.8 — uis shim

  • New /usr/local/bin/uis wrapper that routes commands via the existing uis-bridge.sh
  • TTY/stdin/no-TTY routing automatic based on shell context
  • Help fast path works without UIS container running
  • Drops the docker exec uis-provision-host uis ... noise from READMEs

1.9 — dev-template-configure passes new flags

  • After UIS PR #121 shipped (verified by tester, all 6 PASS)
  • Resolves namespace from params.subdomain ?? params.app_name ?? GIT_REPO
  • Passes --namespace and --secret-name-prefix when GIT_REPO is set
  • Reads new JSON fields: secret_name, secret_namespace, env_var
  • Backward compatible (no flags passed when no git remote)

Test plan

  • CI passes (static + unit + image build)
  • In a fresh DCT v1.7.34 devcontainer with UIS running:
    • uis help works without docker exec prefix
    • uis status works
    • uis connect postgresql <db> opens psql interactively
    • uis help still works when uis-provision-host is stopped
  • Run dev-template python-basic-webserver-database + dev-template-configure:
    • Configure succeeds with the new flags
    • Output shows both → .env: DATABASE_URL=... (local) AND → K8s Secret: <repo>-db in namespace <ns> (cluster)
    • kubectl get secret <repo>-db -n <ns> returns the secret

🤖 Generated with Claude Code

…e-prefix

Implements DCT items 1.8 and 1.9 from
helpers-no/dev-templates → INVESTIGATE-improve-template-docs-with-services.md.

1.8 — uis shim:
- New /usr/local/bin/uis (symlink to .devcontainer/manage/uis.sh)
- Routes commands to uis-provision-host via the existing uis-bridge.sh
- TTY mode for interactive: uis status, uis connect
- Stdin pipe mode for: echo SQL | uis configure --init-file -
- Non-TTY mode for: uis status > out.txt
- Help fast path: uis / uis help / --help / -h work even when
  uis-provision-host is not running (shows local DCT-flavoured help)
- Added uis_bridge_run_tty() function
- Cleaned up outdated install-tool-docker-cli.sh reference in
  uis_bridge_check (Docker is provided by docker-outside-of-docker
  feature, no separate install)

1.9 — dev-template-configure passes new flags to uis configure:
- Sources lib/git-identity.sh, calls detect_git_identity early
- Resolves namespace = subdomain ?? app_name ?? GIT_REPO
- Passes --namespace and --secret-name-prefix when GIT_REPO is set
- Reads new JSON fields: secret_name, secret_namespace, env_var
- Output: shows local .env URL and K8s Secret separately
- Falls back to .env.cluster for legacy mode (no GIT_REPO)
- Backward compatible: works with older UIS too

Verified: UIS PR #121 shipped, all 6 tester verification steps PASS
(see helpers-no/testing/uis1/talk/talk.md).

Bump version to 1.7.34.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@terchris
terchris merged commit c403cba into main Apr 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant