feat: native Go providers + deploy --local#14
Merged
Merged
Conversation
Port providers.sh and deploy --local to native Go. Eliminates jq dependency (ADC project parsed with encoding/json). Deploy --remote stays as bash wrapper (heavy helm/kubectl). Gateway interface gains 8 new methods: ProviderCreate, ProviderDelete, ProviderProfileImport, InferenceSet, SettingsSet, SandboxList, GatewayList, GatewaySelect. All routed through the interface for future gRPC swap. Providers command: --force mode (safety check for running sandboxes), providers v2 enable, custom profile import, github/vertex/atlassian registration with env var detection and ADC fallback. Deploy --local: podman check, local gateway detection (127.0.0.1 filter), select, verify reachable. Validated: unit 28+7, bats 29+29, podman 19+19, OCP 17/17. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Port teardown --sandboxes and --providers to native Go. Uses existing Gateway methods (SandboxList/Delete, ProviderList/Delete, InferenceRemove). The --k8s path stays as a bash wrapper (heavy helm/kubectl/oc). Add InferenceRemove to the Gateway interface. Default behavior (no flags) tears down all three: sandboxes, providers, and k8s. Safety check: providers cannot be deleted while sandboxes are running. Validated: unit 28+7, bats 29+29, podman 19+19, OCP 17/17. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports three more bash wrappers to native Go, expanding the Gateway interface to 21 methods. After this PR, 6 of 9 command paths are native Go.
Native Go providers (
cmd/providers.go)Replaces
providers.sh(136 lines bash + jq dependency):--forcemode with running-sandbox safety checkencoding/json(eliminates jq dependency)Native Go deploy --local (
cmd/deploy.go)Replaces the
deploy_local()path indeploy.sh:Native Go teardown (
cmd/teardown.go)Replaces the
--sandboxesand--providerspaths inteardown.sh:--sandboxes: list + delete all sandboxes via Gateway interface--providers: safety check (no running sandboxes), list + delete all providers, clear inference--k8s: stays as bash wrapper (helm/kubectl/oc)Gateway interface expansion
9 new methods on
gateway.Gateway+ CLI implementation:ProviderCreate,ProviderDelete,ProviderProfileImportInferenceSet,InferenceRemove,SettingsSetSandboxList,GatewayList,GatewaySelectMigration status
new --localconnectpreflightprovidersdeploy --localteardown --sandboxes/--providersnew --remotedeploy --remoteteardown --k8stestTest results (full matrix validated before each commit)
🤖 Generated with Claude Code