Tags: civo/cli
Tags
fix(kubernetes): stop scoping marketplace app list to the target regi… …on (#600) * fix(kubernetes): stop scoping marketplace app list to the target region ListDefaultApps/CheckAPPName call the global /v2/kubernetes/applications catalogue, but civogo's sendRequest tacks the client's Region onto every GET as a query param. Since #582 removed the hardcoded nyc1 override, the call now sends the user's real --region, which 404s with database_region_not_found for any region the marketplace backend doesn't know about (e.g. jkt1) -- aborting `civo kubernetes create` before the cluster is ever requested, even though the region itself is valid for cluster creation. Clear the region explicitly for this catalogue call instead of relying on whatever region the client happens to be configured with. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix: bump go toolchain and x/image to clear govulncheck findings toolchain go1.26.6 resolves the crypto/tls, net/url, net/http/idna, and encoding/asn1 stdlib CVEs; golang.org/x/image v0.45.0 resolves the vp8l/webp/tiff decoding CVEs. --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
feat: add civo vpc command suite with full CRUD for VPC resources (#579) * feat: add civo vpc command suite with full CRUD for VPC resources Implement the complete `civo vpc` command hierarchy using the VPC-prefixed methods from civogo SDK v0.7.0-alpha1. All commands target the /v2/vpc/ API path and follow existing CLI patterns for output formatting, batch deletion, region handling, and flag conventions. Command tree: civo vpc network ls | create | show | update | remove civo vpc subnet ls | create | show | remove | attach | detach civo vpc firewall ls | create | show | update | remove civo vpc firewall rule ls | create | remove civo vpc loadbalancer ls | create | show | update | remove civo vpc ip ls | reserve | show | update | assign | unassign | delete Implementation details: - 37 new files in cmd/vpc/ covering network, subnet, firewall, firewall rules, load balancer, and reserved IP resources - Wire VPCCmd into rootCmd via cmd/root.go - Subnet commands require --network flag to scope operations to a network - Load balancer create/update support repeatable --backend flag with format ip:source_port:target_port:protocol:health_check_port - IP assign uses --resource-id and --resource-type for generic resource assignment (not limited to instances) - Firewall list resolves network IDs to names via ListVPCNetworks - Firewall show includes inline rule listing - All remove commands support batch deletion with confirmation prompts - Three-way output support: json, custom fields, and human-readable * chore(github): Update github workflow go version * fix: resolve golangci-lint issues in vpc commands - Fix gofmt alignment in var blocks for vpc_firewall_create.go and vpc_loadbalancer_update.go - Simplify createRules assignment to satisfy staticcheck QF1007 --------- Co-authored-by: Gianluca Cannata <gianluca@civo.com>
Add MB to used objectstore output (#564) * Add KB to used objectstore output * Convert output from KB to MB * fix: improve object store stats display with human-readable size format * test: add unit tests for humanSize function with various byte sizes * fix output msg --------- Co-authored-by: Michele Giornetta <michelegiornetta@gmail.com> Co-authored-by: Michele Giornetta <michele@civo.com>
PreviousNext