Skip to content

Conversation

@scadu
Copy link
Contributor

@scadu scadu commented Dec 10, 2025

Description

Migrate pipeline commands form Cobra to Kong CLI.

Changes

  • Moved pkg/cmd/pipeline/*.go -> cmd/pipeline/*.go (not every file got detected as moved in PR view, though. git diff main..feat/kong_pipeline_cmd_SUP-5744 --find-renames=10 might provide better diff).
  • Migrated 5 subcommands: create, list, migrate, validate, view
  • Removed interactive prompts (survey package) in favor of required flags
  • Removed pipeline command delegation from legacy Cobra system

Enhancements

  • Cluster name resolution: --cluster-id flag now accepts either cluster names or IDs
    • Example: -c "my-cluster" or -c "cluster-uuid-123"
    • Provides helpful error message listing available clusters if not found
  • Better error handling: 422 errors now check for existing pipelines and show their URLs
  • Cleaner output: Spinner clears lines after completion

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)
  • Linter passes (with golangci-lint run)
  • Manual testing of cluster name resolution
  • Manual testing of error handling for duplicate pipeline names

Disclosures / Credits

Massive thanks to @JoeColeman95 for paving road for the Cobra -> Kong migration 👏

@scadu scadu requested a review from a team as a code owner December 10, 2025 11:26
@scadu scadu changed the title Migrate pipeline commands form Cobra to Kong Migrate pipeline commands from Cobra to Kong Dec 10, 2025
@scadu scadu merged commit 202839c into main Dec 10, 2025
1 check passed
@scadu scadu deleted the feat/kong_pipeline_cmd_SUP-5744 branch December 10, 2025 15:00
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.

3 participants